Re: Re: Re: Re: [PHP-GTK] CList Code - Alt ernating row/field colors

From: Date: Fri, 19 Oct 2001 03:39:24 +0000
Subject: Re: Re: Re: Re: [PHP-GTK] CList Code - Alt ernating row/field colors
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-333@lists.php.net to get a copy of this message
Thanks for that input... Yes... It wasnt a very obvious translation but I managed to figure it out ... I did however figure out the specific colors I needed. Andrei: The file with RGB color codes that X uses is @ /usr/X11R6/lib/X11/rgb.txt (Thats how I found the colors I needed ... ;-) ) Also, Anyone have any input on the MenuBar stuff... Im using Glade, Created a menu, got MenuItems, One is called Exit What widgets do i need to get() and how do I define a function to call when someone clicks one of these MenuItem's?? TIA -----Original message----- From: "AndreiZmievski" <andrei@ispi.net> To: "Steph" <Steph.Fox@btinternet.com>,"Markus Fischer" <mfischer@guru.josefine.at>,"PQ Administrator" <pqadmin@physicianquest.net> Cc: "PHP-GTK" <php-gtk-general@lists.php.net> Date: 10/18/2001(Thu)17:55 Subject: Re: Re: Re: [PHP-GTK] CList Code - Alternating row/field colors At 02:49 AM 10/19/01 +0100, Steph wrote: >What Markus omits to say because it's obvious to him (& not necessarily >anyone else) is that 65535 is equal to 256*(256-1) > >ie it's the harsh end of the spectrum for any of the RGB colours, and >easier to code than you'd expect ;) You can pass hex string to GdkColor constructor or even a color name: new GdkColor('#ff00ff'); new GdkColor('LightOrange'); The color names are the ones defined by the X server. There should be a list of them on your filesystem somewhere. -Andrei Troy McComasNetworks/System Admin.PhysicianQuest.comE-Mail Me!Office - (818)550-8777 Cell- (626)255-9833 <!-- --> Powered by PhysicianQuest.com

« previous php.gtk.general (#333) next »