Status Bar - Casio ClassPad 300 Programming Manual

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents