On 1/10/12 4:56 PM, Ed Leafe wrote:
> On Jan 10, 2012, at 5:45 PM, John Fabiani wrote:
>
>> I actually don't really know how to explain this but say 1/2 line. I'd like
>> to add a few controls (without using fix position) that are 1/2 a line a part
>> (in vert) to a panel. I'm converting an old VFP form and client noticed that
>> I had placed the controls on the same row/line on the Dabo form and on the
>> VFP
>> form they are about a 1/2 line a part (in the vert of each other). IOW's
>> some
>> of the controls are slightly higher (above the row where the other controls
>> are setting).
>>
>> Of course this was done using positioning on the VFP form. But can I do it
>> with sizers on a Dabo form??? If so - anybody have an example.
>
> Could you do this with the valign setting?
This was my idea, too. You could also do it with absolute position within an
embedded
vertical sizer: (untested)
{{{
ms = self.Sizer = dabo.ui.dSizer("v")
hs = dabo.ui.dSizer("h")
for i in range(5):
txt = dabo.ui.dTextBox(self, Value=i)
this_vs = dabo.ui.dSizer("v")
this_vs.appendSpacer((0, i))
this_vs.append(txt)
hs.append(this_vs)
ms.append(hs)
}}}
This would give you the best of both worlds.
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]