summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b908d22)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3059
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
- Init(title, style, NULL);
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
- , const wxFunction func
+ , const wxFunction func = (wxFunction) NULL
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
- Init(title, style, NULL);
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
- , const wxFunction func
+ , const wxFunction func = (wxFunction) NULL
SetIcon(wxICON(mondrian));
// create a menu bar
SetIcon(wxICON(mondrian));
// create a menu bar
-// wxMenu *menuFile = new wxMenu;
- wxMenu *menuFile = new wxMenu(wxMENU_TEAROFF);
+ wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
menuFile->Append(Minimal_About, "&About...\tCtrl-A", "Show about dialog");
menuFile->Append(Minimal_Test, "&Test...\tCtrl-T", "Test");
menuFile->Append(Minimal_About, "&About...\tCtrl-A", "Show about dialog");
menuFile->Append(Minimal_Test, "&Test...\tCtrl-T", "Test");
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
-wxMenu::wxMenu( const wxString& title, const wxFunction func, long style )
-{
- Init(title, func, style);
-}
-
-wxMenu::wxMenu(long style)
-{
- Init(wxEmptyString, (wxFunction) NULL, style);
-}
-
void
wxMenu::Init( const wxString& title,
void
wxMenu::Init( const wxString& title,
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
-wxMenu::wxMenu( const wxString& title, const wxFunction func, long style )
-{
- Init(title, func, style);
-}
-
-wxMenu::wxMenu(long style)
-{
- Init(wxEmptyString, (wxFunction) NULL, style);
-}
-
void
wxMenu::Init( const wxString& title,
void
wxMenu::Init( const wxString& title,
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif