I am working on a modeless dialog with a combobox. The only time I want the dialog to keep focus is when the combobox has focus. I've not been able to achieve this.
I thought I could respond to the setfocus event, expecting it to fire when I clicked in the edit box, but clicking in the edit box doesn't seem to fire the setfocus event.
Any suggestions?
Thanks,
Mike
Hello mkweaver, I hope I understand you right but try a
(dcl_Control_SetKeepFocus MyProj_MyForm T)
within c:MyProj_MyForm_MyCombobox_OnSetFocus and a
(dcl_Control_SetKeepFocus MyProj_MyForm nil)
within c:MyProj_MyForm_MyCombobox_OnKillFocus. Please have a try with the attached sample. I hope that is what you're looking for.
Fred
Thanks, Fred. That gave me exactly what I wanted.
Mike