[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-dev
Subject:    Re: [PHP-GTK-DEV] Re: [PHP-GTK] Re: GtkSheet style
From:       Andrei Zmievski <andrei () gravitonic ! com>
Date:       2005-01-14 0:12:37
Message-ID: 20050114001236.GA34496 () gravitonic ! com
[Download RAW message or body]

On Thu, 13 Jan 2005, Ivan Rodriguez wrote:
> Hello
> 
> I write this in the extra.defs file:
> 
> (struct SheetRange
>   (in-module Gtk)
>   (c-name GtkSheetRange)
>   (field (type-and-name gint row0))
>   (field (type-and-name gint col0))
>   (field (type-and-name gint rowi))
>   (field (type-and-name gint coli))
> )
> 
> Now if y do this in PHP:
> 
> $cmap = gtk::widget_get_default_colormap();
> $bgcolor = $cmap->alloc('#eae8e3');
> 
> $sheet = new GtkSheet(5, 5, "test");
> $sheet->range_set_background(1, $bgcolor);
> $sheet->show();
> 
> PHP says:
> Warning: range_set_background() expects argument 1 to be GtkSheetRange,
> integer given in /home/epplestun/sheet.php on line 24
> 
> But I don't know how to create a GtkSheetRange in PHP code, I try with
> new GtkSheetRange but not work :-(
> 
> Any idea? ¿

Well, obviously the range_set_background() definition requires a
GtkSheetRange as the first argument. Why are you passing 1? What error
do you get when you try to instantiate GtkSheetRange class?

- Andrei

-- 
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic