On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTPEG-32 Programming Manual
RTPEG-32 Reference Manual
Function PegInitialize
Function PegExecute
Status Flags
Style Flags
Signals
Structures
Base Classes
Control Classes
Window Classes
Charting Classes
Image Conversion Classes
HMI (Human-Machine Interface) Classes
ZLIB Compression
Unicode Character Set Conversion
RTUSB-32
|
Signals
Many controls send signals to their parent. Individual signals can be enabled or disabled with PegThing's Method SetSignals. By default, all signals are enabled if the control as an ID value other than 0.
Signals are send as PegMessages. The sending object's ID and the signals values are passed in wType using macro SIGNAL(). pSource holds a pointer to the sending object. iData is the sending object ID value. lData will usually contain data associated with signal. For example, the PSF_SCROLL_CHANGE signal sent by a scroll bar has the current scroll position in lData. When the signal is associated with another object, lData will contain the ID of that object. For example, PegTreeView will set lData to the ID of selected/unselected object in all PSF_NODE_... signals.
The available signals are:
Object |
Signal |
Comment |
All |
PSF_SIZED
PSF_FOCUS_RECEIVED
PSF_FOCUS_LOST
PSF_KEY_RECEIVED
PSF_RIGHTCLICK |
The object is moved or sized
The object receives input focus
The object lost input focus
Keyboard input is received
Mouse Right-click received |
Text |
PSF_TEXT_EDITDONE |
A text object modification is complete |
Buttons |
PSF_CLICKED
PSF_CHECK_ON
PSF_CHECK_OFF
PSF_DOT_ON
PSF_DOT_OFF |
A button is selected
A check box or menu button is checked
A check box or menu button is unchecked
A radio or menu button is selected
A radio or menu button is unselected |
Lists |
PSF_LIST_SELECT |
An item is selected (including PegComboBox) |
Scroll |
PSF_SCROLL_CHANGE
PSF_SLIDER_CHANGE |
A non-client PegScroll object is scrolled
A PegSlider objects is slided |
Spins |
PSF_SPIN_MORE
PSF_SPIN_LESS |
Up or right arrow is selected
Down or left arrow is selected |
SpreadSheet |
PSF_COL_SELECT
PSF_COL_UNSELECT
PSF_ROW_SELECT
PSF_ROW_UNSELECT
PSF_CELL_SELECT
PSF_CELL_UNSELECT |
PegTable column(s) are selected
PegTable column is unselected
PegTable row(s) are selected
PegTable row is unselected
PegTable cell(s) are selected
PegTable cell is unselected |
Notebook |
PSF_PAGE_SELECT |
A PegNotebook page is selected |
TreeView |
PSF_NODE_SELECT
PSF_NODE_DELETE
PSF_NODE_OPEN
PSF_NODE_CLOSE |
A PegTreeView TreeNode is selected
A TreeNode Delete key is received
A TreeNode is opened by user
A selected TreeNode is closed by user |
Style Flags
Structures
|