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
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
- 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
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.
___
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 -
> 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
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
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
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