I have a button like this :
obj4 <-gbutton("+",container=group2)
and I have some combobox that I create dynamically :
drp <- gcombobox(items = items, editable = TRUE, cont = group2)
obji<-gbutton("Ajouter au lexique",container=group2,horizontal=FALSE)
addHandlerClicked(obj4,handler = function(h,...){
drp <- gcombobox(items = items, editable = TRUE, cont = group2)
obji<-gbutton("Ajouter au lexique",container=group2,horizontal=FALSE)
})
The window and groups are defined like this :
win <- gwindow("Recherche de rapports", visible=TRUE)
group <- ggroup(horizontal = FALSE, container=win)
group2 <- ggroup(horizontal = TRUE, container=group)
I actually have three questions :
1) How to make that each button obji
is under the drp
combobox each time it is created ?
2) How to make that obj4
button is always at the right of all the obji
(always at the end) ?
3) How to make that the widgets I add automatically appear at next line when the first line of the window is completely full rather than creating an awful horizontal scrollbar ?