Hi Ed
I swear on my mother's grave that when i quit using VFP, i will use DABO,
happy now ? <s>
E.
> I have a container that fits the top of the screen horizontally, it has 4
> buttons, same size,
> that i need to layout equally spaced on the width of the container.
> Does anyone know an algorithm to do this ?
<plug type="dabo">
This is very simple to do in Dabo. Assuming the buttons are referenced in a
list called 'buttons', and 'self' is the container:
# Create a horizontal sizer
hsizer = dabo.ui.dSizer("H")
# Add the buttons to the sizer
hsizer.appendItems(buttons)
# Add the sizer to the container, telling it
# to 'expand' to fill the container's width.
self.append(hsizer, "expand")
That's it! I know this doesn't help you with your problem, but just wanted
to let those who haven't yet looked at Dabo see how easy things that are
problematic in the VFP UI can be in Dabo.
</plug>
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.