Library demoui_lib

GEOS-SC:  Library demoui_lib



Classes

PenRefUI
This class contains utility functions that pertain to the UI for a specific project.
StandardSound
The StandardSound class provides API for playing a set of shared standard sounds on a device.

Back to the top of demoui_lib


Data

enum DemoTextFieldCustomTextFilter ;
enum DemoFrameLookHint;
enum DemoDialogLookHint;
enum DemoButtonLookHint;
enum DemoCheckboxLookHint;
enum DemoListLookHint;
enum DemoPanelLookHint;
enum DemoScrollbarLookHint;
enum DemoScrollPaneLookHint;
enum DemoMenuLookHint;
enum DemoImageLookHint;
enum DemoTableLook;
enum DemoTextFieldLook;
enum JLFTextFieldCustomTextFilter ;
enum JLFFrameLookHint;
enum JLFDialogLookHint;
enum JLFButtonLookHint;
enum JLFCheckboxLookHint;
enum JLFListLookHint;
enum JLFPanelLookHint;
enum JLFScrollbarLookHint;
enum JLFMenuLookHint;
enum JLFImageLookHint;
enum JLFTableLook;
enum PenRefTextFieldCustomTextFilter ;
typedef LookHint PenRefButtonLookHint;
typedef LookHint PenRefCheckboxLookHint;
typedef LookHint PenRefDialogLookHint;
typedef LookHint PenRefFrameLookHint;
typedef LookHint PenRefImageLookHint;
typedef LookHint PenRefInkLookHint;
typedef LookHint PenRefLabelLookHint;
typedef LookHint PenRefListLookHint;
typedef LookHint PenRefMenuLookHint;
typedef LookHint PenRefMenuButtonLookHint;
typedef LookHint PenRefPanelLookHint;
typedef LookHint PenRefScrollbarLookHint;
typedef LookHint PenRefTableLookHint;
typedef LookHint PenRefTextAreaLookHint;
typedef LookHint PenRefTextFieldLookHint;
typedef LookHint PenRefScrollPaneLookHint;
const TCHAR SOUND_ERROR[];

Back to the top of demoui_lib


Global Functions

Back to the top of demoui_lib


enum DemoTextFieldCustomTextFilter ;

#include <flexui/demoui.h>

Demoui Custom Text Filters. Custom filters for the DemoTextField.

DCTF_FIRST_CUSTOM_FILTER
The first legal custom filter.
DCTF_CHARACTER_ONLY
Only allows upper or lower case Latin letters.
DCTF_LAST_CUSTOM_FILTER
The last legal custom filter.

Declared as:

    enum DemoTextFieldCustomTextFilter {
	DCTF_FIRST_CUSTOM_FILTER=FlexTextComponent::TSF_LAST_STANDARD_FILTER+1,
	DCTF_CHARACTER_ONLY = FlexTextComponent::TSF_LAST_STANDARD_FILTER+1,
	DCTF_LAST_CUSTOM_FILTER =FlexTextComponent::TSF_LAST_STANDARD_FILTER+1
    };

Back to the top of demoui_lib


enum DemoFrameLookHint;

#include <flexui/demoui.h>

Types of Frames in the Demoui

HINT_FRAME_WITH_CLOSE_BUTTON
A Frame that has a button on its Title bar that allows the Frame to be closed.
HINT_FRAME_WITH_NO_CLOSE_BUTTON
A Frame that cannot be closed.

Declared as:

    enum DemoFrameLookHint {
	HINT_FRAME_WITH_CLOSE_BUTTON,
	HINT_FRAME_WITH_NO_CLOSE_BUTTON
    };

Back to the top of demoui_lib


enum DemoDialogLookHint;

#include <flexui/demoui.h>

Types of Dialogs in the Demoui

HINT_DIALOG_WITH_CLOSE_BUTTON
A Dialog that has a button on its Title bar that allows the Frame to be closed.
HINT_DIALOG_WITH_NO_CLOSE_BUTTON
A Frame that cannot be closed.

Declared as:

    enum DemoDialogLookHint {
	HINT_DIALOG_WITH_CLOSE_BUTTON,
	HINT_DIALOG_WITH_NO_CLOSE_BUTTON
    };

Back to the top of demoui_lib


enum DemoButtonLookHint;

#include <flexui/demoui.h>

Types of Buttons in the Demoui

HINT_BUTTON_WITH_ROUNDED_CORNERS
A Button with rounded corners.
HINT_BUTTON_WITH_SQUARE_CORNERS
A Button with square corners.
HINT_BUTTON_ON_RIGHT_SIDE_OF_SCREEN
Non-resizable 3d type Button.
HINT_BUTTON_IN_TOOLBAR
A Button with square corners.

Declared as:

    enum DemoButtonLookHint {
	HINT_BUTTON_WITH_ROUNDED_CORNERS,
	HINT_BUTTON_WITH_SQUARE_CORNERS,
	HINT_BUTTON_ON_RIGHT_SIDE_OF_SCREEN,
	HINT_BUTTON_IN_TOOLBAR
    };

Back to the top of demoui_lib


enum DemoCheckboxLookHint;

#include <flexui/demoui.h>

Types of Checkboxes in the Demoui

HINT_CHECKBOX_WITH_SHADED_CHECK
A selected Checkbox has its box filled in. Box is drawn to the left of the Checkbox's label or image. Box is at top of label or image.
HINT_CHECKBOX_WITH_CHECKMARK_CHECK
A selected Checkbox has a checkmark in its box. The box is drawn to the left of Checkbox's label or image. The box is centered with respect to the label or image.

Declared as:

    enum DemoCheckboxLookHint {
	HINT_CHECKBOX_WITH_SHADED_CHECK,
	HINT_CHECKBOX_WITH_CHECKMARK_CHECK
    };

Back to the top of demoui_lib


enum DemoListLookHint;

#include <flexui/demoui.h>

Types of Lists in the Demoui

LIST_WITH_ROUNDED_CORNERS
The default DemoList LookHint. An outline is drawn around the list elements. The corners are rounded.

Declared as:

    enum DemoListLookHint {
	HINT_LIST_WITH_ROUNDED_CORNERS,
        LIST_MAX_LOOKS
    };

Back to the top of demoui_lib


enum DemoPanelLookHint;

#include <flexui/demoui.h>

Types of Panels in the Demo UI.

HINT_PANEL_WITH_NO_BORDER
A panel with no borders.

HINT_PANEL_WITH_LINE_BORDER
A single pixel rectangular border.

Declared as:

    enum DemoPanelLookHint {
        HINT_PANEL_WITH_NO_BORDER,
        HINT_PANEL_WITH_LINE_BORDER,
        PANEL_MAX_LOOKS
    };

Back to the top of demoui_lib


enum DemoScrollbarLookHint;

#include <flexui/demoui.h>

Types of Scrollbars in the Demoui

HINT_SCROLLBAR_LOOK
A traditional look with up/down arrows at either end, a track connecting the ends, and a draggable thumb nail.
HINT_SPIN_BUTTON_LOOK
Just an up and down arrow.
SCROLLBAR_MAX_LOOKS
One more than the number of different Scrollbar looks in the Demoui.

Declared as:

    enum DemoScrollbarLookHint {        
	HINT_SCROLLBAR_LOOK,
	HINT_SPIN_BUTTON_LOOK,
	SCROLLBAR_MAX_LOOKS
    };

Back to the top of demoui_lib


enum DemoScrollPaneLookHint;

#include <flexui/demoui.h>

Types of ScrollPanes in the Demoui

HINT_SCROLLPANE_WITH_BORDER_LOOK
A scrollpane with a border. The type of scrollbars used with this look are HINT_SCROLLBAR_LOOK.

Declared as:

    enum DemoScrollPaneLookHint {
        HINT_SCROLLPANE_WITH_BORDER_LOOK,
        DEMO_SCROLLPANE_MAX_LOOKS
    };

Back to the top of demoui_lib


enum DemoMenuLookHint;

#include <flexui/demoui.h>

Types of menus in the Demoui

Declared as:

    enum DemoMenuLookHint {
        HINT_PULL_DOWN_MENU,
        MENU_MAX_LOOKS
    };

Back to the top of demoui_lib


enum DemoImageLookHint;

#include <flexui/demoui.h>

Types of FlexImages in the Demoui

HINT_IMAGE_WITH_PLAIN_LOOK
Draw the image as the data states.
HINT_IMAGE_WITH_BORDER_LOOK
Draw the image with a border.

Declared as:

    enum DemoImageLookHint {        
	HINT_IMAGE_WITH_PLAIN_LOOK,
	HINT_IMAGE_WITH_BORDER_LOOK,	
    };

Back to the top of demoui_lib


enum DemoTableLook;

#include <flexui/demoui.h>

Types of FlexTables.

HINT_TABLE_ROW_BORDERS
Displays solid row lines.
HINT_TABLE_CELL_BORDERS
Displays a dotted outline around each cell.
HINT_TABLE_ROW_SEPARATORS
Displays dotted row lines.
HINT_TABLE_NO_BORDERS
No lines or borders.

Declared as:

    enum DemoTableLook {
	HINT_TABLE_ROW_BORDERS,
	HINT_TABLE_CELL_BORDERS,
	HINT_TABLE_ROW_SEPARATORS,
	HINT_TABLE_NO_BORDERS,
	TABLE_MAX_LOOKS
    };

Back to the top of demoui_lib


enum DemoTextFieldLook;

#include <flexui/demoui.h>

HINT_TEXTFIELD_DOTTED_LOOK
Displays a dotted underline under the text field.

Declared as:

    enum DemoTextFieldLook {
	HINT_TEXTFIELD_DOTTED_LOOK,
	TEXTFIELD_MAX_LOOKS
    };

Back to the top of demoui_lib


enum JLFTextFieldCustomTextFilter ;

#include <flexui/javaspui.h>

JLFui Custom Text Filters. Custom filters for the JLFTextField.

DCTF_FIRST_CUSTOM_FILTER
The first legal custom filter.
DCTF_CHARACTER_ONLY
Only allows upper or lower case Latin letters.
DCTF_LAST_CUSTOM_FILTER
The last legal custom filter.

Declared as:

    enum JLFTextFieldCustomTextFilter {
	DCTF_FIRST_CUSTOM_FILTER=FlexTextComponent::TSF_LAST_STANDARD_FILTER+1,
	DCTF_CHARACTER_ONLY = FlexTextComponent::TSF_LAST_STANDARD_FILTER+1,
	DCTF_LAST_CUSTOM_FILTER =FlexTextComponent::TSF_LAST_STANDARD_FILTER+1
    };

Back to the top of demoui_lib


enum JLFFrameLookHint;

#include <flexui/javaspui.h>

Types of Frames in the JLFui

FRAME_WITH_CLOSE_BUTTON
A Frame that has a button on its Title bar that allows the Frame to be closed.
FRAME_WITH_NO_CLOSE_BUTTON
A Frame that cannot be closed.

Declared as:

    enum JLFFrameLookHint {
	HINT_FRAME_WITH_CLOSE_BUTTON,
	HINT_FRAME_WITH_NO_CLOSE_BUTTON
    };

Back to the top of demoui_lib


enum JLFDialogLookHint;

#include <flexui/javaspui.h>

Types of Dialogs in the JLFui

DIALOG_WITH_CLOSE_BUTTON
A Dialog that has a button on its Title bar that allows the Frame to be closed.
DIALOG_WITH_NO_CLOSE_BUTTON
A Frame that cannot be closed.

Declared as:

    enum JLFDialogLookHint {
	HINT_DIALOG_WITH_CLOSE_BUTTON,
	HINT_DIALOG_WITH_NO_CLOSE_BUTTON
    };

Back to the top of demoui_lib


enum JLFButtonLookHint;

#include <flexui/javaspui.h>

Types of Buttons in the JLFui

BUTTON_WITH_ROUNDED_CORNERS
A Button with rounded corners.
BUTTON_WITH_SQUARE_CORNERS
A Button with square corners.
BUTTON_ON_RIGHT_SIDE_OF_SCREEN
Non-resizable 3d type Button.
BUTTON_IN_TOOLBAR
A Button with square corners.

Declared as:

    enum JLFButtonLookHint {
	HINT_BUTTON_JAVA_LOOK_AND_FEEL,
        BUTTON_MAX_LOOKS
    };

Back to the top of demoui_lib


enum JLFCheckboxLookHint;

#include <flexui/javaspui.h>

Types of Checkboxes in the JLFui

CHECKBOX_WITH_SHADED_CHECK
A selected Checkbox has its box filled in. Box is drawn to the left of the Checkbox's label or image. Box is at top of label or image.
CHECKBOX_WITH_CHECKMARK_CHECK
A selected Checkbox has a checkmark in its box. Box is drawn to the left of Checkbox's label or image. Box is centered with label or image.

Declared as:

    enum JLFCheckboxLookHint {
	HINT_CHECKBOX_JAVA_LOOK_AND_FEEL
    };

Back to the top of demoui_lib


enum JLFListLookHint;

#include <flexui/javaspui.h>

Types of Lists in the JLFui

LIST_WITH_ROUNDED_CORNERS
The default JLFList LookHint. An outline An outline is drawn around the list elements. The corners are rounded.

Declared as:

    enum JLFListLookHint {
	HINT_LIST_JAVA_LOOK_AND_FEEL,
        LIST_MAX_LOOKS
    };

Back to the top of demoui_lib


enum JLFPanelLookHint;

#include <flexui/javaspui.h>

Types of Panels in the JLF UI.

HINT_PANEL_WITH_NO_BORDER
A panel with no borders.

HINT_PANEL_WITH_LINE_BORDER
A single pixel rectangular border.

Declared as:

    enum JLFPanelLookHint {
        HINT_PANEL_WITH_NO_BORDER,
        HINT_PANEL_WITH_LINE_BORDER,
        PANEL_MAX_LOOKS
    };

Back to the top of demoui_lib


enum JLFScrollbarLookHint;

#include <flexui/javaspui.h>

Types of Scrollbars in the JLFui

SL_SCROLLBAR_LOOK
A traditional look with up/down arrows at either end, a track connecting the ends, and a draggable thumb nail.
SL_SPIN_BUTTON_LOOK
Just an up and down arrow.
SL_MAX_LOOKS
One more than the number of different Scrollbar types in the JLFui.

Declared as:

    enum JLFScrollbarLookHint {        
	HINT_SCROLLBAR_LOOK,
	HINT_SPIN_BUTTON_LOOK,
	HINT_SCROLLBAR_JAVA_LOOK_AND_FEEL,
	SCROLLBAR_MAX_LOOKS
    };

Back to the top of demoui_lib


enum JLFMenuLookHint;

#include <flexui/javaspui.h>

Types of menus in the JLFui

Declared as:

    enum JLFMenuLookHint {
        HINT_PULL_DOWN_MENU,
        MENU_MAX_LOOKS
    };

Back to the top of demoui_lib


enum JLFImageLookHint;

#include <flexui/javaspui.h>

Types of FlexImages in the JLFui

IMAGE_WITH_PLAIN_LOOK
Draw the image as the data states.
IMAGE_WITH_BORDER_LOOK
Draw the image with a border.

Declared as:

    enum JLFImageLookHint {        
	HINT_IMAGE_WITH_PLAIN_LOOK,
	HINT_IMAGE_WITH_BORDER_LOOK,	
    };

Back to the top of demoui_lib


enum JLFTableLook;

#include <flexui/javaspui.h>

Types of FlexTables.

HINT_TABLE_ROW_BORDERS
Displays solid row lines.
HINT_TABLE_CELL_BORDERS
Displays a dotted outline around each cell.
HINT_TABLE_ROW_SEPARATORS
Displays dotted row lines.
HINT_TABLE_NO_BORDERS
No lines or borders.

Declared as:

    enum JLFTableLook {
	HINT_TABLE_ROW_BORDERS,
	HINT_TABLE_CELL_BORDERS,
	HINT_TABLE_ROW_SEPARATORS,
	HINT_TABLE_NO_BORDERS,
	TABLE_MAX_LOOKS
    };

Back to the top of demoui_lib


enum PenRefTextFieldCustomTextFilter ;

#include <flexui/penrefui.h>

PenRefUI Custom Text Filters. Custom filters for the PenRefTextField.

PCTF_FIRST_CUSTOM_FILTER
The first legal custom filter.
PCTF_CHARACTER_ONLY
Only allows upper or lower case Latin letters.
PCTF_LAST_CUSTOM_FILTER
The last legal custom filter.

Declared as:

enum PenRefTextFieldCustomTextFilter {
    PCTF_FIRST_CUSTOM_FILTER=FlexTextComponent::TSF_LAST_STANDARD_FILTER+1,
    PCTF_CHARACTER_ONLY = FlexTextComponent::TSF_LAST_STANDARD_FILTER+1,
    PCTF_LAST_CUSTOM_FILTER =FlexTextComponent::TSF_LAST_STANDARD_FILTER+1
};

Back to the top of demoui_lib


typedef LookHint PenRefButtonLookHint;

#include <flexui/penrefui.h>

The default button has 1 pixel wide border. The desired look for the label can be obtained by oring the respective flags with BUTTON_BASIC. For examples see List.

BUTTON_DEFAULT
A button with default features
BUTTON_BASIC
A button with all flags turned off
BUTTON_BORDER_FLAG
Draws a 1 pixel wide border around the button

Declared as:

typedef LookHint PenRefButtonLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefCheckboxLookHint;

#include <flexui/penrefui.h>

The default checkbox is square, uses a checkmark and is aligned with the center of the label.

The checkbox has 4 main looks. These are the radio button the default, the X checkmark and the square checkmark looks. All of these are mutually exclusive and should not be or'd together. Doing so might result in undefined behavior. The looks do not exist by themselves . They must be or'd with the flags that position the checkbox with respect to the label.

In addition to the looks the checkbox also has three mutually exclusive flags that decide where the checkbox would be aligned with respect to the label. These flags must be or'd with the looks but should not be or'd with each other. Doing so might again result in undefined behavior.

For instance, FlexCheckbox *cbox = theUIFactory-> CreateFlexCheckbox(CHECKBOX_RADIO_BASIC | CHECKBOX_ALIGN_BOX_TOP_FLAG); would create a radio button aligned with the top of the label.

CHECKBOX_DEFAULT
A checkbox with default features.
CHECKBOX_RADIO_BASIC
A checkbox that is a radio button.
CHECKBOX_SQUARE_BASIC
A square checkbox.
CHECKBOX_X_BASIC
A checkbox that uses an X rather than a checkmark.
CHECKBOX_ALIGN_BOX_CENTER_FLAG
Draws a checkbox box that is aligned with the center of the label.
CHECKBOX_ALIGN_BOX_TOP_FLAG
Draws a checkbox box that is aligned with the top of the label.
CHECKBOX_ALIGN_BOX_BOTTOM_FLAG
Draws a checkbox box that is aligned with the bottom of the label.

Declared as:

typedef LookHint PenRefCheckboxLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefDialogLookHint;

#include <flexui/penrefui.h>

The default dialog has a border, a title bar, a close button, and a "standard" (DialogLayout) layout manager. When the dialog is set visible, it will appear in the center of the screen. Dialogs can be moved by placing the pen down inside the title bar and dragging it across the screen.

If you create a dialog without a title bar, then the close button won't show up either.

About layout managers:

The DialogLayout provides special areas to place components such that it's easy to put a main component in the center (like text or a label) and a flow of components at the bottom (like buttons).

The dialog can be setup to have a default VerticalFlowLayout instead of a DialogLayout. The flow is initialized to:

gap = 0 align = LayoutManagerInterface::X_ALIGN_CENTER yjustify = VerticalFlowLayout::Y_JUSTIFY_CENTER xjustify = VerticalFlowLayout::X_JUSTIFY_CENTER vertical/horizontal sizing : FLOW_SIZE_COMPONENTS_AS_THEY_WISH

If neither layout flag is set, the dialog will be created without a layout manager. The layout flags are mutually exclusive so if you set both you will just get a flow layout.

You can also remove the default layout manager by calling myDialog->RemoveLayout() but you must not delete the default layout manager. The dialog will do this when it gets destroyed. If you add your own layout manager, the dialog will remove it in when it gets destroyed and you should delete your layout manager before exiting your application.

DIALOG_BASIC
A dialog with all flags turned off.
DIALOG_FLOW_LAYOUT_FLAG
A dialog with a VerticalFlowLayout layout manager.
DIALOG_STANDARD_LAYOUT_FLAG
A dialog with a DialogLayout layout manager.
DIALOG_BORDER_FLAG
A dialog with a border.
DIALOG_TITLE_FLAG
A dialog with a title.
DIALOG_CLOSE_FLAG
A dialog with a close button.
DIALOG_DEFAULT
A dialog with default features.

Declared as:

typedef LookHint PenRefDialogLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefFrameLookHint;

#include <flexui/penrefui.h>

The default frame has a border, a title bar, and a VerticalFlowLayout layout manager. Frames are the same size as AppBase so that they cover the whole screen.

About layout managers:

The VerticalFlowLayout is initialized as follows:

gap = 0 align = LayoutManagerInterface::X_ALIGN_CENTER yjustify = VerticalFlowLayout::Y_JUSTIFY_CENTER xjustify = VerticalFlowLayout::X_JUSTIFY_CENTER vertical/horizontal sizing : FLOW_SIZE_COMPONENTS_AS_THEY_WISH

If the FRAME_LAYOUT_FLAG is not set, the frame will be created without a layout manager.

You can also remove the default layout manager by calling myFrame->RemoveLayout() but you must not delete the default layout manager. The frame will do this when it gets destroyed. If you add your own layout manager, the frame will remove it in when it gets destroyed and you should delete your layout manager before exiting your application.

FRAME_BASIC
A frame with all flags turned off.
FRAME_FLOW_LAYOUT_FLAG
A frame with a VerticalFlowLayout layout manager.
FRAME_BORDER_FLAG
A frame with a border.
FRAME_TITLE_FLAG
A frame with a title.
FRAME_DEFAULT
A frame with default features.

Declared as:

typedef LookHint PenRefFrameLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefImageLookHint;

#include <flexui/penrefui.h>

The default Image shows the bitmap that was added to the object without a border. IMAGE_DEFAULT and IMAGE_BASIC are the same.

IMAGE_DEFAULT
Default look for the PenRefImage class.
IMAGE_BASIC
Base image object without any flags set.
IMAGE_BORDER_FLAG
Flag to show a border around the Image object

Declared as:

typedef LookHint PenRefImageLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefInkLookHint;

#include <flexui/penrefui.h>

There is only one look for an ink object. It has a white background and the color and width of the ink is user setable. INK_DEFAULT and INK_BASIC are the same.

INK_DEFAULT
Default look for the ink object.
INK_BASIC
An ink object with no flags set.

Declared as:

typedef LookHint PenRefInkLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefLabelLookHint;

#include <flexui/penrefui.h>

The default label has no border around it. The desired look for the label can be obtained by oring the respective flags with LABEL_BASIC. For examples see List.

LABEL_DEFAULT
A label with default features.
LABEL_BASIC
A label with all flags turned off.
LABEL_UNDERLINE_FLAG
Draws an underline beneath the label
LABEL_BORDER_FLAG
Draws a border around the label

Declared as:

typedef LookHint PenRefLabelLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefListLookHint;

#include <flexui/penrefui.h>

Default look for the list has a 1 pixel wide border.

The desired look for the list component can be obtained by oring the flags (LIST_BORDER_FLAG, LIST_SEPARATOR_FLAG) with the basic look i.e LIST_BASIC. For instance, in order to obtain a list with a border and a horizontal separator one needs to create the list in the following way

FlexList *list = theUIFactory->CreatePenRefList( LIST_BASIC | LIST_BORDER_FLAG | LIST_SEPARATOR_FLAG);

The horizontal separator is a 1 pixel wide horizontal line separating the items in the list.

To obtain a list with a border but no separator, one needs to create the list as follows: FlexList *list = theUIFactory-> CreatePenRefList(LIST_BASIC | LIST_BORDER_FLAG);

and so on.

LIST_DEFAULT
A list component with a 1 pixel wide border
LIST_BASIC
A basic list component with all flags turned off
LIST_BORDER_FLAG
Draws a 1 pixel wide border around the list
LIST_SEPARATOR_FLAG
Draws a 1 pixel wide horizontal separator between the items of the list.

Declared as:

typedef LookHint PenRefListLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefMenuLookHint;

#include <flexui/penrefui.h>

The default menu has a border around the menu trigger. When the menu opens, the menu window that pops up is placed near the menu trigger and a preferred location can be specified by calling SetPopupDirection(). The menu may change the popup direction if the items are too large to fit in that direction and some other direction is determined to be better.

Floating menus can be created by using the MENU_FLOAT_FLAG. A floating menu does not display its menu trigger and is opened by calling FlexMenu::Open() (the menu returned from the factory will be non-visible). The location of the menu window in this case will be taken as the location of the invisible menu trigger. So for this to work properly, one must not set the menu trigger visible or else it might get relocated by a layout manager (and thus the menu window would also be relocated).

MENU_BASIC
The menu with all flags turned off.
MENU_BORDER_FLAG
Draws a border around the menu trigger.
MENU_FLOAT_FLAG
Creates a floating menu.
MENU_DEFAULT
The menu trigger with a border.

Declared as:

typedef LookHint PenRefMenuLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefMenuButtonLookHint;

#include <flexui/penrefui.h>

The default menu buttons extend to the edges of the menu window and they have borders that change depending on where they are in the menu window and whether or not an item is selected.

MENU_BUTTON_DEFAULT
The default look.
MENU_BUTTON_BASIC
The menu button with all flags turned off.

Declared as:

typedef LookHint PenRefMenuButtonLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefPanelLookHint;

#include <flexui/penrefui.h>

The default panel has no borders and zero inset spacing. The panel flags apply to FlexPanel, FlexHorizontalPanel, and FlexVerticalPanel.

PANEL_BASIC
A panel with all flags turned off.
PANEL_BORDER_FLAG
A panel with a border around it.
PANEL_INSETS_FLAG
A panel with non-zero insets.
PANEL_DEFAULT
A panel with default features.

Declared as:

typedef LookHint PenRefPanelLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefScrollbarLookHint;

#include <flexui/penrefui.h>

The default PenRefScrollbar is SCROLLBAR_THUMB_BASIC.

SCROLLBAR_DEFAULT
The default.
SCROLLBAR_THUMB_BASIC
A traditional scrollbar with increment/decrement arrows, a track and a thumb.
SCROLLBAR_SPINNER_BASIC
A scrollbar with Just the increment/decrement arrows.

Declared as:

typedef LookHint PenRefScrollbarLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefTableLookHint;

#include <flexui/penrefui.h>

The PenRefTable has one look, TABLE_BASIC. The application writer can modify the TABLE_BASIC look by adding flags to it.

TABLE_DEFAULT
Default table. This provides a basic table with row borders, a scrollbar, and a table border.
TABLE_BASIC
Base table with no flags set.
TABLE_ROW_BORDERS_FLAG
Flag to indicate row borders. Can be used in combination with TABLE_COLUMN_BORDERS_FLAG to get cell borders.
TABLE_COLUMN_BORDERS_FLAG
Flag to indicate cell borders. Can be used in combination with TABLE_ROW_BORDERS_FLAG to get cell borders.
TABLE_SCROLLBAR_FLAG
Flag to indicate that a scrollbar should be used with the table.
TABLE_BORDER_FLAG
Flag to indicate a border around the table.

Declared as:

typedef LookHint PenRefTableLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefTextAreaLookHint;

#include <flexui/penrefui.h>

The default PenRefTextArea has a one pixel wide border.

There is a blinking cursor that is present when the PenRefTextArea has focus. There is no cursor if the PenRefTextArea is not editable.

TEXTAREA_DEFAULT
A text area with a one pixel wide border.
TEXTAREA_BASIC
A text area with all of its flags turned off.
TEXTAREA_BORDER_FLAG
Flag to turn the border on or off.

Declared as:

typedef LookHint PenRefTextAreaLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefTextFieldLookHint;

#include <flexui/penrefui.h>

The default text field has a 1 pixel wide border. There are two looks (TEXTFIELD_DEFAULT, TEXTFIELD_BASIC) and a flag for the text field. The looks are mutually exclusive and should not be or'd together. Doing so will result in undefined behavior. The flag can be or'd with the looks to obtain the desired feature for the text field. It's recommended that any desired feature for the text field should be obtained by oring flag desired with TEXTFIELD_BASIC look. For examples see LIST.

TEXTFIELD_DEFAULT
A text field with the default pictures
TEXTFIELD_BASIC
A text field with all the flags turned off
TEXTFIELD_BORDER_FLAG
Draws a 1 pixel wide border around the textfield

Declared as:

typedef LookHint PenRefTextFieldLookHint;

Back to the top of demoui_lib


typedef LookHint PenRefScrollPaneLookHint;

#include <flexui/penrefui.h>

PenRefScrollPane looks. The default scrollpane has a border of 1 pixel.

SCROLLPANE_DEFAULT
Scrollpane with borders of 1 pixel.
SCROLLPANE_BORDER_FLAG
Flag to set on the ScrollPane to specify borders.

Declared as:

typedef LookHint PenRefScrollPaneLookHint;

Back to the top of demoui_lib


const TCHAR SOUND_ERROR[];

#include <flexui/stdsound.h>

Predefined const strings used by the StandardSound class. Not all StandardSound classes will support all of these strings, but they are available to be used by applications if a platform supports it.

SOUND_ERROR
"error"
SOUND_WARNING
"warning"
SOUND_MODAL_BEEP
"modalbeep"

Declared as:

extern const TCHAR      SOUND_ERROR[];

Back to the top of demoui_lib


Generated from source by Geoworks on Sat Dec 12 18:29:25 1998 .