[Lazarus] BoxRect

Bogusław Brandys brandys at o2.pl
Mon Mar 30 16:34:12 CEST 2009


Carlos German Tejero wrote:
> Hi to all!!
> I trying to port the fxds (http://sourceforge.net/projects/fxds) package 
> (aka Decision Cube) fro delphi to lazarus.
> For this i need the BoxRect function, but is missing in the LCL.
> 
> The delphi 7 helps says:
> 
> Returns the screen coordinates of a specified set of cells.
> 
> Delphi syntax:
> 
> function BoxRect(ALeft, ATop, ARight, ABottom: Longint): TRect;
> 
> C++ syntax:
> 
> TRect __fastcall BoxRect(int ALeft, int ATop, int ARight, int ABottom);
> 
> Description
> 
> Call BoxRect to obtain the screen coordinates, in pixels, of the cells 
> that run from the column with index ALeft to the column with index 
> ARight and the row with index ATop to the row with index ABottom. The 
> coordinates of cells that are not visible onscreen are not included in 
> the final rectangle
> 
> Any hints to implement BoxRect are welcome.
> 

I'm sorry to disappoint you but seems that this fxds sources are heavily 
based on Borland original decision cube sources from delphi6.
Better check it before any serious usage.

Boguslaw




More information about the Lazarus mailing list