Dynamic adding menuentries |
Post Reply |
Author | |
nobs
Groupie Joined: 12 September 2006 Location: Austria Status: Offline Points: 12 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
When you call pControls->Add set bTemporary parameter as TRUE
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
nobs
Groupie Joined: 12 September 2006 Location: Austria Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Thanks for the quick answer, that solved the problem!
A little advice: This is information would be nice in the documentation |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |