Thread: [Boa Constr] Stretchable spacers
Status: Beta
Brought to you by:
riaan
From: Alexei V. <ale...@gm...> - 2008-08-07 05:13:20
|
Hello, Is it possible to add stretchable spacers to sizers in the Boa IDE? Thanks. -- Alexei Vinidiktov |
From: Werner F. B. <wer...@fr...> - 2008-08-07 07:33:19
|
Alexei Vinidiktov wrote: > Hello, > > Is it possible to add stretchable spacers to sizers in the Boa IDE? > > Thanks. > Yes, use the second icon in the sizer collection editor window, it has two items sizer and spacer. Werner |
From: Riaan B. <riaan@e.co.za> - 2008-08-07 08:50:54
|
Hi Alexei and Werner, Werner, he's referring to the AddStretchSpacer method. Looking at SizerCompanions.py, I've added Stretch Spacers before, but commented out the code. I can't figure out why at the moment as it seems to work fine. Anyway AddStretchSpacer will be in the next release unless I find a problem. Cheers, Riaan. On Thu, Aug 7, 2008 at 9:33 AM, Werner F. Bruhin <wer...@fr...> wrote: > Alexei Vinidiktov wrote: >> Hello, >> >> Is it possible to add stretchable spacers to sizers in the Boa IDE? >> >> Thanks. >> > Yes, use the second icon in the sizer collection editor window, it has > two items sizer and spacer. > > > Werner > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > |
From: Alexei V. <ale...@gm...> - 2008-08-07 10:02:31
|
Hi Werner and Riaan, Yes, I'd like to be able to add stretchable space to a sizer via a call to AddStretchSpacer. I've also seen it commented in the Boa source code. Can you suggest an alternative to calling AddStretchSpacer? Basicly, I have a panel at the bottom of a dialog. I've placed a BoxSizer into it and I want to position an "OK" button on the right side of the panel. By the way, what the ETA for the new release of Boa Constructor? Thanks, Alexei On 8/7/08, Riaan Booysen <riaan@e.co.za> wrote: > Hi Alexei and Werner, > > Werner, he's referring to the AddStretchSpacer method. > > Looking at SizerCompanions.py, I've added Stretch Spacers before, but > commented out the code. > I can't figure out why at the moment as it seems to work fine. > > Anyway AddStretchSpacer will be in the next release unless I find a problem. > > Cheers, > Riaan. > > On Thu, Aug 7, 2008 at 9:33 AM, Werner F. Bruhin <wer...@fr...> > wrote: >> Alexei Vinidiktov wrote: >>> Hello, >>> >>> Is it possible to add stretchable spacers to sizers in the Boa IDE? >>> >>> Thanks. >>> >> Yes, use the second icon in the sizer collection editor window, it has >> two items sizer and spacer. >> >> >> Werner >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Boa-constructor-users mailing list >> Boa...@li... >> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >> > -- Alexei Vinidiktov |
From: Riaan B. <riaan@e.co.za> - 2008-08-07 10:38:26
|
Hi Alexei, On Thu, Aug 7, 2008 at 12:02 PM, Alexei Vinidiktov <ale...@gm...> wrote: > Hi Werner and Riaan, > > Yes, I'd like to be able to add stretchable space to a sizer via a > call to AddStretchSpacer. I've also seen it commented in the Boa > source code. > > Can you suggest an alternative to calling AddStretchSpacer? > > Basicly, I have a panel at the bottom of a dialog. I've placed a > BoxSizer into it and I want to position an "OK" button on the right > side of the panel. You can just set wx.ALIGN_RIGHT in the Flag property of the sizer item. > By the way, what the ETA for the new release of Boa Constructor? There are a few new unfinished features I need to complete first and a few bugs to fix. I hope there will be a new release relatively soon, but can't give a date yet, sorry. Cheers, Riaan. |
From: Alexei V. <ale...@gm...> - 2008-08-07 12:34:50
|
Thanks for your suggestion, Riaan. I first tried setting wx.ALIGN_RIGHT for the 'OK' button, but it didn't work. I tried setting it for the parent panel, and it worked. Now I'm wondering if I did the right thing. Sorry if my questions seem to be basic ones, it's just that I haven't mastered sizers well enough yet. On 8/7/08, Riaan Booysen <riaan@e.co.za> wrote: > Hi Alexei, > > On Thu, Aug 7, 2008 at 12:02 PM, Alexei Vinidiktov > <ale...@gm...> wrote: >> Hi Werner and Riaan, >> >> Yes, I'd like to be able to add stretchable space to a sizer via a >> call to AddStretchSpacer. I've also seen it commented in the Boa >> source code. >> >> Can you suggest an alternative to calling AddStretchSpacer? >> >> Basicly, I have a panel at the bottom of a dialog. I've placed a >> BoxSizer into it and I want to position an "OK" button on the right >> side of the panel. > > You can just set wx.ALIGN_RIGHT in the Flag property of the sizer item. > >> By the way, what the ETA for the new release of Boa Constructor? > > There are a few new unfinished features I need to complete first and a > few bugs to fix. > > I hope there will be a new release relatively soon, but can't give a > date yet, sorry. > > Cheers, > Riaan. > -- Alexei Vinidiktov |