[wince]

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
romeo9423
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Nov 08, 2004 3:36 pm

[wince]

Post by romeo9423 » Thu Mar 08, 2007 11:27 am

Hi,

how can I create a toolbar on wince.When I try this :

m_toolbar=CreateToolBar(wxNO_BORDER | wxTB_HORIZONTAL,4095);

m_toolbar->AddTool(MENU_NEW, wxString( wxT("Nouveau") ), wxNullBitmap );
m_toolbar->AddTool(MENU_OPEN, wxString( wxT("Open") ), wxNullBitmap );
m_toolbar->AddTool(MENU_SAVE, wxString( wxT("Save") ), wxNullBitmap );

m_toolbar->Realize();
SetToolBar(m_toolbar);

but I get a wxDC assert about bitmaps.
The thing is I don't want bitmap in my toolbar, I juste want a norma menu

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Thu Mar 08, 2007 11:44 am

Hi!
You could try with AddTool() instead and add some wxButtons.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

Post Reply