Recent

Author Topic: What is the event of clicking each TabSheet in a PageControl ?  (Read 2864 times)

asdf

  • Sr. Member
  • ****
  • Posts: 310
 %)

By the way, OnMouseDown didn't work on the caption areas.
« Last Edit: July 29, 2014, 01:28:11 pm by asdf »
Lazarus 1.2.4 / Win 32 / THAILAND

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: What is the event of clicking each TabSheet in a PageControl ?
« Reply #1 on: July 29, 2014, 01:49:36 pm »
The tabs are part of the pagecontrol (not the tabsheet).
Clicking a tab will generate a pagecontrol.OnChange event.
Clicking a tabsheet will generate mouse events for the tabsheet (e. g. OnMouseDown, OnMouseUp, OnMouseMove etc.)
There is no OnClick event provided for TTabSheet (though you could simulate one using the provided events).

 

TinyPortal © 2005-2018