[wx-dev] fix in wxToolbar (tbar95.cpp)

Armel Asselin asselin.armel at wanadoo.fr
Sat Nov 25 01:04:26 PST 2006


> AA> you can just put this text:
> AA>  // once we rebuilt the toolbar we ouput some stuff to the main text 
> field
> AA>  m_textWindow->AppendText (wxString::Format(wxT("toolbar best size:
> AA> %d,%d\n"),
> AA>   toolBar->GetBestSize().GetWidth(), 
> toolBar->GetBestSize().GetHeight()));
> AA>
> AA>  near line samples/toolbar/toolbar.cpp:456 near
> AA> toolBar->Realize();
> AA> toolBar->SetRows(m_horzToolbar ? m_rows : 10 / m_rows);
> AA>
> AA> It will print the best size in the main view, and it will show smaller
> AA> values on failing comctl32.dll
>
> I hoped for something easier to check (it's not clear if 768 pixels is
> correct or not)...
I too, but unfortunately the main field is a text field and without adding 
tons of stuff, I add no idea of how to 'display' the problem

Armel 





More information about the wx-dev mailing list