class PtBasic PtWidget { basic_flags; // flag bot_border_color; // color (Pt_ARG_BOT_BORDER_COLOR) color; // color (Pt_ARG_COLOR) fill_color; // color (Pt_ARG_FILL_COLOR) fill_pattern; // pattern string (Pt_ARG_FILL_PATTERN) highlight_roundness; // unsigned short (Pt_ARG_HIGHLIGHT_ROUNDNESS) margin_height; // unsigned short (Pt_ARG_MARGIN_HEIGHT) margin_width; // unsigned short (Pt_ARG_MARGIN_WIDTH) top_border_color; // color (Pt_ARG_TOP_BORDER_COLOR) trans_pattern; // pattern string (Pt_ARG_TRANS_PATTERN) }
CwGraph, PtBarGraph, PtBitmap, PtCalendar, PtClock, PtContainer, PtFolderTab, PtGauge, PtGraphic, PtGrid, PtLabel, PtLed, PtRaw, PtScrollbar, PtSeparator, RtMeter, RtTrend
This class serves as a parent class of resources, and is not normally instantiated. The variables here have to do mainly with physical appearance such as color, patterns, and margin sizes.
![]() | For detailed information, please refer to PtBasic in the Photon documentation. |
The following callbacks are associated with this widget:
| Callback | Description |
|---|---|
| Pt_CB_ARM | This callback is generated when the widget is armed. |
| Pt_CB_DISARM | This callback is generated when the widget is disarmed. |
| Pt_CB_ACTIVATE | This callback is generated when the widget is activated. |
| Pt_CB_GOT_FOCUS | This callback is generated when the widget gets focus or changes focus status. |
| Pt_CB_LOST_FOCUS | This callback is generated when the widget loses focus. |
| Pt_CB_REPEAT | This callback is generated when the widget receives but_repeat events. |
| Pt_CB_MENU | This callback is generated when the pointer is over the widget and the right button is pressed. |
This function is an extension of the QNX Photon function. You can refer to the PtBasic function documentation in QNX Helpviewer for more information about it.
PtBasicWidgetCanvas (widget) -- determines the area inside the widget's border.
Returns a PtRect.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.