Adds an ObjGtk widget to a container. An unique object can be added, a second addition in the same container will be ignored. Typcally, a container should be a window, a frame or a button. For others containers, see them (e.g. Box).
Normally, this function should be used to include a Box (HBox, VBox) or other container into a window. Unless have a single object to add, others graphicals elements will be added to this last container.
Ajoute un widget dans un container de type window, frame ou button. Un seul objet peut être ajoutée, tout ajout supplémentaire sera ignorée. Cette fonction ne devrait être utilisée que pour intégrer un container de type Box, Notebook, ... dans un objet de type window.
_container_ : ObjGtk : any window or frame object
_widget_ : ObjGtk : any widget to add
Return : ObjGtk : the _widget_ widget
typeof win = ObjGtk;; typeof button = ObjGtk;; fun main()= _showconsole; set win = _gtkWindowNew _channel nil "window test" SGTK_POS_MOUSE; set button = _gtkWidgetAddContainer win /* _container_ */ _gtkButtonNewLabel _channel "My Button"; /* _widget_ */ _gtkWidgetShow win; _gtkMain; 0;;
