Cant set button name in wxBitmapButton()

Michael M. michael at mustun.ch
Fri Mar 23 14:35:00 PDT 2007


Cant set button name in wxBitmapButton()

xx = new wxBitmapButton( this /*panel*/,
                          wxID_HIGHEST + 1000 + n,
                          bitmap,
                          wxDefaultPosition,
                          wxDefaultSize,
                          wxBU_AUTODRAW | wxNO_BORDER,
                          wxDefaultValidator,
                          /*global_execName.Item(n)*/ "GUGU.2" );

cerr << "Name of Button: " << xx->GetLabel() << endl;

Strange: The name is not set. The name should be "GUGU.2" ?

Also I call the func from wxButton. But this should work also because 
wxBitmapButton is derived from wxButton ?







More information about the wx-users mailing list