I have a wxPanel.
In there is a vertical wxStaticBoxSizer.
The top half is not interesting, it has a bunch of checkboxes. The bottom half is a wxGrid.
When the grid has enough rows to be in need of a scrollbar, the scrollbar's *place* pops up (a slightly darker rectangle than the background) *and* I can scroll the grid with it, but it is not visible. The arrows and slider thingy are simply not visible, even though they work just fine.
It's most strange. I wonder if anyone has seen this strange behaviour and if yes, what might be the cause? Most likely me, but I can't figure out.
Code fragment that generates the whole thing is here, 'this' is an object derived from wxPanel:
Code: Select all
sv = new wxStaticBoxSizer( wxVERTICAL, this, "Device log" ); SetSizer( sv ); ... create the top half, a panel named 'topwin', then ... logwin = new wxGrid( parent, myID_LOG ); logwin->CreateGrid( NVM_LOGS, 3 ); logwin->SetColLabelAlignment( wxLEFT, wxCENTRE ); logwin->SetColLabelValue( 0, "Date" ); logwin->SetColLabelValue( 1, "Time" ); logwin->SetColLabelValue( 2, "Event" ); logwin->EnableGridLines( true ); logwin->HideRowLabels(); sv->Add( topwin, 1, wxEXPAND ); sv->Add( logwin, 1, wxEXPAND );