_gtkBoxAddFromStart

Adds a child to any box. The child is added after the others childs already added, with as reference, the start of the box (from the start to the end). See also _gtkBoxAddFromEnd.

To add a list of children, see _gtkBoxAddListFromStart.

Ajoute un élément enfant à une boîte. Cet enfant sera ajouté après les autres enfants déjà intégrés, en partant du début de la boîte (du début vers la fin). Voir également _gtkBoxAddFromEnd.

Pour ajouter une liste d'enfants, voir _gtkBoxAddListFromStart.

Type :

fun [ObjGtk ObjGtk I I I] I

_box_ : ObjGtk : any box

_child_ : ObjGtk : any widget to add

_expand_ : I : if the new child is to be given extra space allocated to box, then SGTK_EXPANDED or not SGTK_NO_EXPANDED

_fill_ : I : if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to SGTK_NO_EXPANDED. A child is always allocated the full height of a GtkHBox and the full width of a GtkVBox. This option affects the other dimension

_padding_ : I : space in pixels to put between this child and its neighbors

Return : I : 0 if success

Example :

	typeof box = ObjGtk;;
	typeof button = ObjGtk;;
	fun main()=
		_showconsole;
		set box = _gtkBoxNew _channel SGTK_VERTICAL SGTK_HOMOGENEOUS 5;
		set button = _gtkButtonNewStock _channel SGTK_STOCK_ABOUT;
		_gtkBoxAddFromStart box button SGTK_EXPANDED SGTK_FILLED 5;
		...

Back