Print Page | Close Window

How can I change the prompt of the popup menu?

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=13938
Printed Date: 01 December 2024 at 3:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I change the prompt of the popup menu?
Posted By: PilotEdit
Subject: How can I change the prompt of the popup menu?
Date Posted: 07 April 2009 at 4:23am
Hi,
 
I am trying to show a popup menu with the code below:
 
  CMenu menu;
  VERIFY(menu.LoadMenu(IDR_POP_TAB));
  CMenu* pPopup = menu.GetSubMenu(0);
  m_MTIClientWnd.WorkspaceToScreen(&point);
  CXTPCommandBars::TrackPopupMenu(pPopup, 0, point.x, point.y, this);
 
But I don't know how can I change the prompt (the message shown in the status bar) of the pop up menu.
How can I set the prompt of the popup menu?
 
Thank you



Replies:
Posted By: Oleg
Date Posted: 08 April 2009 at 12:55am
Hi,
 
In string table (resource page) add description for Ids you have in this menu.


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


Posted By: PilotEdit
Date Posted: 25 June 2010 at 10:53am
Originally posted by oleg oleg wrote:

Hi,
 
In string table (resource page) add description for Ids you have in this menu.

How can I change it dynamically? (While the program is running.)

Thank you


Posted By: rdhd
Date Posted: 12 July 2010 at 4:26pm
Handle WM_XTP_INITCOMMANDSPOPUP then modify the controls manually by setting tips etc. See samples\commandbars\notifications in the CJ sdk.



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