added SetColMinimalWidth()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-21 18:01:45 +00:00
parent 0e09f76e6d
commit 439479796a
3 changed files with 57 additions and 21 deletions

View File

@@ -110,7 +110,7 @@ GridFrame::GridFrame()
int logW = gridW, logH = 100;
wxMenu *fileMenu = new wxMenu;
fileMenu->Append( ID_VTABLE, "&Virtual table test");
fileMenu->Append( ID_VTABLE, "&Virtual table test\tCtrl-V");
fileMenu->AppendSeparator();
fileMenu->Append( wxID_EXIT, "E&xit\tAlt-X" );
@@ -220,8 +220,9 @@ GridFrame::GridFrame()
attr->SetBackgroundColour(*wxBLUE);
grid->SetRowAttr(5, attr);
// VZ: cell borders don't look nice otherwise :-) (for now...)
grid->SetDefaultCellBackgroundColour(wxColour(200, 200, 180));
grid->SetCellValue(2, 4, "a wider column");
grid->SetColSize(4, 120);
grid->SetColMinimalWidth(4, 120);
wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL );
topSizer->Add( grid,