Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Martin Schreiber
On Friday 06 May 2016 23:20:41 Aradeonas wrote: > Thanks. > > So what is the best way to provide those 100 to 1100 record at least > without Dataset calling AfterScroll event? > I want to not make any event while scrolling my custom Grid so other > connected DB controls change their values otherwis

Re: [Lazarus] Example of full screen console program anywhere?

2016-05-06 Thread Kostas Michalopoulos
How about using the Crt unit? It implements a Turbo Pascal-compatible API under all supported targets and should work fine with terminals. Example: http://pastebin.com/gzhsrv6x On Thu, Apr 28, 2016 at 9:27 PM, Bo Berglund wrote: > On Thu, 28 Apr 2016 15:23:01 +0200, Bo Berglund > wrote: > > I

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Jesus Reyes A.
En Fri, 06 May 2016 16:20:41 -0500, Aradeonas escribió: Thanks. So what is the best way to provide those 100 to 1100 record at least without Dataset calling >AfterScroll event? I want to not make any event while scrolling my custom Grid so other connected DB controls change >their val

Re: [Lazarus] Flexible exporter for grid-like components

2016-05-06 Thread Jesus Reyes A.
En Fri, 06 May 2016 15:51:41 -0500, Bart escribió: On 5/6/16, Werner Pamler wrote: ... About writing a patch: Don't you have svn commit (to LCL)? If so, just commit it, since nobody seems to object to the basic philosophy of your idea and implementation. Once committed, others will participate

Re: [Lazarus] Flexible exporter for grid-like components

2016-05-06 Thread Graeme Geldenhuys
On 2016-05-01 20:34, Werner Pamler wrote: > TStringGrid provides the methods SaveToCSVFile/Stream for saving the > grid content to a csv file or stream. This is very convenient for users, > but it is not very flexible: The export works only for the csv data > format, no html, no possibility to p

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Aradeonas
Thanks. So what is the best way to provide those 100 to 1100 record at least without Dataset calling AfterScroll event? I want to not make any event while scrolling my custom Grid so other connected DB controls change their values otherwise while Im scrolling my custom grid it will cause calling

Re: [Lazarus] Flexible exporter for grid-like components

2016-05-06 Thread Bart
On 5/6/16, Werner Pamler wrote: > In preparing a patch for a Mantis feature request I came across this > issue: fpc does already contain a series of exporters > (packages/fcl-db/export, component palette "Data Export"), among them a > TCSVExporter, TSimpleXMLExporter etc. I would create our

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Jesus Reyes A.
On Fri, 06 May 2016 15:07:18 -0500, Aradeonas wrote: Thanks, It seems I should explain better. For RecordCount you are right and it seems DBGrid doesn't know correct number either otherwise it should has a better scroll size. I want to do something like DBGrid and for that I want to get onl

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Aradeonas
Thanks, It seems I should explain better. For RecordCount you are right and it seems DBGrid doesn't know correct number either otherwise it should has a better scroll size. I want to do something like DBGrid and for that I want to get only a part of data for example record 1000 to 1100 and for th

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Jesus Reyes A.
On Fri, 06 May 2016 13:44:46 -0500, Aradeonas wrote: Jesus,In that demo if I set BufferCount to 9 always get 9 records and even Query.RecordCount will be 9 even result is more. How can I get real count? I can get count before setting the link but is it the best way? DbGrid does not do th

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Aradeonas
Jesus, In that demo if I set BufferCount to 9 always get 9 records and even Query.RecordCount will be 9 even result is more. How can I get real count? I can get count before setting the link but is it the best way? How can I move or scroll link without moving Query? I want to scroll the grid and

Re: [Lazarus] Flexible exporter for grid-like components

2016-05-06 Thread Werner Pamler
Am 01.05.2016 um 21:34 schrieb Werner Pamler: TStringGrid provides the methods SaveToCSVFile/Stream for saving the grid content to a csv file or stream. This is very convenient for users, but it is not very flexible: The export works only for the csv data format, no html, no possibility to pl

Re: [Lazarus] How TDBGrid works

2016-05-06 Thread Aradeonas
Thanks for the explanation, with your demo its more clear to me. Regards, Ara -- http://www.fastmail.com - Choose from over 50 domains or use your own -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepasca