Re: [fpc-devel] InflateRect() not cross-platform

2006-07-26 Thread Tiziano_mk
Graeme Geldenhuys ha scritto: Hi, Any reason why there isn't a cross-platfrom InflateRect() function in the RTL? It only appears in the Windows API translations and is a very handly funtion to have. For those that don't know InflateRect(): Usage: InflateRect(Rect, 1, 1); InflateRect(Rect, -2

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Graeme Geldenhuys
If you are using Lazarus, Just include LCLIntf unit. Jesus Reyes A. I can't use the LCL. The project I am working on is a new cross-platform widget set written in FPC. Either way, no reason such a handy function shouldn't be in FPC for all platforms. Regards, Graeme. -- There's no place

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Jesús Reyes A .
- Original Message - From: "Graeme Geldenhuys" <[EMAIL PROTECTED]> To: "FPC developers' list" Sent: Tuesday, July 25, 2006 4:59 AM Subject: [fpc-devel] InflateRect() not cross-platform Hi, Any reason why there isn't a cross-platfrom Inflate

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Michael Van Canneyt
On Tue, 25 Jul 2006, Micha Nelissen wrote: Graeme Geldenhuys wrote: I see there is already such a function, just with a different name: OffsetRect() I guess there is no need to add InflateRect() now... Offset is for position, Inflate is for size. AFAIK. Correct. Michael. ___

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Micha Nelissen
Graeme Geldenhuys wrote: > I see there is already such a function, just with a different name: > OffsetRect() > > I guess there is no need to add InflateRect() now... Offset is for position, Inflate is for size. AFAIK. Micha ___ fpc-devel maillist -

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Graeme Geldenhuys
> You can enlarge/shrink the X and Y co-ordinates of a TRect using this > function. Well, feel free to implement it. We'll put it in types.pas, together with the other TRect functions. I see there is already such a function, just with a different name: OffsetRect() I guess there is no need to

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Graeme Geldenhuys
Well, feel free to implement it. We'll put it in types.pas, together with the other TRect functions. Excellent. I just needed the location where it should go. Thanks Regards, Graeme. -- There's no place like 127.0.0.1 ___ fpc-devel maillist - f

Re: [fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Michael Van Canneyt
On Tue, 25 Jul 2006, Graeme Geldenhuys wrote: Hi, Any reason why there isn't a cross-platfrom InflateRect() function in the RTL? It only appears in the Windows API translations and is a very handly funtion to have. For those that don't know InflateRect(): Usage: InflateRect(Rect, 1, 1); Inf

[fpc-devel] InflateRect() not cross-platform

2006-07-25 Thread Graeme Geldenhuys
Hi, Any reason why there isn't a cross-platfrom InflateRect() function in the RTL? It only appears in the Windows API translations and is a very handly funtion to have. For those that don't know InflateRect(): Usage: InflateRect(Rect, 1, 1); InflateRect(Rect, -2, -2); You can enlarge/shrink