Events - WIN

The following events are implement by the system and control windows.

See also API Reference, WIN.

blur

"blur"

Sent to a window when it is loosing input focus.

Parameters
wnd window The window gaining focus, it may be nil.

Remarks
See window:on_blur.


top


btn_click

"btn_click"

Sent by a buttonWindow control to its parent window when actioned.

Parameters
wnd buttonWindow The window that sent the event.

Remarks


top


check_change

"check_change"

Sent by a checkWindow control to its parent window when its check state changes.

Parameters
wnd checkWindow The window that sent the event.

Remarks


top


comm_receive

"comm_receive"

Sent by the comm system to a window interested in receiving the message.

Parameters
msg msg The message received.

Remarks
See window:on_receive, comm_sent.

top


comm_sent

"comm_sent"

Sent by the comm system to a window interested in the send result.

Parameters
msg msg The message that was sent.
success boolean True if the message was successfully sent, false if failed.

Remarks
See window:on_sent, comm_receive.


top


focus

"focus"

Sent to a window when it is gaining input focus.

Parameters
wnd window The window loosing input focus, it may be nil.

Remarks
See window:on_focus.


top


frame_close

"frame_close"

Sent by the system to the top frame when Ctrl+Alt+X is pressed, and by a closeButtonWindow control to its parent when actioned.

Parameters
none


Remarks
See window:on_frame_close


top


hbar_scroll

"hbar_scroll"

Sent to a window to action its horizontal scroll bar.

Parameters
direction number -1 if scrolled up, 1 if down.
page boolean True for page action, false for column action.

Remarks
See window:on_h_scroll


top


idle

"idle"

Sent by the desktop to each of its children (frame level windows) when the system is idle.

Parameters
idle_count number Number of successive times (1 based) the idle event was propagated since any other event type was processed.

Remarks
See window:on_idle


top


input_change

"input_change"

Sent by an inputWindow control to its parent window when its contents has changed.

Parameters
wnd inputWindow The window that sent the event.

Remarks


top


link_click

"link_click"

Sent by a browserWindow to its parent window when a link (a) node is left clicked/touched.

Parameters
wnd browserWindow The window that sent the event.
href string/nil The href property from the link node. It may be nil.
protocol string/nil The protocol property from the link node. It may be nil.

Remarks
Generally, if the protocol is not specified "http:" should be assumed.


top


list_click

"list_click"

Sent by a listWindow control to its parent window when an item has been left clicked/touched/enter key pressed.

Parameters
wnd listWindow The window that sent the event.

Remarks


top


list_double_click

"list_double_click"

Sent by a listWindow control to its parent window when an item is double left clicked/touched/enter key pressed.

Parameters
wnd listWindow The window that sent the event.

Remarks


top


menu_cmd

"menu_cmd"

Sent by a menuWindow control to its parent window when the user selects a menu item.

Parameters
id number The menu item id.

Remarks


top


modified

"modified"

Sent by an editWindow control to its parent window when its modified state changes.

Parameters
wnd editWindow The window that sent the event.

Remarks


top


selection_change

"selection_change"

Sent by a listWindow control to its parent window when its selected item has changed, and an editWindow control to its parent window when its selection range has changed.

Parameters
wnd window The window that sent the event.

Remarks


top


vbar_scroll

"vbar_scroll"

Sent to a window to action its vertical scroll bar.

Parameters
direction number -1 if scrolled up, 1 if down.
page boolean True for page action, false for line action.

Remarks
See also window:on_v_scroll


top


See also API Reference, WIN.