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,
--
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
--author unknown
_______________________________________________
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/Xns9FE2DBC78480FOKB@80.91.229.10
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: 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/11346816.Ke9ILjgBMS@linux-12
John Fabiani wrote:
> 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.
Thanks, I think something along these lines will work, since I
realized I actually want a box of a particular size around my text.
--
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
--author unknown
_______________________________________________
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/Xns9FE37F4BB8726OKB@80.91.229.10