|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| InkEdit SelChange event not firing Hello, I've built a simple test app to illustrate the problem, randomly when text is programmatically set into the inkedit, the user highlights some text and backspaces/types, no SelChange events are sent to my handler at all! This problem then persists for the remainder of the conversation with the dialog. Is this a known issue and are there any workarounds? Thanks, Jay CTest_app_inkeditDlg::CTest_app_inkeditDlg(CWnd* pParent /*=NULL*/) : CDialog(CTest_app_inkeditDlg::IDD, pParent), lChange(0), lSelChange(0) { //{{AFX_DATA_INIT(CTest_app_inkeditDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } BOOL CTest_app_inkeditDlg::OnInitDialog() { CDialog::OnInitDialog(); m_inkEdit.SetText("Existing TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting TextExisting Text"); return TRUE; } BEGIN_EVENTSINK_MAP(CTest_app_inkeditDlg, CDialog) //{{AFX_EVENTSINK_MAP(CTest_app_inkeditDlg) ON_EVENT(CTest_app_inkeditDlg, IDC_INKEDIT1, 1 /* Change */, OnChangeInkedit1, VTS_NONE) ON_EVENT(CTest_app_inkeditDlg, IDC_INKEDIT1, 2 /* SelChange */, OnSelChangeInkedit1, VTS_NONE) //}}AFX_EVENTSINK_MAP END_EVENTSINK_MAP() void CTest_app_inkeditDlg::OnChangeInkedit1() { ++lChange; } void CTest_app_inkeditDlg::OnSelChangeInkedit1() { ++lSelChange; } void CTest_app_inkeditDlg::OnOK() { if(lSelChange == 0) AfxMessageBox("No SelChange events detected"); CDialog::OnOK(); } // Use a wrapper dialog to repeatedly display ink edit and try to reproduce the issue, sometimes happens on average 1 in 10 times void CWrapper::OnOK() { for(int i(0); i<100; ++i) { CTest_app_inkeditDlg dlg; dlg.DoModal(); } CDialog::OnOK(); } |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| InkEdit won't accept ink or keyboard? | SeanR | Tablet PC Developers | 3 | 06-29-2007 01:30 PM |
| IE7 onmousedown event in combo box <select> not firing like IE6 (b | Allister | Internet Explorer | 1 | 06-28-2007 06:30 PM |
| firing noise in wmp11 | Neerav Kothari | Windows Vista | 2 | 04-03-2007 01:45 PM |
| Bug in .Net InkEdit Controls when using ToolTips | Mark Peacock | Windows XP Tablet PC Newsgroup | 1 | 09-20-2004 01:25 PM |
| Tablet PC obligatoire pour les controles inkedit ? | m | Windows XP Tablet PC Newsgroup | 2 | 05-26-2004 10:11 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |