WX Windows - wxGrid without Scrollbar
This question is about WX Windows - I also placed it in the WX forum, but nobody answered...
I want to draw a wxGrid element with the exact size of its containing fields, but always some scrollbars appear. Only if make the grid element 20 pixel taller (what I do not want) the scrollbars disappear.
Any help? Thank's
Markus
Here the details:
I use wxWindows 2.4.1 C++
grid = new wxGrid( item,-1,wxPoint( 0, 0 ), wxSize (max_col * 40, max_row * 20);
for (i=0; i < max_row; i++) {
grid->grid->SetRowSize(i,20);
}
for (i=0; i < max_col; i++) {
grid->grid->SetColSize(i,40);
}
grid->SetRowLabelSize( 0 );
grid->SetColLabelSize( 0 );
grid->EnableScrolling(false,false); // did not help!!
|