I want to force users to fill in required fields before filling in fields that depend on the required fields. I can show and hide of course to get this effect but was wondering if I can just use the tooltip of the required control when someone clicks on another field before it is time.
In superclassed controls I can trap wm_killfocus and validate the data and prevent moving to another control from getting focus. What I would like to do is to popup the tooltip of the required control when the user clicks any other control on the form in an attempt to set focus to a control other than the required one. Is this possible?
The only way I can think of at the moment is to programmatically move the mouse to hover over the required control and let 'that' popup the tooltip.
I'll have the handle at the point of time that I want to do this so I could get the ctrlid and the location, convert to pixel coordinates and move the mouse. Seems like a lot of work.
I tried the ShowBallonText sample for on demand balloon style help popups but it didn't work well on my gradient screen and eventually gpf'd.
Bob Mechler
In superclassed controls I can trap wm_killfocus and validate the data and prevent moving to another control from getting focus. What I would like to do is to popup the tooltip of the required control when the user clicks any other control on the form in an attempt to set focus to a control other than the required one. Is this possible?
The only way I can think of at the moment is to programmatically move the mouse to hover over the required control and let 'that' popup the tooltip.
I'll have the handle at the point of time that I want to do this so I could get the ctrlid and the location, convert to pixel coordinates and move the mouse. Seems like a lot of work.
I tried the ShowBallonText sample for on demand balloon style help popups but it didn't work well on my gradient screen and eventually gpf'd.
Bob Mechler
Comment