Difference between revisions of "Talk:Grids Reference Page"

From Free Pascal wiki
(What is clipping?)
m (New Features Request)
Line 19: Line 19:
 
----
 
----
  
 
+
== Old correction: AllowOutBoundClicks=>AllowOutBoundEvents ==
 
I did search reference for "AllowOutBoundClicks" property, but I cannot found it (Section  '''Adjustments for improving Delphi grids compatibility''')... Maybe it has changed to AllowOutBoundEvents in meantime?
 
I did search reference for "AllowOutBoundClicks" property, but I cannot found it (Section  '''Adjustments for improving Delphi grids compatibility''')... Maybe it has changed to AllowOutBoundEvents in meantime?
  

Revision as of 07:55, 6 August 2011

Explain clipping please

In the article, clipping is not described - I get that it has something to do with a region of a form/control that needs to be redrawn, but an explanation would be nice. --BigChimp 12:33, 2 August 2011 (CEST)

Link to stringgrid docs: done

Suggestion: add a link to stringgrid fpdoc documention. It is still minimal, but I have hopes that it will grow this year. Vincent 01:46, 4 Mar 2005 (PST)

Thanks for the tip. Perhaps if the help editor development is opened more people would help to make this sooner ;). --jesusrmx 08:31, 22 Mar 2005 (PST)

Link added, but there might be a better place for it. --BigChimp 12:33, 2 August 2011 (CEST)

New Features Request

Heiner Morales Morera from email wrote: I think that a sorting and filtering mechanism would be also very useful and powerful. A filter like in "excel" or in the grid of "component one".

  • For Sorting. By Sorting I understand that the user can click the column header, and a visual mark (usually an arrow) will show the sorting direction, this can be acomplished right now drawing the mark in the cell title in OnDrawCell event, for the sorting operation, if the user had assigned an event handler for OnCompareCells then doing for example grid.Sort(true, 2) (probably in a handler for OnTitleClick for dbgrid or HeaderClick for other grids) will sort column index 2 by calling OnCompareCells. However for dbgrid probably the underlaying dataset might have a better sorting mechanism and then such must mechanism needs to be called in OnTitleClick. The drawing part could be implemented standard in the grids, having the user to supply a images for three status (arrows), ascending, descending, unsorted, an alignment for the image. Moreover, specific events could be added in the "sorting" mode, a better spec could be described here. --jesusrmx 23:25, 26 Apr 2005 (PDT)
  • For filtering I like the idea of "excel" way. For example if the grid had a FilterMode property the (db)grid would enter in a mode with two fixed rows, the first the is the same title, the second a row with combos showing posible values for filter, again the implementation would be left to the user. Don't know what parts of this belong to standar grids. --jesusrmx 23:25, 26 Apr 2005 (PDT)



Old correction: AllowOutBoundClicks=>AllowOutBoundEvents

I did search reference for "AllowOutBoundClicks" property, but I cannot found it (Section Adjustments for improving Delphi grids compatibility)... Maybe it has changed to AllowOutBoundEvents in meantime?

Thanks! --Junior G. 23:53, 13 March 2008 (CET)

It should be AllowOutboundEvents, it's now corrected and I added a description for this property. --jesusrmx 19:19, 18 March 2008 (CET)