Print Page | Close Window

CXTPControlEdit bug

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=517
Printed Date: 15 May 2024 at 3:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlEdit bug
Posted By: Italo
Subject: CXTPControlEdit bug
Date Posted: 11 March 2004 at 9:02am

I have a toolbar with a CXTPControlEdit control that I created with the code below.

 

if( lpCreateControl->nID == ID_EDIT_SERVER && pToolBar->GetBarID() == IDR_SERVER )

      {

             CXTPControlEdit* pEdit = (CXTPControlEdit*)CXTPControlEdit::CreateObject();

                   pEdit->SetCaption("Server");

                   pEdit->SetEditText("(local)");

                   pEdit->SetWidth(250);

                   lpCreateControl->pControl = pEdit;

             return TRUE;

      }

 

Everything works great; until I close the program and run it again. The state of the control is not restored. The width is reset to default and the value is reset to none. Is this a bug? Can I get a fix for it?

 

Thanks, Italo Silveira




Replies:
Posted By: SuperMario
Date Posted: 11 March 2004 at 9:20am
Are you Saving and Loading the layout of the CommandBar?  If you are, then you are probably loading the deafults.  Try deleting the registry entry for the layout or comment out those lines of code and see if your changes take effect. 


Posted By: Italo
Date Posted: 11 March 2004 at 3:00pm

Yes, I’m saving and loading the layout; and yes if a comment out the layout code everything works. But, why is the layout not saving the width of the textbox? It works great for combo boxes.

 

Thanks, Italo



Posted By: SuperMario
Date Posted: 11 March 2004 at 3:30pm
Try changing the layout name, I think it is loading some old data from the registry.  Or try not loading the layout, but save the layout, this sould fix the problem.  Problem is old values are beling loaded from the registry.


Posted By: Italo
Date Posted: 12 March 2004 at 8:04am

I deleted the entire registry key, but the problem still remains. The edit control is not storing the width of the control.

 

Thanks anyway, Italo



Posted By: Oleg
Date Posted: 12 March 2004 at 2:45pm

Sorry, Italo, you right, its bug. Will be fixed in next release.



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



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