CommandBarComboBox - lost focus |
Post Reply |
Author | |
Kelbob
Newbie Joined: 06 April 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 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
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
Sorry forgot to put the language in. Its in c# using the Activex version
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |