Print Page | Close Window

Dynamic adding menuentries

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=6582
Printed Date: 06 October 2024 at 1:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic adding menuentries
Posted By: nobs
Subject: Dynamic adding menuentries
Date Posted: 07 March 2007 at 9:36am
Hi

I have a problem with adding a menuentry during runtime

I'm able to add do it, but!!!
the problem is that with SaveCommandBars and LoadCommandbars
the added entry is saved in the config

so the next time I start the application, a new copy of the menuentry is added!

The documentation says that I should set the m_btemporary flag in the CXTPControl, but how can I achieve this?     the member is protected and there is no method to access it (Except "IsTemporary")

A solution would be to simple never use "LoadcommandBars" but that is no feasible because I need this feature.

Additional Information:
using Toolkitpro v10.3.1

norbert







Replies:
Posted By: Oleg
Date Posted: 07 March 2007 at 1:59pm
Hi,
When you call pControls->Add  set bTemporary parameter as TRUE


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


Posted By: nobs
Date Posted: 08 March 2007 at 4:18am
Thanks for the quick answer, that solved the problem!


A little advice:
This is information would be nice in the documentation




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