Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptnumeric.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptnumeric.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptnumeric.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptnumeric.html on line 8

PtNumeric

A superclass for numeric widgets

Class hierarchy:

PtWidgetPtBasicPtContainerPtCompoundPtNumeric

Immediate subclasses:

For more information, see the diagram of the widget hierarchy.

PhAB icon:

None — not normally instantiated.

Public header:

<photon/PtNumeric.h>

Description:

PtNumeric is a parent class for all numeric widgets. It creates a PtText widget and arrows to let you interact with the widget. It also creates some of the base functionality of numeric widgets.

New resources:

Resource C type Pt type Default
Pt_ARG_NUMERIC_FLAGS unsigned short Flag See below
Pt_ARG_NUMERIC_PREFIX char * String NULL
Pt_ARG_NUMERIC_SPACING unsigned short Scalar 1
Pt_ARG_NUMERIC_SUFFIX char * String NULL
Pt_ARG_NUMERIC_UPDOWN_WIDTH unsigned short Scalar 17

Pt_ARG_NUMERIC_FLAGS

C type Pt type Default
unsigned short Flag Pt_NUMERIC_ENABLE_UPDOWN | Pt_NUMERIC_WRAP | Pt_NUMERIC_AUTO_HIGHLIGHT

Flags that control the widget's appearance and behavior; any combination of:

Pt_NUMERIC_AUTO_HIGHLIGHT
Autohighlight text when selected.
Pt_NUMERIC_ENABLE_UPDOWN
Display the up/down buttons.
Pt_NUMERIC_HEXADECIMAL
Display the value as a hexadecimal number (applies only to PtNumericInteger).
Pt_NUMERIC_USE_SEPARATORS
Insert comma separators in values (e.g. 1,000).
Pt_NUMERIC_WRAP
Wrap numbers from minimum to maximum and from maximum to minimum.

Pt_ARG_NUMERIC_PREFIX

C type Pt type Default
char * String NULL

A prefix string to be added to all entered values.

Pt_ARG_NUMERIC_SPACING

C type Pt type Default
unsigned short Scalar 1

The spacing, in pixels, between the text field and the up/down buttons.

Pt_ARG_NUMERIC_SUFFIX

C type Pt type Default
char * String NULL

A suffix string to be added to all entered values.

Pt_ARG_NUMERIC_UPDOWN_WIDTH

C type Pt type Default
unsigned short Scalar 17

The width, in pixels, of the PtScrollbar widget.

Exported subordinate children:

Unless the resources are already defined in PtNumeric, the PtNumeric class uses the resources of its exported subordinate child, PtScrollbar.

The PtNumeric class “inherits” all the resources of its exported subordinate child. Where PtNumeric and its exported subordinate child both define resources having the same name, the resource defined in PtNumeric takes precedence.

Inherited resources:

If the widget modifies an inherited resource, the “Default override” column indicates the new value. This modification affects any subclasses of the widget.

Resource Inherited from Default override
Pt_ARG_ANCHOR_FLAGS PtWidget Not used by this class.
Pt_ARG_ANCHOR_OFFSETS PtWidget Not used by this class.
Pt_ARG_AREA PtWidget
Pt_ARG_ARM_COLOR PtButton
Pt_ARG_ARM_FILL PtButton Pg_GRAY
Pt_ARG_ARM_IMAGE PtButton
Pt_ARG_BANDWIDTH_THRESHOLD PtBasic Not used by this class.
Pt_ARG_BASIC_FLAGS PtBasic
Pt_ARG_BEVEL_WIDTH PtWidget 0
Pt_ARG_BITMAP_CURSOR PtWidget
Pt_ARG_BEVEL_COLOR PtBasic
Pt_ARG_BEVEL_CONTRAST PtBasic
Pt_ARG_COLOR PtBasic
Pt_ARG_CONTAINER_FLAGS PtContainer Not used by this class.
Pt_ARG_CONTRAST PtBasic
Pt_ARG_CURSOR_COLOR PtWidget
Pt_ARG_CURSOR_OVERRIDE PtContainer
Pt_ARG_CURSOR_TYPE PtWidget
Pt_ARG_DARK_BEVEL_COLOR PtBasic
Pt_ARG_DARK_FILL_COLOR PtBasic
Pt_ARG_DATA PtWidget
Pt_ARG_DIM PtWidget
Pt_ARG_EFLAGS PtWidget
Pt_ARG_EXTENT PtWidget
Pt_ARG_FILL_COLOR PtBasic Pg_TRANSPARENT
Pt_ARG_FILL_PATTERN PtBasic
Pt_ARG_FLAGS PtWidget 0
Pt_ARG_HEIGHT PtWidget
Pt_ARG_HELP_TOPIC PtWidget
Pt_ARG_HIGHLIGHT_ROUNDNESS PtBasic
Pt_ARG_INLINE_COLOR PtBasic
Pt_ARG_LIGHT_BEVEL_COLOR PtBasic
Pt_ARG_LIGHT_FILL_COLOR PtBasic
Pt_ARG_MARGIN_HEIGHT PtBasic 0
Pt_ARG_MARGIN_WIDTH PtBasic 0
Pt_ARG_MAXIMUM_DIM PtWidget
Pt_ARG_MINIMUM_DIM PtWidget
Pt_ARG_OUTLINE_COLOR PtBasic
Pt_ARG_POINTER PtWidget
Pt_ARG_POS PtWidget
Pt_ARG_RESIZE_FLAGS PtWidget Pt_RESIZE_Y_ALWAYS | Pt_RESIZE_X_AS_REQUIRED
Pt_ARG_STYLE PtBasic
Pt_ARG_TITLE PtContainer
Pt_ARG_TITLE_FONT PtContainer
Pt_ARG_TRANS_PATTERN PtBasic
Pt_ARG_USER_DATA PtWidget
Pt_ARG_WIDTH PtWidget
Pt_CB_ACTIVATE PtBasic
Pt_CB_ARM PtBasic
Pt_CB_BALLOONS PtContainer
Pt_CB_BLOCKED PtWidget
Pt_CB_CHILD_ADDED_REMOVED PtContainer
Pt_CB_DESTROYED PtWidget
Pt_CB_DISARM PtBasic
Pt_CB_DND PtWidget
Pt_CB_FILTER PtWidget
Pt_CB_GOT_FOCUS PtBasic
Pt_CB_HOTKEY PtWidget
Pt_CB_IS_DESTROYED PtWidget
Pt_CB_LOST_FOCUS PtBasic
Pt_CB_MENU PtBasic
Pt_CB_OUTBOUND PtWidget
Pt_CB_RAW PtWidget
Pt_CB_REALIZED PtWidget
Pt_CB_REPEAT PtBasic
Pt_CB_RESIZE PtContainer
Pt_CB_UNREALIZED PtWidget

Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptnumeric.html on line 907

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptnumeric.html on line 907