On Monday, January 23, 2012 05:35:24 AM OKB wrote:
>       Hi, I'm trying to create a dLabel that has a border around it.  At
> first I thought the BorderColor, BorderStyle, etc. properties would do
> this, but they don't seem to work the way I'd hoped.  The border seems
> to be applied "inside" the text frame, so if I set a fat border width it
> covers the text of the label.  What I'm looking for is a way to have a
> border outside the frame, so the text appears to be sitting in a larger
> box of a certain color.  How can this be achieved?
> 
> Thanks,

There are at least two ways I can think of:
1. create a dPanel then change the border and background, then add the label 
to the panel.
2. try the dBox control and see if that can meet your needs.

If neither of the suggestions works for you then you can create a custom 
control.

http://wiki.wxpython.org/CreatingCustomControls

or

review how to use web type languages within a wxpython ui.

BTW I have used buttons to get a similar effect that you are looking for - my 
users seem to like it.

Johnf


_______________________________________________
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/11346816.Ke9ILjgBMS@linux-12

Reply via email to