Re: FW: about destruct class object?
- From: John Cupitt ng-london org uk
- To: kasonhuang kinposh com cn
- Cc: gtk-list gnome org
- Subject: Re: FW: about destruct class object?
- Date: Thu, 4 Apr 2002 11:38:32 +0100
¶À¼y Kason Huang wrote:
> if gtk is encapsulated with C++,i could rewrite some virtual function of a
class.
> in gtk lib,i know the widget class is equal to the v-table in C++.
> now my problem is like following:
> when i useing gtk_button_new(),i could create a rectangle 3D button.
> however i want to create a ellipse 3D button,how to do that?
> for that purpose, i watch the source code of gtk lib,i find the draw
button function
> is gtk_button_draw();and
gtk_button_draw------>gtk_button_paint------->gtk_paint_box
> i want to rewrite the gtk_paint_box to create a ellipse 3D button, how to
do that? or having
> another way to create a ellipse 3D button.
Hi Kason,
You can either subclass button and provide a new draw function (hard),
or you can use a theme to change the appearance of the regular gtk
button (easy). Lots of the pixmap themes, for example, have elliptical
buttons.
John
==========================================================
Aelbert Cuyp 13 February - 12 May 2002
For information and tickets:
http://www.nationalgallery.org.uk/exhibitions/cuyp/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]