Work with buttons
The color devices have several modes of operations
where buttons of different kinds may be shown.
The library provides a ButtonEvent
that is raised when such a button is pressed with the pen.
that is raised when such a button is pressed with the pen.
The color of each button can be configured.
A button can be hidden and disabled.
A hidden button is invisible.
A button can be hidden and disabled.
A hidden button is invisible.
Clicks on a disabled button are ignored.
The library provides a function GetButtonConfig
for getting a button bar object that contains the button configurations
for getting a button bar object that contains the button configurations
of the connected device.
A button bar is tied to a certain mode of operation that has buttons.
The button configuration collection inside the button bar may be modified.
Pass the changed button bar object to SetButtonConfig
to let the device adopt the modified button configuration.