_gtkButtonLabel

Set or get the label of a button.

Affecte ou récupère le label d'un bouton.

Type :

fun [Chn S I] S

_button_ : ObjGtk : any button already created.

_label_ : S : the new label or 'nil' to get the current label.

_flag_ : I :

Return : S : the same string _label_ or, if _label_ is nil, the current label

Example :

	typeof button = ObjGtk;;
	fun main()=
		_showconsole;
		set button = _gtkButtonNewLabel _channel "New file";
		_fooS gtkButtonLabel button nil nil;	// display "New file" into the console)
		gtkButtonLabel button "_Save file" SGTK_BUTTON_USE_UNDERLINE;	// change the current label
		gtkButtonLabel button "gtk-open" SGTK_BUTTON_USE_STOCK;	// rechange the current label
		...

Note : the button can be created with a simple _gtkButtonNewLabel and set this a flag 'SGTK_BUTTON_USE_UNDERLINE' (as above) or another flag.

Back