Re: Previous control
- Posted by CChris <christian.cuvier at agricultur?.gouv.?r> May 12, 2008
- 739 views
Mike777 wrote: > > 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 I didn't have time to check (busy documenting sets.e and adding more tests, and I certainly type 10x slower than Jeremy). I don't see why combo boxes wouldn't fire w32HGotFocus. If I can confirm this I'll fix it, Bill forbid. CChris