Re: Drawing a simple box around a label?
- From: Joaquim Duran <joaquinduran adtelecom es>
- To: Aaron Geier <ageier catalystmicro com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Drawing a simple box around a label?
- Date: Wed, 12 Dec 2007 15:55:18 +0100
The purpose of frame is draw a border to a set of widgets (draw a border
with a title to a set of a togglebuttons), rather than drawn a decorator
to a widget.
You can try to set the border of the container to 0 (catt to
set_border_width), but I don't think you will get any success.
Another alternative is place the label inside a button. The border of
the button could be changed using set_relief member function and to
avoid to someone to push the button, it could be disabled by calling to
set_sensitive(false).
Thanks and Best Regards,
Joaquim Duran
En/na Aaron Geier ha escrit:
> I've tried packing them inside of a frame; however the frame is not
> "tight" enough of a border for the label. There is quite a bit of space
> between the frame border and the label itself. Also, to get the border
> drawn in a box, you must give the frame a "title". You can give it a
> title of "", but there is a little "blip" that makes the frame look a
> bit silly.
>
> -Thanks,
> Aaron
>
> -----Original Message-----
> From: gtkmm-list-bounces gnome org [mailto:gtkmm-list-bounces gnome org]
> On Behalf Of Robert Pearce
> Sent: Tuesday, December 11, 2007 4:42 PM
> To: gtkmm-list gnome org
> Subject: Re: Drawing a simple box around a label?
>
> On Tue, 11 Dec 2007, Aaron Geier <ageier catalystmicro com> wrote :
>> Is there a simple way to draw a box around a label? I have a few
> labels
>> that I wish to draw a box/border around, and I am unable to find a
>> simple way to do this. Thought I'd throw this question out there to
> see
>> if anyone had a trick up their sleeve.
>>
> Have you tried packing them inside a frame? You can set the frame's
> appearance to one of several styles.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]