Re: Previous control
- Posted by Mike777 <anon4321 at g?ail?com> May 12, 2008
- 736 views
CChris wrote: > > Mike777 wrote: > > > > I suppose the edit boxes and combo boxes don't really have a Click event, so > > I'm supposed to use a different event for w32HGetHandler. > > > > Any guidance would be appreciated. > > > > Thanks > > > > Mike > > Why not simply add an w32HGotFocus event handler to all the controls you are > interested in? > The common handler would save in a variable you define the id of the control > for which it is called (or stack them if you need more), and then you retrieve > them. > Doesn't work? Almost. w32HGotFocus doesn't fire when the mouse is clicked into a combobox. I tried w32HEvent, but then just passing the mouse over the control activates the event procedure, undoing what I've done by clicking in the cbo. It works for Text Boxes, Radio Buttons and Check Boxes. Is there a substitute for w32HGotFocus that works on combo boxes? [Yes, I've looked but I haven't found one, yet.] Mike