EasyManuals Logo

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 #62 background imageLoading...
Page #62 background image
As shown in the previous section dealing with windows, there is a CPTabbedWindow
that you can use to give your application a toolbar that is 2 times as long. This is also
done inside of the AddUI() function.
Toolbars don’t have to be text buttons. They can hold any PegThing derived object,
including PegBitmapButton, CPDropDownButton or PegEditBox.
Status Bar
CPModuleWindow has a protected member of type PegStatusBar* that refers to the
status bar at the bottom of the screen. You can gain access to this variable by using the
GetStatusBar() function.
Once you have the status bar, all you have to do to add to text to it is call the
SetTextField() function:
virtual void SetTextField (WORD wId, const PEGCHAR *Text);
The first parameter will always be 1, and the second is the text string you wish to display.
You can make a function that controls setting the status bar in your module. For example,
this function would set the status bar to whatever text is passed as a parameter:
void YourModuleWindow::SetStatusBar(PEGCHAR* message)
{
// Get a pointer to the status bar
PegStatusBar* bar = GetStatusBar();
// Set the text
bar->SetTextField(1, message);
}
Usually you will want to change the status bar after some event or message has occurred.
If this is the case, in your overridden Message() function call the SetStatusBar()
function after you have received the message that you wish to respond to. For example,
62

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