On Mon, 4 Jun 2007 03:37:51 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote:
> On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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),@grect); AIR. -- "Programming is like Poetry. Sometimes the words just escape you..." -me, to my manager. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal