![]() |
CXTPControlEdit bug |
Post Reply ![]() |
Author | |
Italo ![]() Groupie ![]() Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
![]() ![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |