CXTPControlEdit bug |
Post Reply |
Author | |
Italo
Groupie Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
Italo
Groupie Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
|
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
Italo
Groupie Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Sorry, Italo, you right, its bug. Will be fixed in next release. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |