[Lazarus] Gdk Questions

Paulo Malheiros paulo.malheiros at fe.up.pt
Wed Sep 17 18:09:43 CEST 2008


SteveG,

I successfully tested in the official release 0.9.24, both in Ubuntu  
Hardy and also in Mandriva 2008.0. Apparently there's something  
different in the SVN version, hope it doesn't go to 0.9.26.

Good luck in your quest.

Paulo


Quoting SteveG <steveg at nevets.com.au>:

> Thanks Paulo - could you tell me what version Lazarus you are using ?
> I have 0.9.25 (svn 15686) - also on Ubuntu Hardy
>
> I just did a full update of Ubuntu updates and rebooted to be sure
> Then created a new project and direct copied the code below to the app -
> fails for me every time at GDK_IS_WINDOW
>
> Your Laz ver may help me track it down, or I will have to find another
> system with Ubuntu for comparison testing
>
> Regards - SteveG
>
>
> Paulo Malheiros wrote:
>> It didn't fail on my Ubuntu Hardy Gtk2. Works fine.
>> I used:
>>
>> implementation
>>
>> uses gtk2, gdk2;
>>
>> { TForm1 }
>>
>> procedure TForm1.Button1Click(Sender: TObject);
>> var
>>     GdkWindow     :PGdkWindow;
>>     GtkWidget     :PGtkWidget;
>> begin
>>     GtkWidget := pointer( Form1.Handle );
>>     GdkWindow := GtkWidget^.window;
>>     Memo1.Lines.Add(GtkWidget^.name);
>>     if GDK_IS_WINDOW(GdkWindow) then memo1.lines.add('Is Window');
>> end;
>>
>>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>






More information about the Lazarus mailing list