Project

General

Profile

Actions

Callback

  • _gtkButtonCB

Define a Scol callback to any button. One function to define differents callbacks. So, set the flag correctly ;-)
You can call it several times to a same object.

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. GTK+ 3.0 or + only. Otherwise, it is ignored.

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 about 13 years ago ยท 9 revisions