How to manage cells |
|
Starting from version 8 of the control, you have the opportunity to add as many cells you want to the button surface, both at design-time, through 3D Button Visual Editor, and at runtime through the CellsManager property (that internally implements the CellsManager COM object). On the screenshot below you can see an example containing four different cells, each having its own text, graphics and transparency level: Each single cell can have the following features:
Let's see how to create our cells at Design-time:
General settings Actually there is no limit to the number of cells you can create inside a control (apart from your PC memory and resources) ; on the screenshot below, you can see that 4 cells have been created and listed inside the white listbox: note that the visible settings are relative to the cell selected inside the listbox: changing the selected cell will cause the various settings to be automatically updated and the Text and Pictures tabs will change their label in order to remember you which of the available cells is under editing. Note: The image below has hot links to take you to explanations of the various controls: the property/method on the right column can be used at runtime.
At runtime you can also:
Text settings for a specific cell Note: The image below has hot links to take you to explanations of the various controls: the property/method on the right column can be used at runtime.
Font related properties can be retrieved/modified at runtime using the CellsManager.CellGetLogFont and CellsManager.CellSetLogFont that will manage a standard Windows LOGFONT data structure.
Pictures settings for a specific cell Note: The image below has hot links to take you to explanations of the various controls: the property/method on the right column can be used at runtime.
|