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
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to