Re: Unified libraries to allow porting code to other oses
- Posted by jmduro Jun 06, 2015
- 2232 views
The 'more Euphoria's style' example would be easy to match with EuGTK. But doing that would limit your options. For example, sometimes you want an object (label, image, or whatever) to take all the space available. Other times you might want it to only take as much space as it needs, or to share space equally (or not equally) with the other objects in the same container. To do that using the style you suggest would get tricky. That's why you have 3 possible calls - add, pack_start, and pack_end. The 2 pack calls have several options to control how the 'sharing' takes place.
Secondly, you don't always want to add controls to containers in the same order as you create them, or at the time you create them. To require that would force you to write more complex Eu code.
Bouh hou, I cry! Everytime I want to do something with GTK, it is more complicated than expected. I hate sizers! When do we turn back to good old Basic?