![]() |
CommandBarComboBox - lost focus |
Post Reply
|
| Author | |
Kelbob
Newbie
Joined: 06 April 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: CommandBarComboBox - lost focusPosted: 06 April 2005 at 6:18am |
|
Hi, I have a CommandBarComboBox with DropDownListStyle set to true. 1. When someone edits the text and then clicks off the control i want to set the text back to what it was previously. i.e. a Lost focus event. 2. Is there anyway to validate the users keystrokes when there are editing this combo box. Thanks in advance. JK |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2005 at 10:29am |
|
1, you can update it in Handler void CMainFrame::OnUpdateEditState(CCmdUI* pCmdUI) if (pStateCombo && !XTPMouseManager()->IsTrackedLock()) } } }
2. See CustomThemes sample, you can override Edit control and validate input (or use Masked text) |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Kelbob
Newbie
Joined: 06 April 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 April 2005 at 2:34am |
|
Sorry forgot to put the language in. Its in c# using the Activex version
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 April 2005 at 1:17pm |
|
Use same code for ActiveX. catch Update event, set text for Edit.
|
|
|
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 |