Hi all,
I'm using the last osgViewerWX example (http://www.mail-archive.com/[EMAIL
PROTECTED]/msg01313.html) for my program and I've inserted a menubar in the
Mainframe constructor like this:
MainFrame::MainFrame(wxFrame *frame, const wxString& title, const wxPoint& pos,
const wxSize& size, long style)
: wxFrame(frame, wxID_ANY, title, pos, size, style)
{
wxMenu *file = new wxMenu;
wxMenu *help= new wxMenu;
help->Append(wxID_HELP, wxT("&About"));
file->Append(wxID_CLOSE, wxT("&Quit"));
wxMenuBar *menubar = new wxMenuBar();
menubar->Append(file, wxT("&File"));
menubar->Append(help, wxT("&Help"));
SetMenuBar(menubar);
Centre();
}
The problem is that the first menu keeps showing all the time. For instance,
when you select a menu of the menubar and then select another menu, it shows
both submenus. If you select another menu it still keeps showing the first
submenu until you don't press the mouse button.
I've talked about this with Paul Melis and he says that this code works fine in
wxGTK. I'm using Windows XP, OSG v 2.2 and wxWidgets 2.8.7.
We have noticed that in Windows the frame rate counter ('s' key) stops updating
when I select a menu. If I make the camera move around the cow.osg, the cow
also stops moving when I select a menu. Whereas Paul says his frame rate
counter keeps updating and the cow keeps moving with wxGTK.
Can anyone test this source code in Windows and explain what is happening?
Thank you
_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar
siempre a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org