Re: gtk::draw_arrow problem

From: Date: Tue, 26 Mar 2002 19:11:17 +0000
Subject: Re: gtk::draw_arrow problem
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1650@lists.php.net to get a copy of this message
Yeah, it took me a while to figure this too :-) $colormap = gdk::colormap_get_system(); $style->bg_gc[GTK_STATE_NORMAL]->foreground = $colormap->alloc('red'); - will draw a red arrow if you've got 'fill' switched to 'true'. I've had no problem with sizing it, you haven't confused the final 4 params have you? The first two are the co-ordinates, the last two are the size. ----- Original Message ----- From: "Michael Waples" <michaelwaples@dingoblue.net.au> To: "PHP-GTK" <php-gtk-general@lists.php.net> Sent: Wednesday, March 27, 2002 7:26 AM Subject: [PHP-GTK] gtk::draw_arrow problem > I can't seem to get gtk::draw_arrow() to draw an arrow properly. > All I get is a small black arrow, changing width or height just shifts the > arrow around. > Adding a colour for fill has no effect either. > > This is the snippet of code. > gtk::draw_arrow($style, $gdkwindow, GTK_STATE_NORMAL, GTK_SHADOW_IN, > GTK_ARROW_RIGHT, false, $x4, $y2, 20, 30); > > Im drawing this over a GtkDrawingArea which has various things drawn on it. > II'm stumped but I still want to draw a nice looking arrow. > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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