class PtNumeric PtContainer { numeric_flags; // flag (Pt_ARG_NUMERIC_FLAGS) numeric_prefix; // string (Pt_ARG_NUMERIC_PREFIX) numeric_suffix; // string (Pt_ARG_NUMERIC_SUFFIX) numeric_text_border; // integer (Pt_ARG_NUMERIC_TEXT_BORDER) numeric_text_bot_border_color; // color (Pt_ARG_NUMERIC_TEXT_BOT_BORDER_COLOR) numeric_text_color; // color (Pt_ARG_NUMERIC_TEXT_COLOR) numeric_text_fill_color; // color (Pt_ARG_NUMERIC_TEXT_FILL_COLOR) numeric_text_font; // string (Pt_ARG_NUMERIC_TEXT_FONT) numeric_text_top_border_color; // color (Pt_ARG_NUMERIC_TEXT_TOP_BORDER_COLOR) numeric_updown_border_width; // integer (Pt_ARG_NUMERIC_UPDOWN_BORDER_WIDTH) numeric_updown_width; // integer (Pt_ARG_NUMERIC_UPDOWN_WIDTH) }
This class serves as a parent class of resources for numeric widgets, and is not normally instantiated. It joins a PtText widget with a PtUpDown widget, creating a text-entry box for numbers that can be incremented or decremented with small arrow-shaped buttons.
For detailed information, please refer to PtNumeric in the Photon documentation. |
This instance variable controls the behavior and display of the widget, and may be a combination of zero or more of the following flags:
Constant | Description |
---|---|
Pt_NUMERIC_ENABLE_UPDOWN | Displays the Up and Down arrow buttons. Default is ON. |
Pt_NUMERIC_USE_SEPARATORS | Use comma separators for numbers over 999 (e.g. 5,324,890). |
Pt_NUMERIC_WRAP | Wrap numbers from minimum to maximum and from maximum to minimum. Default is ON. |
Pt_NUMERIC_AUTO_HIGHLIGHT | Highlight text when selected. Default is ON. |
A string that is prefixed to all numbers entered.
A string that is appended to all numbers entered.
A number of pixels specifying the border width of the text display window.
A string specifying a color for the bottom border. Default is 0x606060 (dark grey).
A string specifying a color for numeric text. Default is 0x0 (black).
A string specifying a color for the text display. Default is 0xc0c0c0 (grey).
A string specifying the text font. Default is "helv12".
A string specifying a color for the top border. Default is 0xffffff (white).
A number of pixels specifying the border width of the PtUpDown arrow buttons.
A number of pixels specifying the width of the PtUpDown arrow buttons.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.