On Mon, Dec 7, 2009 at 4:33 PM, Cody Precord <
codyp...@gmail.com> wrote:
> Hi,
>
> On Mon, Dec 7, 2009 at 3:12 PM, Olemis Lang <
ole...@gmail.com> wrote:
>> ... there are sizers in the example I mentioned before (the last two
>> examples) , and only the barely minimal widgets that resemble my
>> scenario (since I don't know whether that is a bug with sizers,
>> scrollable panels, or ... ) They are :
>>
>> - A dialog
>> - A panel containing Ok, Cancel buttons and ...
>> - Show button because if I render the labels since the beginning it does work
>> but that's not what I wanna do ;o)
>> - Scrollable panel containing widgets
>> - Box sizers
>> - And three tiny poor little widgets
>>
>> I've removed a lot of things (validators, further widgets, ...) AFAICS
>> there's nothing simpler than that in order to reproduce the issue ...
>> This been said I will be looking forward for your comments
>
> Your using a GridBagSizer which creates flexable 'cells' that objects
> are placed in. The objects however are still layed out in a grid
> (columns/rows).
GridBagSizer contains only the buttons and the scrollable panel . In
the real world example there are more widgets (e.g. listbox, further
buttons, collapsible panels ... ;o) spanning over multiple cells and
so on. That's why I used that sizer in first place. OTOH the text
controls and labels are inside a vertical box sizer [1]_
> For the layout your trying to achieve using some box
> sizers will be much simpler.
>
Your approach implies more sizers and more LOCs (just a comment, maybe
not related to the real issue
;o)
> The labels that you are adding that you want right aligned are
> actually right aligned as per the client area they require, if you
> want them to be right aligned as per the dialogs space you will need
> to insert a strechable spacer to the left of each of them.
>
> I made a few changes to how your layout is done to better show what I mean.
>
>
http://simelo.pastebin.com/m22d18644
>
Thnx very much ! ... trying ! Let me see
Now it opens , connecting to the internet , user name and password,
downloading ... (just joking :P )
:o)
Seems to work ! What should be the problem then , the use of a grid
bag sizer ? Why ?