[ wxwindows-Bugs-1818648 ] SetLeftMenu and SetRightMenu combination
SourceForge.net
noreply at sourceforge.net
Tue Feb 26 05:56:14 PST 2008
Bugs item #1818648, was opened at 2007-10-23 15:50
Message generated for change (Comment added) made by juliansmart
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1818648&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: WinCE specific
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Vuk Jovanovic (southpolenator)
Assigned to: Julian Smart (juliansmart)
Summary: SetLeftMenu and SetRightMenu combination
Initial Comment:
Error displaying right button action when use following code in constructor of class extending wxFrame:
wxMenu * menuLeft = new wxMenu();
menuLeft->Append(ID_MENU_ENTER, wxT("Enter"));
menuLeft->AppendSeparator();
menuLeft->Append(ID_MENU_EXIT, wxT("Exit"));
SetLeftMenu(ID_MENU_LEFT, wxT("Action"), menuLeft);
SetRightMenu(ID_MENU_BACK, wxT("Back"));
SOLUTION:
change file: include/wx/msw/wince/smartphone.rc
IDR_MENUBAR_LEFT_MENU RCDATA
BEGIN
IDR_POPUP_1,2,
I_IMAGENONE, IDM_LEFT, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, 0,
I_IMAGENONE, IDM_RIGHT, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, NOMENU,
END
----------------------------------------------------------------------
>Comment By: Julian Smart (juliansmart)
Date: 2008-02-26 13:56
Message:
Logged In: YES
user_id=59495
Originator: NO
Hi, I don't feel comfortable blindly applying this so could you perhaps
explain what the error is and how this cures it? Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1818648&group_id=9863
More information about the wx-dev
mailing list