These tutorials I already found but still I don't know how to create a
flexible layout. For example (simple one), I'd like to have a window with a
text field with fixed width on the one side (stretched over the whole
height) and on the remaining right side, I'd like to put a button with a
fixed height but width adjustet to the remaining space of the window.
This code would not give me the layout I'd like to see and I don't know how
to do it (even with the tutorials mentioned)
<pre>
mainwin <- gwindow(title = "TestApplication", visible = TRUE, name=title)
splitgroup <- ggroup(horizontal=TRUE, container=mainwin)
gtext(text = "Here we go", width = 150, container=splitgroup)
gbutton("push me", container = splitgroup, expand = TRUE)
size(mainwin) <- c(500,500)
</pre>
I don't even know if there is any way to do what I want...
It looks to me that the thing missing there is the vertical squashing of the
button on the right side. To do that, you'll want to use a vertical group on
the right side i.e. ggroup(horizontal=FALSE, container = splitgroup). Then
make the button not expand (in a vertical group it will always expand
horizontally), gbutton("push me", container = rightgroup, expand = FALSE).