Events List In PowerBuilder
Single-select or multiple-select
button message (prefix: pbm_bm) | |
pbm_bmgetcheck | Whether
the radio button or multi-select button is selected. |
pbm_bmgetstate | Whether
the button is highlighted. |
pbm_bmsetcheck | Change
the selected state of the wireless button or confirmation box to the
unselected state, and vice versa. |
pbm_bmsetstate | Highlight
or not highlight the button. |
pbm_bmchange | Change
the style of the buttons, for example, to radio buttons or combo boxes. |
Single-select or multiple-select
button notification message (prefix: pbm_bn) | |
pbm_bnclicked | The
button control is clicked. |
pbm_bndisable | Invalidate
the button control. |
pbm_bndoubleclicked | The
button control is double-clicked. |
pbm_bndragdrop | An
object is placed on the button control. |
pbm_bndragenter | An
object is dragged to the button control. |
pbm_bndragleave | An
object is dragged away from the button control. |
pbm_bndragover | An
object is dragged through the button control. |
pbm_bnhilite | The
button control is highlighted. |
pbm_bnpaint | The
button control is drawn. |
pbm_bnsetfocus | The
button control gains focus. |
pbm_bnunhilite | The
button control is not highlighted. |
Common dialog messages (prefix:
pbm_cb) | |
pbm_cbaddstring | Add
the string to the common dialog box. |
pbm_cbdeletestring | Delete
a character string from the common dialog box. |
pbm_cbdir | Add
a directory list to the common dialog box. |
pbm_cbfindstring | Search
for a string that starts with a set of characters. |
pbm_cbfindstringexact | Search
for a string that exactly matches the provided character. |
pbm_cbgetcount | The
number of items in the list box. |
pbm_cbgetcursel | The
number of currently selected items. |
pbm_cbgetdroppedcontrolset | The
coordinate position of the list box on the screen. |
pbm_cbgeteditsel | The
range of selected characters in the editor control. |
pbm_cbgetextendedui | Default
or extended user interface. |
pbm_cbgetitemdata | The
4-byte (32-bit) item in the redrawn list box. |
pbm_cbgetitemheight | The
height of an item in the list box. |
pbm_cbgetlbtext | The
text in the list box. |
pbm_cbgetlbtextlen | The
length of the text in the list box. |
pbm_cbinsertstring | Add
a new string or 4-byte item to the list box. |
pbm_cblimittext | Limit
the number of characters that can be entered into the list box. |
pbm_cbresetcontent | Delete
all elements in the list box. |
pbm_cbselectstring | Search
for the matched string and display it. |
pbm_cbsetcursel | Select
and display an item in the list box. |
pbm_cbseteditsel | Select
a piece of text in the editing area of ​​the list box. |
pbm_cbsetextendedui | Set
the default or extended user interface. |
pbm_cbsetitemdata | Set
the 4-byte (32-bit) item in the list box. |
pbm_cbsetitemheight | Set
the height of the item in the list box. |
pbm_cbshowdropdown | Convert
(show or hide) the drag-and-drop area in the list box. |
Common dialog notification message
(prefix: pbm_cbn) | |
pbm_cbndblclk | The
user double-clicks on an item in the list. |
pbm_cbndragdrop | An
object is placed on the common dialog box control. |
pbm_cbndragenter | An
object is dragged onto the common dialog control. |
pbm_cbndragleave | An
object is dragged away from the common dialog control. |
pbm_cbndragover | An
object is dragged through the common dialog box control. |
pbm_cbndropdown | The
lower area of ​​the list box is about to be displayed. |
pbm_cbneditchange | The
text in the editor control changes. |
pbm_cbneditupdate | The
text in the list box editor control is about to be changed. |
pbm_cbnerrspace | The
list box is full and no more items can be added to it. |
pbm_cbnkillfocus | The
general list box loses focus. |
pbm_cbnselchange | The
selected text in the list box is changed. |
pbm_cbnselendcancel | The
user pressed the “Cancel” button. |
pbm_cbnselendok | The
user pressed the “OK” button. |
pbm_cbnsetfocus | The
general dialog control has focus. |
Datawindow message (prefix:
pbm_dw) | |
pbm_dwclosedropdown | Close
the drop-down data window. |
pbm_dwscrollend | Scroll
to the last line in the data window. |
pbm_dwscrollhome | Scroll
to the first row in the data window. |
pbm_dwscrolllineend | Scroll
to the end of the current line (horizontal direction). |
pbm_dwscrolllinehome | Scroll
to the beginning of the current line (horizontal direction). |
Datawindow notification message
(prefix: pbm_dwn) | |
pbm_dwnbacktabout | About
to leave the control by shift+tab key combination. |
pbm_dwnchanging | The
control is about to be changed. |
pbm_dwndropdown | The
drop-down part of the drop-down list box will be visible soon. |
pbm_dwngraphcreate | The
image is about to be created. |
pbm_dwnitemchangefocus | The
focus change of the current item in the data window control. |
pbm_dwnitemvalidationerror | The
modification of the current item caused a legality check error. |
pbm_dwnkey | A
key was pressed. Use keydown() to process keyboard values. |
pbm_dwnlbuttondown | The
left mouse button is pressed. |
pbm_dwnlbuttonup | The
left mouse button is released. |
pbm_dwnmbuttonclk | Click
with the middle mouse button. |
pbm_dwnmbuttondbclk | Double-click
the middle mouse button. |
pbm_dwnmousemove | The
mouse moves. |
pbm_dwnprintmarginchange | The
print boundary is changed. |
pbm_dwnprocessenter | The
enter key is pressed. |
pbm_dwnrowchange | The
focus shifts from one row to another in the data window. |
pbm_dwntabdownout | The
user pressed the down arrow key in the last row of the data window. |
pbm_dwntabout | The
user pressed the tab key in the last row/column of the data window. |
pbm_dwntabupout | The
user pressed the up arrow key in the first row of the data window. |
Dynamic data exchange (dde)
messages (prefix: pbm_dde) | |
pbm_ddeddeack | Received
a dde message. |
pbm_ddeddeinitiate | Start
a dde session. |
pbm_ddeddeterminate | Terminate
a dde session. |
Editor control messages (prefix:
pbm_em) | |
pbm_emcanundo | Whether
the editor control can undo the last modification. |
pbm_ememptyundobuffer | Clear
the buffer of cancel operation managed by windows. |
pbm_emfmtlines | Add
or delete carriage return and line feed at the end of the multi-line editor
control. |
pbm_emgetfirstvisibleline | Returns
the line number of the first line visible in the editor control. |
pbm_emgethandle | Get
the memory handle used by the editor control. |
pbm_emgetline | Copy
a line from the editor control to a buffer in memory. |
pbm_emgetlinecount | Returns
the number of lines of the multi-line editor control. |
pbm_emgetmodify | Whether
the text is modified by the user. |
pbm_emgetrect | Returns
the rectangular field of the control. |
pbm_emgetsel | Returns
the starting position of the selected text. |
pbm_emlimittext | Limit
the length of text typed by users. |
pbm_emlinefromchar | Returns
the line number of the selected text. |
pbm_emlineindex | Returns
the position in the edit string of the first character of the selected line
in the editor control. |
pbm_emlinelength | Returns
the number of characters in the selected line in the editor control. |
pbm_emlinescroll | Scroll
the editor controls horizontally or vertically. |
pbm_emreplacesel | Replace
the selected text with new text from the clipboard or from the keyboard. |
pbm_emsethandle | Set
the handle of the editor control to point to a buffer in memory. |
pbm_emsetmodify | Set
the modified flag of the editor control. |
pbm_emsetpasswordchar | Set
the characters displayed when the user enters all text, and the display when
entering the password. |
pbm_emsetrect | Set/reset
the rectangular area where the editor control is located, and the text in the
editor control is redrawn. |
pbm_emsetrectnp | Except
that the text is not redrawn, it is roughly the same as setrect. |
pbm_emsetsel | Select
characters. |
pbm_emsettabstops | Set
tabstops in the multi-line editor control. |
pbm_emsetwordbreak | Set
up a new word split function. |
pbm_emsetwordbreakproc | Set
up a new word splitting process. |
pbm_emundo | Undo
the most recent editing operation. |
Edit control notification message
(prefix: pbm_en) | |
pbm_enchange | The
text in the editor control has changed. |
pbm_enerrspace | The
editor control memory buffer overflowed. |
pbm_enhscroll | The
user clicks the middle and upper horizontal scroll bar. |
pbm_enmaxtext | The
user tried to enter more text than allowed. |
pbm_enupdate | The
editor control is about to display the user’s changes. |
pbm_envscroll | The
user clicked the vertical scroll bar. |
List box message (prefix: pbm_lb) | |
pbm_lbaddstring | Add
an item or string to the list box control. |
pbm_lbdeletestring | Delete
an item or string from the list box. |
pbm_lbdir | Fill
the list box with a list of directories. |
pbm_lbfindstring | Search
for the first item that partially matches the given string in the list box. |
pbm_lbfindstringexact | Search
for the first item that exactly matches the given string in the list box. |
pbm_lbgetcaretindex | Search
for items with focus in the list box. |
pbm_lbgetcount | Determine
the number of items in the list box. |
pbm_lbgetcursel | Determine
which item is the selected item. |
pbm_lbgethorizontalextent | Get
the width of the list box and calculate the horizontal scrolling. |
pbm_lbgetitemheight | Determines
the height of the items in the list box control. |
pbm_lbgetitemrect | Determine
the size of the list box. |
pbm_lbgetsel | Get
the currently selected item in the list box. |
pbm_lbgetselcount | Get
the number of selected items in the multiple selection list box. |
pbm_lbgetselitems | Fill
a given array of integers with their respective item numbers in the list box. |
pbm_lbgettext | Get
the text of the currently selected item in the list box. |
pbm_lbgettextlen | Get
the number of characters in the text of the currently selected item in the
list box. |
pbm_lbgettopindex | Determine
the item number of the top item visible in the list box. |
pbm_lbinsertstring | Add
a new string to the list box. |
pbm_lbresetcontent | Reset
(delete) the content in the list box. |
pbm_lbselectstring | Search
and highlight the string that matches the given character. |
pbm_lbselitemrange | Select/cancel
items in a certain range in the list box. |
pbm_lbsetcaretindex | Set
an item in the list box to have focus. |
pbm_lbsetcolumnwidth | Set
the width of the columns in the list box. |
pbm_lbsetcursel | Select
and highlight an item in the list box; scroll to the list box if necessary. |
pbm_lbsethorizontaltext | Set
the number of horizontally rolled units in the list box. |
pbm_lbsetitemdata | Set
the 32-bit/4-byte value related to the list box. |
pbm_lbsetitemheight | Set
the height of the item in the list box. |
pbm_lbsetsel | Select
a string in the list box. |
pbm_lbsettabstops | Set
the position of tabstops in the list box control. |
pbm_lbsettopindex | Scroll
the list box to make a specific item the top item visible. |
List box notification message
(prefix: pbm_en) | |
pbm_endblclk | The
user double-clicks on an item in the list box control. |
pbm_enerrspace | The
user tried to exceed the maximum limit of characters that can be entered in
the list box. |
pbm_enselcancel | The
currently selected text is cancelled. |
pbm_enselchange | The
user selects or cancels an item in the list box. |
Window message (prefix: pbm_) | |
pbm_activateapp | The
activated window belongs to another application. |
pbm_askcbformatname | The
contents of the clipboard are required to be copied to a text buffer in a
custom format. |
pbm_char | Transmit
the keys pressed on the keyboard. |
pbm_chartoitem | By
converting the characters from the keyboard, help the list box to locate the
items in it. |
pbm_childactivate | A
child window is moved or activated. |
pbm_clear | The
user wants to delete the content in the current editor control. |
pbm_command | The
user has selected a menu item, control, or used an accelerator key. |
pbm_compacting | System
memory resources are insufficient; this message is generated when windows
occupies more than 1/8 of the CPU time to shrink memory. |
pbm_compareitem | This
message is generated when a new item is added to the list box or combo box,
and the window uses this message to compare items. |
pbm_ctlcolor | A
control is about to be drawn, and the color of the control can be changed at
this time. |
pbm_deadchar | The
user has selected a non-English character set or other special character set,
which will change the characters to be entered below. |
pbm_deleteitem | Remove
an item from the list box or common dialog box. |
pbm_destroyclipboard | The
clipboard contents are cleared. |
pbm_devmodechanged | A
device name in win.ini has been modified. |
pbm_drawclipboard | The
contents of the clipboard have changed. |
pbm_drawitem | One
item of the list box or common dialog box has been changed. |
pbm_dropfiles | This
message is issued when the left mouse button is released on an application
registered as a drag-and-drop file acceptor. |
pbm_erasebkgnd | The
client area of ​​the window needs to be redrawn. |
pbm_fontchange | Apply
changes to the number of available fonts. |
pbm_getdlgcode | The
notification message indicates which type of keyboard is currently in use. |
pbm_getfont | Get
the currently activated font. |
pbm_getminmaxinto | windows
is checking the size of the minimized or maximized window. |
pbm_gettext | Copy
text from a control (such as a button or editor control) to a memory buffer. |
pbm_gettextlength | Used
to determine the number of characters in a control. |
pbm_hscrollclipboard | The
horizontal scroll bar of the clipboard is used. |
pbm_iconerasebkgnd | A
minimized window needs to recreate the background. |
pbm_initdialog | A
dialog box is about to be displayed. |
pbm_initmenu | A
menu is about to be displayed. |
pbm_initmenupopup | A
pop-up window is about to be displayed. |
pbm_keydown | A
key on the keyboard was pressed. |
pbm_keyup | A
key on the keyboard is released. |
pbm_mdiactive | An
mdi child window (form) is activated. |
pbm_mdicascade | Rearrange
all forms in overlapping form. |
pbm_mdicreate | Create
a form. |
pbm_mdidestroy | Remove
a form from the mdi frame. |
pbm_mdigetactive | Get
the handle of the currently active mdi form. |
pbm_mdiiconrange | Rearrange
the icons of the minimized form in an mdi frame. |
pbm_mdimaximize | Maximize
an mdi sub-form. |
pbm_mdinext | Activate
the next mdi form (the form immediately following the active form). |
pbm_mdirestore | Restore
the mdi form to its original size. |
pbm_mdisetmenu | Associate
a menu with an mdi form. |
pbm_mdifitle | Tile
all mdi forms. |
pbm_measureitem | This
message is sent to the window to be created that contains buttons or other
controls. |
pbm_menuchar | The
user used a shortcut key, but the system does not support the shortcut key. |
pbm_menuselect | The
user has selected a menu item. |
pbm_mouseactivate | The
user clicked the mouse in an inactive window. |
pbm_mousemove | The
user moved the mouse. |
pbm_ncactivate | The
non-client area of ​​the window is about to be activated. |
pbm_nccalcsize | The
size of the window needs to be recalculated. |
pbm_nccreate | The
window is about to create its non-client area. |
pbm_ncdestroy | The
non-shared area of ​​the window is destroyed. |
pbm_nchittest | This
message is sent every time the non-client area is moved. |
pbm_nclbuttondblclk | The
user double-clicked the left mouse button in the non-client area. |
pbm_ncpaint | Non-customers
need to draw. |
pbm_nextdlgctl | Transfer
the focus to another control in the dialog box. |
pbm_paint | The
client area of ​​the window needs to be drawn. |
pbm_paintclipboard | Clipboard
applications have cut and paste operations, and the clipboard viewer needs to
redraw. |
pbm_palettechanged | The
system palette is changed. |
pbm_paletteischanging | The
system palette is about to be changed. |
pbm_parentnotify | Notify
the parent window that a child window is about to be created. |
pbm_querydragicon | The
user wants to drag a minimized window. |
pbm_queryendsession | A
notification message stating that the window is about to be closed. |
pbm_querynewpalette | The
application is about to receive the input focus, and the necessary color
adjustments should be performed. |
pbm_queryopen | A
minimized window is about to be restored. |
pbm_quit | The
last message processed by the application. |
pbm_renderallformats | Notify
the owner of a clipboard format that the application will lose all formats. |
pbm_renderformats | A
notification message stating that the data placed in the clipboard should be
transmitted in a special format. |
pbm_setcursor | A
notification message stating that the mouse pointer is moving in a window. |
pbm_setfont | Used
to change the font in the dialog box. |
pbm_setredraw | Send
to the list box or common dialog box before adding a new item. |
pbm_settext | Used
to change the title or text of the window. |
pbm_sizeclipboard | The
clipboard viewer application changes the size. |
pbm_spoolerstatus | A
print manager task is added or deleted. |
pbm_syschar | The
<alt> key and some other key were pressed at the same time. |
pbm_syscolorchange | One
or more system colors have been changed. |
pbm_syscommand | The
user has selected a system menu command. |
pbm_sysdeadchar | Notification
message stating that a non-English character set has been selected. |
pbm_syskeydown | The
user pressed a key while pressing the <alt> key. |
pbm_syskeyup | The
user released the <alt> key combination. |
pbm_timechange | The
system clock is modified. |
pbm_undo | Copy
text from the undo buffer to the editor control. |
pbm_vkeytoitem | When
a list box has focus, the user presses a key. |
pbm_vscroll | The
user clicked on the vertical scroll bar. |
pbm_vscrollclipboard | The
vertical scroll bar of the clipboard viewer is clicked. |
pbm_windowposchanged | The
window position has changed. |
pbm_windowposchanging | The
window position is about to change. |
pbm_wininichange | The
win.ini file is modified. |
Good Luck!
lo máximo!