Page 1 of 1

Which one would get the highest priority? The ON LOSTFOCUS o

Posted: Tue Nov 04, 2008 12:30 pm
by dhaine_adp
Which one would get the highest priority? The ON LOSTFOCUS or the ON GOTFOCUS?
Also is there a function to retrieve the last mouse click event position on the active window?

Re: Which one would get the highest priority? The ON LOSTFOCUS o

Posted: Tue Nov 04, 2008 2:10 pm
by Rathinagiri
For the 'active/focussed' control, ON LOST FOCUS would be the first event, where as, when the focus is transferred to another control the ON GOT FOCUS of the new control will get the first priority.

For your second question, the answer is YES. It can be referred in the 'define window syntax' .

[ ON MOUSECLICK <MouseClickProcedureName> | <bBlock> ]
[ ON MOUSEDRAG <MouseDragProcedureName> | <bBlock> ]
[ ON MOUSEMOVE <MouseMoveProcedureName> | <bBlock> ]

Re: Which one would get the highest priority? The ON LOSTFOCUS o

Posted: Tue Nov 04, 2008 8:18 pm
by luisvasquezcl
Hello,
This issue is complicated because you have half the event Enter On, On Lostfocus that to some extent also caused me a little problem because when I put an event in the On Enter and switching to another key or mouse to control the event does not soared. Now if you get in the press and Lostfocus On escape the shooting event being that I do not need to do so, it tends to create some problems.
Regarding the execution order of events should be the Lostfocus and then the Gotfocus, it would be logical.
Greetings,
Luis Vasquez.
Powered by google.

Re: Which one would get the highest priority? The ON LOSTFOCUS o

Posted: Wed Nov 05, 2008 4:48 am
by dhaine_adp
Thanks for the reply. Yes lostfocus event is troublesome sometimes, it's also a problem with Visual Basic. But there is always a work around to it.

Re: Which one would get the highest priority? The ON LOSTFOCUS o

Posted: Wed Nov 05, 2008 1:33 pm
by mol
I have a problem using ON LOST FOCUS/ ON GOT FOCUS.

In my opinion, something is wrong - I have 2 textboxes and procedures testing if entered value is OK.
I noticed, that function ON GOT FOCUS of second textbox is called before function ON LOST FOCUS of first textbox.
I've been used only keyboard, without touching mouse.

It's difficult to put my example, because it happened in big project...

Can you watch for this in hmg sources?

Marek