RE: how the change the shape and color of Gtk Button
- From: zhangLance <zhang3437 hotmail com>
- To: <gtk-app-devel-list gnome org>
- Subject: RE: how the change the shape and color of Gtk Button
- Date: Thu, 10 Jan 2008 12:55:19 +0800
Date: Fri, 4 Jan 2008 15:22:46 +0100
From: gh raditex se
To: ajaxjohn gmail com
Subject: Re: how the change the shape and color of Gtk Button
CC: gtk-app-devel-list gnome org
On Fri, Jan 04, 2008 at 07:36:40PM +0530, Ajax John wrote:
Hi All,
I'm new to Gtk app. develoment. and trying to develop small applications.
I have 2 queries.
1)By default the shape of GtkButton is rectangle.
I want to change it's shape to some other shape, say round rectangle.
How to do that in Gtk?
The best way is infact to develop your own widget. This is not to
hard. I can send you some exaples if you like. A push button should
look like a push button. What kind of buttons would you like to
put together?
2) I want to change the color of my Button to some color.
I guess I have to create my custom style and assign it to my button...
How to do that?
Well. If you make your own widget this is no problem.
Regards,
Ajax.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
GÃran Hasse
----------------------------------------------------------------
GÃran Hasse email: gh raditex se Tel: 08-6949270
Raditex AB http://www.raditex.se
PlaniavÃgen 15, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN OrgNr: 556240-0589
VAT: SE556240058901
Hi Goran:
Can I have those exmaple on writing customized widgets?
Thank you very much!
Lance
_________________________________________________________________
MSN äæçïæææåçæèèïçéèééæã
http://cn.msn.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]