EasyManuals Logo
Home>Casio>Calculator>ClassPad 300

Casio ClassPad 300 Programming Guide

Casio ClassPad 300
125 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #69 background imageLoading...
Page #69 background image
CPMultiButton
Class Name Derived From Styles Signals
CPMultiButton PegBitmapButton BF_REPEAT
BF_DOWNACTION
BF_SELECTED
AF_ENABLED
PSF_SIZED
PSF_FOCUS_RECEIVED
PSF_FOCUS_LOST
PSF_KEY_RECEIVED
PSF_CLICKED
A CPMultiButton is very similar to a CPDropDownButton. With a CPMultiButton, the
bitmaps are cycled through instead of being chosen from a drop down. The bold button
in eActivity is an example of a CPMultiButton.
To create a CPMultiButton, you first make a CPMultiButtonDescription:
struct CPMultiButtonDescription buttons[] =
{
{&gbsmileBitmap, SMILE_ID},
{&gbcontentBitmap, CONTENT_ID},
{&gbsadBitmap, SAD_ID},
{NULL, NULL},
};
This button is also mostly used in toolbars, so we will add it in the AddUI function:
void YOURWINDOW::AddUI()
{
PegRect r = GetToolbarButtonRect();
CPMultiButton *button = new CPMultiButton(r, buttons);
m_ui->AddToolbarButton(button);
}
Each of the following screenshots is taken after the button was clicked. Notice that the
images are being cycled through on each click:
69

Table of Contents

Other manuals for Casio ClassPad 300

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio ClassPad 300 and is the answer not in the manual?

Casio ClassPad 300 Specifications

General IconGeneral
BrandCasio
ModelClassPad 300
CategoryCalculator
LanguageEnglish

Related product manuals