Actions
Callback » History » Revision 6
« Previous |
Revision 6/9
(diff)
| Next »
iri, 02/22/2011 12:34 PM
Callback¶
- _gtkButtonCB
Define a Scol callback to any button.
Prototype :¶
fun [ObjGtkWidget u1 u0 I] ObjGtkWidget
- Button : ObjGtkWidget : any button already created
- Reflex : u1 : the prototype of your Scol callback (see flag below)
- UserParameter : u0 : any parameter at your convenience
- flag : I : a flag :
- SCOL_GTK_BUTTON_CB_CLICKED : the button has been clicked
The type of the callback should be fun [ObjGtkWidget u0] u1
- SCOL_GTK_BUTTON_CB_TOGGLED : the state of the button has changed
The type of the callback should be fun [ObjGtkWidget u0 I] u1
The supplemental parameter is the current state : 1 : active / checked, 0 : inactive / unchecked
- SCOL_GTK_BUTTON_CB_LINKED : the button with a link has been activated
The type of the callback should be fun [ObjGtkWidget u0 S] u1
The supplemental parameter is the url.
WARNING : you should respect these prototypes to yours functions !
- Return : ObjGtkWidget : the same object
Return Buttons
Updated by iri almost 14 years ago · 6 revisions