Print Page | Close Window

[Closed] Menu Title

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6022
Printed Date: 23 May 2024 at 5:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Menu Title
Posted By: Simon HB9DRV
Subject: [Closed] Menu Title
Date Posted: 07 January 2007 at 5:33am
Hi All,

In the latest release how did you add a title to the context menu - I would really like to have this for my popups? Please point me at the code used to create this :-)

At the moment I just create a CMenu dynamically, adding a title would really help me (and my users).




-------------
Simon HB9DRV



Replies:
Posted By: Oleg
Date Posted: 07 January 2007 at 11:05am

Hi,

 
it is the caption of popup item in menu template:
 
 

IDR_CONTEXT_MENU MENU DISCARDABLE
BEGIN
    POPUP "&Context Menu"
    BEGIN
        MENUITEM "&Undo\tCtrl+Z",               ID_EDIT_UNDO
        MENUITEM SEPARATOR
        MENUITEM "Cu&t\tCtrl+X",                ID_EDIT_CUT
        MENUITEM "&Copy\tCtrl+C",               ID_EDIT_COPY
        MENUITEM "&Paste\tCtrl+V",              ID_EDIT_PASTE
    END
END
 
 
if you create it dynamically you can call
 
pPopup->SetTitle(...) where pPopup is return of Add method.
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 07 January 2007 at 11:17am
Originally posted by oleg oleg wrote:

Hi,

 
it is the caption of popup item in menu template:
 
 

IDR_CONTEXT_MENU MENU DISCARDABLE
BEGIN
    POPUP "&Context Menu"
    BEGIN
        MENUITEM "&Undo\tCtrl+Z",               ID_EDIT_UNDO
        MENUITEM SEPARATOR
        MENUITEM "Cu&t\tCtrl+X",                ID_EDIT_CUT
        MENUITEM "&Copy\tCtrl+C",               ID_EDIT_COPY
        MENUITEM "&Paste\tCtrl+V",              ID_EDIT_PASTE
    END
END
 
 
if you create it dynamically you can call
 
pPopup->SetTitle(...) where pPopup is return of Add method.
 

Hi Oleg,

Many thanks - what class is pPopup (guess I can find that myself) ?


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 08 January 2007 at 3:21am
Hi,
CXTPCommandBar.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net