From: Mark D. <mar...@zn...> - 2007-01-03 17:57:19
|
Hi, I think it is probably caused by different versions of wxPerl / wxWidgets. Anyhow, I think the unusual behaviour is actually under Linux. When you add a window, you should also specify a wxGBPosition. If your wxPerl is greater than 0.25, I think you can just pass an array ref, so $szEK->Add($lblEkNet, [1,1]) should work. If not, then $szEK->Add($lblEkNet, Wx::GBPosition->new(1,1)) should be OK. Regards Mark Matthias Rahn wrote: > Hi, > > i wrote a small app under Linux which adds a control like this: > >> my $lblEkNet = Wx::StaticText->new($self, -1, 'testit'); >> my $szEK = Wx::GridBagSizer->new(2, 3); >> $szEK->Add($lblEkNet); > > While this works fine with Linux I get an error under Windows: > >> unable to resolve overloaded method for Wx::GridBagSizer::Add > > What could be the problem and how can I solve it? > > Greetz, > /\\atthias > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |