Sign in Join

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

Mailing lists / lazarus / 2010-03

dbl click on a grid

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Andrea Mauri

dear all,
in my application I have some grids (TStringGrid) where the dblclick should fire some events related to the selected row. I would like that the dblclick events will be raised only if the dblclick is performed on non-fixed rows.
How can I do that?
andrea

Reply by email

Hans-Peter Diettrich
to Andrea Mauri
Show quoted text 5 lines
in my application I have some grids (TStringGrid) where the dblclick should fire some events related to the selected row. I would like that the dblclick events will be raised only if the dblclick is performed on non-fixed rows. How can I do that?

Check the clicked row in your event handler.

DoDi

Reply by email

Andrea Mauri
to Hans-Peter Diettrich

Il 01/03/2010 22.03, Hans-Peter Diettrich ha scritto:

Check the clicked row in your event handler.

If row = 3 and I click on a fixedrow the row property still remains 3. So how can I check that the dblclick is performed on a fixed row? My problem is that if the user click on the fixed row the grid is sorted, while if the user dblclick on the grid or on a fixed column (non fixed row) a viewer of the current record/row is shown. My problem is that also dblclicking on a fixed row the viewer is shown.

I also noticed that the click event is not raised if I click on a fixed row/column while the dblclick is raised also if performed on a fixed row/column.

any hints?

andrea

Reply by email

Andrea Mauri
to Andrea Mauri

Il 02/03/2010 10.56, Andrea Mauri ha scritto:

I also noticed that the click event is not raised if I click on a fixed row/column while the dblclick is raised also if performed on a fixed row/column.

Is it a possibility to introduce a headerdblclick event like the headerclickevent?
andrea

Reply by email