Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxGrid without Scrollbar

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxGrid without Scrollbar
#3612
Posted by: 2004-03-26 19:34:30
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!!

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2021-7-28  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0