Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

OnHeaderDblClick event for dock panels

chk
edited July 2015 in LMD-Tools Vote Up0Vote Down
I tried to add an event to track when the user does a double click in the panels header:


procedure WMLButtonDblClk(var Message: TWMLButtonDblClk); message WM_LBUTTONDBLCLK;

procedure TLMDDockPanel.WMLButtonDblClk(var Message: TWMLButtonDblClk);
begin
  inherited;
  if PtInRect(FHeaderArea, TPoint.Create(Message.XPos, Message.YPos))
    then FOnHeaderDblClick(Self);
end;

This works fine for panels in a docksite. But it is not called for floating panels because the header is displayed as floating form caption the change will be more complicate.

So I'm wondering if there is another way to track this event or if you can add such an event in a future update.

cu Christian
Tagged:

Comments

  • 4 Comments sorted by Votes Date Added
  • Hi, 

    I can't answer you right now, I should look...

    Eugene,
    LMdInnovative.
  • Are there any news regarding this request?

    cu Christian
  • Posts: 0 Accepted Answer Vote Up0Vote Down
    You should also translate the message from TLMDFloatingForm to its child panel, but only in case the form contains only single panel (use IsSinglePanelFloatingSite function to determine this).

    Actually, its not so simple to implement, so we will add this feature only in the next major release.
Sign In or Register to comment.