Tab key in WTL ProperySheetPage sounds bell?
-
Hey folks, Anyone know what I need to do to get the tab key to move from field to field in a CPropertyPageImpl-based property sheet page? it works fine in design view in VS, but sounds a bell and stays put when executing. All the necessary controls have the WS_TABSTOP set, but the focus doesn't move... Thanks! D. T. Doutel
-
Hey folks, Anyone know what I need to do to get the tab key to move from field to field in a CPropertyPageImpl-based property sheet page? it works fine in design view in VS, but sounds a bell and stays put when executing. All the necessary controls have the WS_TABSTOP set, but the focus doesn't move... Thanks! D. T. Doutel
i'm not so familar with wtl - but it sounds cause the IsDialogMessage() function is callin' twice. override the TranslateAccelerator function to set the focus by your own. because windows cannot (will) set focus among nested dialogs. but i'm not shure if there isn't a possibility to do that on another way.
-
i'm not so familar with wtl - but it sounds cause the IsDialogMessage() function is callin' twice. override the TranslateAccelerator function to set the focus by your own. because windows cannot (will) set focus among nested dialogs. but i'm not shure if there isn't a possibility to do that on another way.
-
Hey folks, Anyone know what I need to do to get the tab key to move from field to field in a CPropertyPageImpl-based property sheet page? it works fine in design view in VS, but sounds a bell and stays put when executing. All the necessary controls have the WS_TABSTOP set, but the focus doesn't move... Thanks! D. T. Doutel
Hi, Your message loop must call
PropSheet_IsDialogMessage()
when the PropSheet is not modal. For instance in a parent frame deriving fromWTL::CMessageFilter
:virtual BOOL PreTranslateMessage(MSG* pMsg)
{
return CFrameWindowImpl<CMainFrame>::PreTranslateMessage(pMsg) ? TRUE :
PropSheet_IsDialogMessage(<My Property Sheet member>.m_hWnd, pMsg);
}cheers, AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
modified on Friday, December 10, 2010 5:07 AM