Button
From Pointui
Inherits Control.
Displays a graphical button with a normal and selected state. It is a good idea to set the Image and ImageSelected properties to the correct images before adding the Button as a child control (see example below) as this allows for the width/height of the button to be automatically set.
Contents |
Properties
Image (Surface)
The image to display on the button in it’s normal state.
ImageSelected (Surface)
The image to display on the button in it’s selected state.
EXAMPLE
Button b; b.Image.LoadFromFile(“btn.jif”); b.ImageSelected.LoadFromFile(“btn.Selected.jif”); Controls.Add(b);
Methods
void AutoSize()
Sizes the width/height of the button to match the image it contains.
