Print Page | Close Window

menu with a bold text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=562
Printed Date: 18 May 2024 at 5:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: menu with a bold text
Posted By: jimmy
Subject: menu with a bold text
Date Posted: 25 March 2004 at 2:30am
Hello,
How can i show a menu text in bold font ?



Replies:
Posted By: vladsch
Date Posted: 26 March 2004 at 11:49am

Default Items show up in bold, so for the items that you want in bold you have to set the corresponding control's default item property to TRUE.

Get the control that corresponds to the menu item from the controls collection:

CXTPControl *pXTPControl =  GetCommandBars()->GetMenuBar()->GetControls()-&g t;GetControl(nIndex);

pXTPControl->SetItemDefault(true);

You are only supposed to have one default item, but I tried it and all the items can be set to default and will appear bold. I did not test to see if there are other side-effects of this.




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