|
|
![]() |
prefsui.libraryThis library allows you to easily create content-rich and highly flexible preference or item property panels based around standard Windows controls. Key Features
As well as the standard controls, a number of enhanced controls are also available - including a colour selector, URL control, and folder and file selectors. All controls are created using standard Windows components so consequently they all support Visual Styles, which first appeared with Windows XP. prefsui.library will do the necessary initialization to work with the current Visual Style; the developer just needs to provide a manifest along with the executable.
And for the more technically-savvy, additional controls can also be created and packaged up into an AddOn which prefsui will load when it initializes. A single AddOn can provide an unlimited number of individual controls and, due to the way the interfaces have been defined, multiple names can refer to the same control (e.g. "color_picker", "colour_picker") which makes them more internationally portable.
The roster can be queried to find a particular control, or simply to list all loaded controls. Information about each control can be retrieved, as well as details about the AddOn that provides it. A Panel is an active, rather than passive, item - when the user checks a tick box, clicks a button, or picks an item from a list a message is sent to the message port provided when the panel was created. This message contains a set of pre-defined items that can be queried to find out what the user did, and from the the panel contents can be updated accordingly. More Screenshots![]() The extended Listbox control displaying PNG images ![]() Rich Edit control |
