[Gambas-user] Three questions about handling

Eilert eilert-sprachen at ...221...
Fri Apr 15 09:11:56 CEST 2005


Good morning everyone!

Before I start my next project, I'd like to discuss 3 items I've come 
across over the last weeks.

First: How (and what for) do you use HPanel, VPanel, HBox, VBox? In 
other IDEs I've seen a way of connecting the elements in a window so 
when the user changes its size, the elements will automatically react to 
it. Is this possible to achieve with those here, or maybe in some other 
way? (Up to now I used to do this by code in the Resize event.)

In the extended collection there are sliders, but you cannot drag them 
to whatever position but they "jump" really to fixed positions. Can I 
change that somehow?

Second: How do you arrange your projects internally to not lose overview 
over the many SUBs/Functions? I usually set up several modules 
containing certain stuff which can be done independently from the forms 
(loading/saving, printing, ini-file handling etc.), but sometimes in 
those modules and in the form modules the number of SUBs grows so much 
it actually produces a long, long list which it is very hard to pick up 
a certain function from. Are there any "rules" from a professional 
programmer's point of view to avoid this?

Third: Are there any speed issues to certain language elements, for 
instance, SELECT CASE being slower than IF/ELSE or DO...LOOP faster than 
FOR...NEXT?

Thank you for any insight!

Rolf





More information about the User mailing list