[fpc-pascal] gdk_window_get_frame_extents

Airr airrsongs at gmail.com
Mon Jun 4 17:05:54 CEST 2007


On Mon, 4 Jun 2007 03:37:51 -0300
"Flávio Etrusco" <flavio.etrusco at gmail.com> wrote:

> On 6/4/07, jasj at hydra.ar.wroc.pl <jasj at hydra.ar.wroc.pl> wrote:

> >
> > fpc header for the gdk function is
> >
> >         procedure gdk_window_get_frame_extents(window:PGdkWindow;
> > rect:PGdkRectangle);
> >
> > so, having grect: pGDKRectangle declared, you should use it rather
> > by
> >
> >         gdk_window_get_frame_extents(GDK_WINDOW(widget^.window),grect);
> >
> 
> Yes and no. The correct fix is to declare grect as GdkRectagle, as you
> need to pass to the function the pointer to an allocated record.
> 
> -Flávio

Thanks, everyone.


I got it working by using:

grect : TGdkRectangle;

gdk_window_get_frame_extents(GDK_WINDOW(widget^.window), at grect);

AIR.
-- 
"Programming is like Poetry. Sometimes the words just escape you..."
-me, to my manager.



More information about the fpc-pascal mailing list