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

Source code related resources

Moderator: Rathinagiri

Post Reply
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

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

Post 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?
Regards,

Danny
Manila, Philippines
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

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

Post 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> ]
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

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

Post 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.
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

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

Post 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.
Regards,

Danny
Manila, Philippines
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post 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
Post Reply