Hi,
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.
It never occured to me that there might be a real case for fixed position.
BTW the client believes the control's position provides a visual clue and aids
in data review.
Johnf
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/1464386.moF660zQjn@linux-12
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?
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/5029D9D6-EFAF-4B08-9D89-D5982DBE74C4@leafe.com
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: Dabo-users@leafe.com
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/4F0CE811.1070001@ulmcnett.com
On Tuesday, January 10, 2012 05:38:25 PM Paul McNett wrote:
> This was my idea, too. You could also do it with absolute position within an
> embedded vertical sizer: (untested)
I did try the valign = 'top' and the other valign = 'bottom' not much
difference.
I ended up using fix positions for items within a sizer. It appears to work
but I'm concerned that the resizing of the form will cause issues later. I
might be able to set the position based on the upper right corner. But I
haven't gotten that far yet.
Johnf
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/1821430.W7vduCp1CJ@linux-12