Home » U++ Library support » TabCtrl » GetTab as protected or public
GetTab as protected or public [message #18506] |
Sun, 05 October 2008 12:17 |
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));
}
|
|
|
Goto Forum:
Current Time: Mon May 13 08:51:06 CEST 2024
Total time taken to generate the page: 0.01287 seconds
|