failed manual note query
| From: | Unprivileged user | Date: | Sun, 14 May 2006 12:15:31 +0000 |
| Subject: | failed manual note query | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-3070@lists.php.net to get a copy of this message | ||
INSERT INTO note (user, note, sect, ts, lang) VALUES ('niels@quotar.com','draw_lines
and draw_points are giving me some trouble.... anyone any ideas?
thanks in advance!
best regards,
Niels Berkers
<?php
function draw_shapes()
{
global $drawing_area;
$drawing_area->realize();
$bgcolor = GdkColor::parse( \'red\');
$colormap = $drawing_area->window->get_colormap();
$bgcolor = $colormap->alloc_color( $bgcolor );
$blue = GdkColor::parse( \'#0000FF\');
$colormap = $drawing_area->window->get_colormap();
$blue = $colormap->alloc_color( $blue );
$drawing_area->window->set_background( $bgcolor );
$drawable = $drawing_area->window;
$black_gc = $drawing_area->style->black_gc;
$drawable->draw_rectangle( $black_gc, true, 10, 10, 100, 100 );
$white_gc = $drawing_area->style->white_gc;
$drawable->draw_line( $white_gc, 10, 10, 110, 110 );
// sleep(5);
$drawable->draw_line( $white_gc, 110, 10, 10, 110 );
$aPoints = array( 0, 0, 50, 0, 25, 50 );
$drawable->draw_lines($white_gc, $aPoints);
/**/
return true;
}
?>
[14-mei-2006 14:08:05] PHP Fatal error: Call to undefined method GdkWindow::draw_lines() in
C:\\PHP-Gtk2\\test\\drawing.php on line 113','gdk.gdkwindow.php','2006-05-14
12:15:30','')