Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-03

BoxRect

16 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carlos German Tejero

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.

Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090329/dc60066f/attachment.html

Reply by email

Jesus Reyes
to Carlos German Tejero

--- El dom 29-mar-09, Carlos German Tejero escribi?:

Show quoted text 41 lines
De:: Carlos German Tejero Asunto: [Lazarus] BoxRect A: "General mailing list" Fecha: domingo, 29 marzo, 2009, 8:46 am 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. -- Carlos Germ?n Tejero

is it public? protected?

Jesus Reyes A.

__________________________________________________ Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/

Reply by email

Carlos German Tejero
to Jesus Reyes

Sourceforge say: License : GNU Library or Lesser General Public License (LGPL) <http://sourceforge.net/softwaremap/trove_list.php?form_cat=16>, but some utnis are not:

"Fds will free. Only source for FxBin,FxCache,FxMap,FxArray will accessed for some fee." (Readme.txt)

My idea is port to Lazarus/fpc and then remplace the units with my own implementation based in generics.

2009/3/29 Jesus Reyes

Show quoted text 63 lines
--- El dom 29-mar-09, Carlos German Tejero escribi?: > De:: Carlos German Tejero > Asunto: [Lazarus] BoxRect > A: "General mailing list" > Fecha: domingo, 29 marzo, 2009, 8:46 am > 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. > > > -- > Carlos Germ?n Tejero is it public? protected? Jesus Reyes A. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090329/1b0052b7/attachment.html

Reply by email

Jesus Reyes

--- El dom 29-mar-09, Carlos German Tejero escribi?:

Show quoted text 19 lines
De:: Carlos German Tejero Asunto: Re: [Lazarus] BoxRect A: , "General mailing list" Fecha: domingo, 29 marzo, 2009, 12:27 pm Sourceforge say: License : GNU Library or Lesser General Public License (LGPL) <http://sourceforge.net/softwaremap/trove_list.php?form_cat=16>, but some utnis are not: "Fds will free. Only source for FxBin,FxCache,FxMap,FxArray will accessed for some fee." (Readme.txt) My idea is port to Lazarus/fpc and then remplace the units with my own implementation based in generics.

Sorry, I meant if BoxRect is a Public or a Protected method of grid, I suppose you are talking about grid because talked about cells I could be wrong. But anyway I implemented BoxRect method in grid in r19156, initally public, needs testing.

Jesus Reyes A.

__________________________________________________ Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/

Reply by email

Coppola Ing. Salvatore
to Carlos German Tejero: Sourceforge say: License : GNU Library or Lesser General Public License (LGPL)…
Carlos German Tejero wrote 11 lines
Sourceforge say: License : GNU Library or Lesser General Public License (LGPL) <http://sourceforge.net/softwaremap/trove_list.php?form_cat=16>, but some utnis are not: "Fds will free. Only source for FxBin,FxCache,FxMap,FxArray will accessed for some fee." (Readme.txt) My idea is port to Lazarus/fpc and then remplace the units with my own implementation based in generics.

I think he was talking (protected, protected) about function BoxRect(ALeft, ATop, ARight, ABottom: Longint): TRect; Salvatore

Show quoted text 81 lines
2009/3/29 Jesus Reyes < <mailto:>> --- El dom 29-mar-09, Carlos German Tejero < <mailto:>> escribi?: > De:: Carlos German Tejero < <mailto:>> > Asunto: [Lazarus] BoxRect > A: "General mailing list" < <mailto:>> > Fecha: domingo, 29 marzo, 2009, 8:46 am > 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. > > > -- > Carlos Germ?n Tejero is it public? protected? Jesus Reyes A. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ _______________________________________________ Lazarus mailing list <mailto:> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus -- Carlos Germ?n Tejero ------------------------------------------------------------------------ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Alexander Klenin
to Jesus Reyes: --- El dom 29-mar-09, Carlos German Tejero escribi?: Sorry, I meant if BoxRect is a…
Jesus Reyes wrote
I implemented BoxRect method in grid in r19156, initally public, needs testing.

I do not use this method, so I do not know how important it is, but it seems that Delphi returns "empty rect" (0, 0, 0, 0) if arguments are either unsorted or totally outside viewing area.

Additionally, I would suggest to use IntersectRect function for computing intersection instead of open-coding it.

Alexander S. Klenin

Reply by email

Carlos German Tejero
to Alexander Klenin: Protected, defined in TCustomGrid. Alexander S. Klenin

Yes Protected, defined in TCustomGrid.

I will try grid in r19156.
Tahnks to all.

2009/3/29 Alexander Klenin

Show quoted text 25 lines
On Mon, Mar 30, 2009 at 03:43, Jesus Reyes wrote: > --- El dom 29-mar-09, Carlos German Tejero escribi?: >> 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; > > is it public? protected? Protected, defined in TCustomGrid. -- Alexander S. Klenin _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090329/06592a3c/attachment-0001.html

Reply by email

Jesus Reyes
to Alexander Klenin: I do not use this method, so I do not know how important it is, but it seems that Delphi…

--- El dom 29-mar-09, Alexander Klenin escribi?:

Show quoted text 11 lines
De:: Alexander Klenin Asunto: Re: [Lazarus] BoxRect A: , "General mailing list" Fecha: domingo, 29 marzo, 2009, 1:08 pm On Mon, Mar 30, 2009 at 05:36, Jesus Reyes wrote: > I implemented BoxRect method in grid in r19156, initally public, needs testing. I do not use this method, so I do not know how important it is,

I didn't know that it exist.

but it seems that Delphi returns "empty rect" (0, 0, 0, 0) if arguments are either unsorted or totally outside viewing area.

I don't know, "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 ..." if I repleace tokens with numbers "... that run from the column with index 10 to the column with index 1 ..." it still makes sense to me.

I think test cases will clarify this, hope somebody can do it.

Additionally, I would suggest to use IntersectRect function for computing intersection instead of open-coding it.

It makes sense I will change it.

-- Alexander S. Klenin

Jesus Reyes A.

__________________________________________________ Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/

Reply by email

Bogusław Brandys
to Carlos German Tejero: Hi to all!! I trying to port the fxds (http://sourceforge.net/projects/fxds) package (aka…
Carlos German Tejero wrote 27 lines
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

Reply by email

Carlos German Tejero
to Bogusław Brandys

fxds is the same has Delphi Decision Cube. The fxds is a release of the original autor.

2009/3/30 Bogus?aw Brandys

Show quoted text 40 lines
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 _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090330/4239d676/attachment.html

Reply by email

Doug Chamberlin
to Bogusław Brandys
Bogus?aw Brandys wrote 6 lines
Carlos German Tejero wrote: > fxds is the same has Delphi Decision Cube. The fxds is a release of the > original autor. OCH! That's great! So is it really free ? Then I'm starting to port it too :-)

Unfortunately it looks like the fxds source code on source forge is incomplete so you cannot take this solution very far from the Delphi 6/7 point.

Reply by email

Carlos German Tejero
to Doug Chamberlin

I use the fxds in a real application made in delphi 7 and work fine. The Delphi version of Desicion cube can only used with BDE TDataSet descendants, the fxds can be used with any TDataSet descendant.

2009/3/30 Doug Chamberlin

Show quoted text 16 lines
Bogus?aw Brandys wrote: > Carlos German Tejero wrote: >> fxds is the same has Delphi Decision Cube. The fxds is a release of the >> original autor. > > OCH! That's great! So is it really free ? Then I'm starting to port it > too :-) Unfortunately it looks like the fxds source code on source forge is incomplete so you cannot take this solution very far from the Delphi 6/7 point. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090330/b97c42e3/attachment.html

Reply by email

Doug Chamberlin
to Carlos German Tejero
Carlos German Tejero wrote
I use the fxds in a real application made in delphi 7 and work fine. The Delphi version of Desicion cube can only used with BDE TDataSet descendants, the fxds can be used with any TDataSet descendant.

That's good to hear! I'm very interested in porting to Delphi 2009 but it looks like that is out of the question. Looks like the whole project was abandoned in 2004. I would hope the author would realize there will be no revenue forthcoming and open source the remainder of the code.

Reply by email

Bogusław Brandys
to Doug Chamberlin

Doug Chamberlin pisze:

Show quoted text 14 lines
Carlos German Tejero wrote: > I use the fxds in a real application made in delphi 7 and work fine. The > Delphi version of Desicion cube can only used with BDE TDataSet > descendants, the fxds can be used with any TDataSet descendant. That's good to hear! I'm very interested in porting to Delphi 2009 but it looks like that is out of the question. Looks like the whole project was abandoned in 2004. I would hope the author would realize there will be no revenue forthcoming and open source the remainder of the code. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

I have sources of fxds from sourceforge compile and install into lazarus. I'm not sure about them however, they contain a few units with Borland license header.
At least I proved fxds can be installed in lazarus ide. From quick look much changes are needed for chart support and decision change panel.

Boguslaw

Reply by email