Cptogglebutton - Casio ClassPad 300 Programming Manual

Sdk programming guide
Hide thumbs Also See for ClassPad 300:
Table of Contents

Advertisement

CPToggleButton

Class Name
CPDropDownButton PegBitmapButton BF_REPEAT
CPToggleButton implements a two state PegBitmapButton that can be selected or
unselected. When selected, the PegBitmap is inversed. Here is the code to create a
simple example:
void MCSWindow::AddUI()
{
PegRect r = GetToolbarButtonRect();
CPToggleButton *button = new CPToggleButton(r, &gbcontentBitmap);
m_ui->AddToolbarButton(button);
}
The first image below is when the button has not been clicked. The second is after a
click and the image has been inverted.
Derived From
Styles
BF_DOWNACTION
BF_SELECTED
AF_ENABLED
Signals
PSF_SIZED
PSF_FOCUS_RECEIVED
PSF_FOCUS_LOST
PSF_KEY_RECEIVED
PSF_CLICKED
70

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents