Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: FMX.TStringGrid: Add customized event handler for column separator dblclick

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Muruga vel

Posts: 2
Registered: 5/2/18
FMX.TStringGrid: Add customized event handler for column separator dblclick  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2018 7:20 AM
Hi all,
We're planning to create a new customized component which extends properties and events of FMX.TStringGrid, additionally with a new event handler for column separator "double" click. As per my understanding, FMX.TStringGrid doesn't support column separator double click event, all it has is mouse (single) left and right click event.

Could you please suggest us a best approach to add column separator double (left)click event?
If it's possible, please explain it with a sample code snippet.

1. On column header double click event, we are planning to resize the column based on the content.
2. By overriding the TForm.MouseUp event and CellByPoint function, we can able to obtain the same result either in mouse (single) left click or right click. But we need to do the same, during column header double (left) click event as same as in other applications like MS-Excel.
3. We are using Delphi 10.2 version

Thanks in advance.

Edited by: Muruga vel on Apr 3, 2018 6:11 PM
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02