Print Page | Close Window

CXTPContolEdit update problem

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=2855
Printed Date: 04 March 2025 at 9:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPContolEdit update problem
Posted By: brianh
Subject: CXTPContolEdit update problem
Date Posted: 07 September 2005 at 10:47am

Hi, I have a CXTPControlEdit control in my toolbar which is created in my OnCreateControl() handler.  I originally set the 'xtpManualUpdate' flag for this control so that the update handler was never called, which worked as expected.  Later I decided that I did need the update handler to be called and removed this flag but the handler still was not called.  After scratching my head over this for quite a while I finally deleted the registry entires where this toolbar's settings were being saved and loaded from and this cured the problem!

Surely a setting like this, which the user can't change, should not be serialized to the registry when saving/restoring the toolbar state?  This is a purely programming issue and I should not have to make my users delete all their registry settings for the program just to make new changes work!   Can you please tell me how to fix this problem? Thanks.




Replies:
Posted By: Oleg
Date Posted: 08 September 2005 at 3:56am

Right, sorry we missed this parameter in Compare method.

in CXTPControl::Compare will be added

 if (GetFlags() != pOther->GetFlags())
  return FALSE;

Now  I suggest you to change registry setting entry key:

SaveCommandBars(_T("CommandBars-ver2");

LoadCommandBars(_T("CommandBars-ver2");

 



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


Posted By: brianh
Date Posted: 09 September 2005 at 5:19am
Thanks Oleg, that's fixed it! Cheers! :)



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