_gtkButtonNewStock

Create a new button object with a specific stock item. A stock item is a prebuilt common item and corresponding icon. The items list is available in the Stockitems section.

Crée un nouvel objet bouton avec une icône gtk prédéfinie. La liste de ces items disponible dans Scol est consultable dans la section Stockitems.

Type :

fun [Chn I] ObjGtk

_channel_ : Chn : any channel

_label_ : I : any valid stockitem.

Return : ObjGtk : this object if success or nil if an error occurs

Example :

	typeof button = ObjGtk;;
	fun main()=
		_showconsole;
		set button = _gtkButtonNewStock _channel SGTK_STOCK_COLOR_PICKER;
		...

Back