Re: Creating a custom Button
- From: Mark Roberts <gtkmm manumark de>
- To: Bobby brown <urossec2 yahoo com>
- Cc: gtkmm-list gnome org
- Subject: Re: Creating a custom Button
- Date: Thu, 16 Jul 2009 11:45:39 +0200 (CEST)
Hi Bobby,
I would like to create a custom widget, which wouldl serve as a button
and/or as a container.
GtkButton can already act as a container. In glade, you can switch the
button's type from label to stock to container. In code, I believe you
refrain from setting the "label" property and instead add a child to the
button.
a) Because of overriding the on_expose_event method I somehow "loose" the
nice button effect of being pressed down - the button doesn't darken it's
colour or moves it's content downwards a bit.
GtkButton will animate being pushed, even when used as a container.
Regards,
Uros
Not Bobby?
All the best
Mark Roberts
---------------------------------------------------------------
Mark Roberts, hardcore C++-Programmierer, Musiker, Schauspieler
05121 511455
www.rapid-arts-movement.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]