[Gambas-user] align item center form

Doriano Blengino doriano.blengino at ...1909...
Wed Jan 7 23:31:55 CET 2009


richard terry ha scritto:
> On Wed, 7 Jan 2009 04:44:11 pm kobolds wrote:
>   
>> Nope I not talking about center the form on screen . in visualstudio
>> there's function call center in form (horizontal /vertical) . I talking
>> about that one . this is quite common ide function for align items 
>>
>> I couldn't find it on gambas .is this function replace by something else?
>>     
>
> Again, if  you told us what you want to achieve it may help. Send me a picture 
> of what you want it to look like from a screen dump from your visual whatver.
>
>
> Forms are often quite complex things visually, made up of many dozens of 
> component. I'd use QT rather than GTK if you are designing things. The 
> Gambase IDE visually designer is simply brilliant.
>   
I think he wants to center a gadget on the form, like you do in a word 
processor (center text).
This is possible in gambas, but it is not straightforward. I think want 
he is searching for (an easy way to keep something in the center of 
something else), is not possible.

The gambas IDE designer is good, but not "simply brilliant". There are 
several way to design geometry managers, what gambas has choosed is 
simply one among them. Tk has three geometry managers, and at least one 
of them (pack) is coherent and powerful. Other systems has the concept 
of Anchors, a nice feature that is often handy. The system gambas uses 
is good but not perfect and, for me and perhaps others (like our 
friend), it can be difficult to understand.

In addition to use containers, one could also use code in event handlers 
(resize and arrange events), and do "manually" whatever he wants.


-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."





More information about the User mailing list