Sign in Join

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

Mailing lists / lazarus / 2008-03

grid documentation (TStringGrid)

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Is there any documentation on the 'grid' unit?

1)
If not, can anybody tell me what is the difference between the OnSelectCell and OnBeforeSelection event?

2)
What does all these grid states mean? Selected and Focused is obvious, but the others not.
TGridDrawState = set of (gdSelected, gdFocused, gdFixed, gdHot, gdPushed);

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Funky Beast
to Graeme Geldenhuys
Graeme Geldenhuys wrote
TGridDrawState = set of (gdSelected, gdFocused, gdFixed, gdHot, gdPushed);

gdFixed -- when drawing on cells of fixed rows (e.g. title row) or fixed columns (e.g. indicator column).

no idea what gdHot and gdPushed means :(

HTH,
Funky Beast

Reply by email

JoshyFun
to Graeme Geldenhuys: Is there any documentation on the 'grid' unit? 1) If not, can anybody tell me what is the…

Hello Graeme,

Thursday, March 13, 2008, 3:03:57 PM, you wrote:

GG> TGridDrawState = set of (gdSelected, gdFocused, gdFixed, gdHot, gdPushed);

They seens to be:

gdSelected: The cell is selected (usually many cells can be selected, I'm not sure in Lazarus).

gdFocused: The one that have the cell focus (focus rect around). In example the cell that will be edited.

gdFixed: :)

gdHot: Seens to be the one under the mouse pointer.

gdPushed: Maybe a different kind of fixed to be draw with a push effect.

From my point of view, one cell can be at the same time, selected,

focused, hot and maybe pushed, but not fixed.

Best regards, JoshyFun

Reply by email

Jesus Reyes
to Vincent Snijders: There is some: http://wiki.lazarus.freepascal.org/Grids_Reference_Page Vincent

--- Vincent Snijders escribi?:

Show quoted text 10 lines
Graeme Geldenhuys schreef: > Hi, > > Is there any documentation on the 'grid' unit? > There is some: http://wiki.lazarus.freepascal.org/Grids_Reference_Page Vincent

I added some notes about grid selection and options, please check, if something is not clear just ask :)

Jesus Reyes A.

____________________________________________________________________________________ ?Capacidad ilimitada de almacenamiento en tu correo! No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/

Reply by email