U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TabCtrl » GetTab as protected or public
GetTab as protected or public [message #18506] Sun, 05 October 2008 12:17 Go to previous message
jale is currently offline  jale
Messages: 3
Registered: September 2008
Junior Member
Hi,

In order to close a tab when middle mouse button is clicked, would be great to have GetTab method as protected instead of private.


An example...

class TabCustom : public TabCtrl
{
  TabCustom() : TabCtrl() {};

  void MiddleDown(Point p, dword keyflags);
};


void TabCustom::MiddleDown(Point p, dword keyflags)
{
   // when middle button is pressed on a tab, close it
   RemoveTab(GetTab(p));
}
 
Read Message
Read Message
Previous Topic: Tabs at bottom of TabCtrl
Next Topic: TabDlg propose
Goto Forum:
  


Current Time: Tue Apr 28 22:02:43 GMT+2 2026

Total time taken to generate the page: 0.00617 seconds