From: <AOu...@fr...> - 2006-04-26 13:23:30
|
Hi, I was wondering, if it's possible to select a Tab in a Notebook using the right mouse button and if, then how ? Problem is, that I'm using the right mouse button to show a Popupmenu for the Page, if I click on a Tab. But if I click on a Tab, that isnt the the current Page, I want to change the Page, to this one first. Until now I have to select the Page first (using left mouse button) and then click it (with right button) to open the Popupmenu. So far I tried to use this in the Event Handler for the right button: my $hEvent = Wx::MouseEvent->new(wxEVT_LEFT_DOWN); $hEvent->SetId($this->GetId()); $this->ProcessEvent($hEvent); , but without any luck. And since HitTest isnt implemented under wxPerl (and not on all wxWidgets Ports), I cant determine on which tab the right click was. Does anyone has any idea how to solve this problem ? Btw: What is the difference between wxWidgets "univ" and "generic" ? Many thanks in advance, Andre |