Index
2012-01-10 18:45 – John Fabiani : [dabo-users] sizer 1/2 line?
2012-01-10 19:56 – Ed Leafe : Re: [dabo-users] sizer 1/2 line?
2012-01-10 20:38 – Paul McNett : Re: [dabo-users] sizer 1/2 line?
2012-01-10 21:16 – John Fabiani : Re: [dabo-users] sizer 1/2 line?
Back to top
[dabo-users] sizer 1/2 line?

Author: John Fabiani

Posted: 2012-01-10 18:45:44   Link

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

©2012 John Fabiani
Back to top
Re: [dabo-users] sizer 1/2 line?

Author: Ed Leafe

Posted: 2012-01-10 19:56:36   Link

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

©2012 Ed Leafe
Back to top
Re: [dabo-users] sizer 1/2 line?

Author: Paul McNett

Posted: 2012-01-10 20:38:25   Link

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

©2012 Paul McNett
Back to top
Re: [dabo-users] sizer 1/2 line?

Author: John Fabiani

Posted: 2012-01-10 21:16:12   Link

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

©2012 John Fabiani