Widgets

Label

Labels are static text that can't interact with the user and can't be changed by the application at run-time either. For non-static labels, use a non-editable text field.

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

Text and font

The textual contents of the widget. It will be rendered using the specified font.

Guikachu currently only supports the three default built-in fonts: #0 is the "normal", #1 is the "bold" and #2 is the "large" font.

Usable

Non-usable widgets are not rendered on the screen and don't receive events. You can set/unset the "usable" property at run-time with the CtlSetUsable function.

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Text field

WRITE ME

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Width and height

Horizontal and vertical size, in pixels. Due to the size of the screen of PalmOS devices, both width and height are integer values between 1 and 160.

You can also use automatic values calculated from the size of the widget's contents.

Graffiti State Indicator

This widget displays an icon showing the current state (like upper-case input, or punctuation marks) of the Graffiti input system. It is automatically connected to the input system, so you don't have to bother implementing it. Just place it on a form and you're set.

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Button

A button is a (rounded) rectangular user interface element that emits a specific signal to the application when the user taps it with the stylus.

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

Text and font

The textual contents of the widget. It will be rendered using the specified font.

Guikachu currently only supports the three default built-in fonts: #0 is the "normal", #1 is the "bold" and #2 is the "large" font.

Frame type

Buttons can optionally have one of two types of frame around them. It is usually a good idea to give buttons a frame as this helps users distinguishing it from a simple label

Repeating

Repeating buttons emit several ButtonPress signals when kept pressed by the user.

Anchor right

If the widget's size changes at run-time and this flag is set, the new horizontal position is calculated to leave the widget's right edge at place.

Usable

Non-usable widgets are not rendered on the screen and don't receive events. You can set/unset the "usable" property at run-time with the CtlSetUsable function.

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Width and height

Horizontal and vertical size, in pixels. Due to the size of the screen of PalmOS devices, both width and height are integer values between 1 and 160.

You can also use automatic values calculated from the size of the widget's contents.

Check box

WRITE ME

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

Text and font

The textual contents of the widget. It will be rendered using the specified font.

Guikachu currently only supports the three default built-in fonts: #0 is the "normal", #1 is the "bold" and #2 is the "large" font.

Toggled

Initial checked/unchecked state of the widget

Group ID

If a check box belongs to a group, no more than one per group can be checked by the user. This is automatically enforced by PalmOS. Set the group ID to 0 if you don't want to include it in any group.

Anchor right

If the widget's size changes at run-time and this flag is set, the new horizontal position is calculated to leave the widget's right edge at place.

Usable

Non-usable widgets are not rendered on the screen and don't receive events. You can set/unset the "usable" property at run-time with the CtlSetUsable function.

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Width and height

Horizontal and vertical size, in pixels. Due to the size of the screen of PalmOS devices, both width and height are integer values between 1 and 160.

You can also use automatic values calculated from the size of the widget's contents.

Pushbutton

A pushbutton behaves a lot like a check box, except it has no initial state and is rendered as a rectangular button.

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

Text and font

The textual contents of the widget. It will be rendered using the specified font.

Guikachu currently only supports the three default built-in fonts: #0 is the "normal", #1 is the "bold" and #2 is the "large" font.

Group ID

If a checkbox belongs to a group, no more than one per group can be checked by the user. This is automatically enforced by PalmOS. Set the group ID to 0 if you don't want to include it in any group.

Usable

Non-usable widgets are not rendered on the screen and don't receive events. You can set/unset the "usable" property at run-time with the CtlSetUsable function.

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Width and height

Horizontal and vertical size, in pixels. Due to the size of the screen of PalmOS devices, both width and height are integer values between 1 and 160.

You can also use automatic values calculated from the size of the widget's contents.

Gadget

Gadgets are placeholders for widgets implemented by the app author. The application is responsible for rendering the widget and maintaining any associated state data.

Properties

Resource ID

A unique string ID used for accessing the resource at run-time from the program

Usable

Non-usable widgets are not rendered on the screen and don't receive events. You can set/unset the "usable" property at run-time with the CtlSetUsable function.

X and Y

Horizontal and vertical position relative to the parent form, in pixels, counted from left to right and top to bottom. Due to the size of the screen of PalmOS devices, both X and Y are integer values between 0 and 159.

Width and height

Horizontal and vertical size, in pixels. Due to the size of the screen of PalmOS devices, both width and height are integer values between 1 and 160.