Simon Flack wrote:
herbert breunung wrote:
im using wxperl 0.21 on ActivPerl 5.8.6 and tried to
$y_size = $v_sizer->Fit($dialog); like it is described in the docs
but the fit method returns no Wx::Size nor a perlish array.
Looks like a bug:
# Sizer.xs:
void
wxSizer::Fit( window )
wxWindow* window
However, given that Wx::Sizer->Fit sizes the window, can you just call
$dialog->GetSize() after the call to Fit()?
--simonflk
yes this workaround im currently using but one thing too annoyes me:
i have in my example 2 nested BoxSizers. the inner is horizontal, the
outer vertical.
it seems than i have to call both, the vertical to get the y anf the
horizontal fit to
get the proper x size and the resize the window. its hard to believe
that there is no elegant solution.
kudos
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|