From: bungsuputra l. <bl...@to...> - 2005-04-23 03:52:31
|
Has anyone tried using Wx::PopupTransientWindow? I compiled wxPerl from CVS since I am very interested in using Wx::PopupTransientWindow. :) Here is my code: sub ShowPopup { my($this,$event)=@_; my $btn = $event->GetEventObject(); my $sz = $btn->GetSize(); my ($posx,$posy) = $btn->ClientToScreen((0,0)); $posy += $sz->GetHeight(); my $win=TestTransientPopup->new($this, -1, [$posx, $posy], [-1,-1], wxSIMPLE_BORDER); #my $win=Wx::PopupWindow::new(); $win->Show(1); } Note: the TestTransientPopup package is similar to the one in wxPython demo. When I run the code, I got this error: Usage: Wx::PopupTransientWindow::new() at <script_name> line... Now I tried to call Wx::PopupTransientWindow::new() without parameter (although it looks weird :)) and I got this error: Can't locate object method "newFull" via package "newFull" (perhaps you forgot to load "newFull"?) at <script_name> line ... Has anyone successfully used Wx::PopupTransientWindow? Would you show me some working code? Thanks in advance, bungsu |