Skip to content

[R-gui] general design questions

5 messages · Antje, Michael Lawrence

#
Hello,

I try to develop a GUI with gWidgets (TclTk) but I guess my little application 
already starts to be messy...

First question: How shall I handle updates of widgets triggered by event 
handling? So far, I simply took the widget-object I want to update as a global 
variable but that's not a good style. Any suggestions how to handle this?

Second question: What are my possibilities to stay flexible? For example: I 
though it makes sense to use a gpanedgroup for a checkboxgroup with variable 
number of items (to make it scrollable if it's getting too large). But this 
does not work like I thought and the items simply disappear at the end of the 
panel.

Third question: How to structure the GUI? Builing, Sizing, Arraging, filling 
with content (not every object has some initial content). For example, I 
realized that I have to set the svalue for the gpanedgroup after adding the 
objects.

I don't know, but I have the impression to create my GUI quite unstructured and 
I'm afraid to loose overview soon...

The small examples for the usage of different components are very useful but 
I'm looking for some hints on how to create a more complex application (what to 
do when and how).

Thanks a lot for every tip!

Antje
#
Hi Michael,

thanks a lot for your answer.
Can you give me a simple example, please? I'm not sure if I understand 
correctly how this can work. (Or maybe there is already some kind of 
documentation I can check for these possibilities...)
Oh, thanks a lot. I was not aware of the scrolling opportunity if the ggroup.
Is there anything I can do beside, setting a fixed size with pixel values?
For example if I'd like to initially maximze the window... (I know that it's 
possible with TclTk).
Of course, I just set it initially.

Ciao,
Antje
#
Hi Michael,
And what about the "nesting environments"? I'm not sure if I'm aware of how 
this works exactly (I know, that's rather poor... but maybe you can give me a 
simple example?)
Hmm, I will use it for one case (where it's really useful). But currently, I 
have problems to "activate" the scrolling for a ggroup...