Timo S. wrote:
actually I’m trying to generate my UI with wxFormBuilder. But I
haven’t managed to create correct plattform-independent Quit- and
About-Menuitem with the correct IDs (Wx::ID_EXIT, Wx::ID_ABOUT). Can
anyone tell me how to do this?
I haven’t used wxFormBuilder. But looking at the screenshots, there is a
box in a panel on the right-hand side called “Object Properties”. At the
top of the yellow tinted section in this list of properties, there is an
entry called “id” which I guess has the default value “wxID_ANY”. To use
one of the standard ids, change this to wxID_EXIT, wxID_ABOUT.
Generally to map from C++ constant and class names to Ruby, replace the
preceding wx (lower case) with Wx:: (module name).
C++ -> Ruby
wxWindow -> Wx::Window
wxID_EXIT -> Wx::ID_EXIT