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
Been thanked: 1 time

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

Post by dhaine_adp » Tue Nov 04, 2008 12:30 pm

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: 5149
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 124 times
Been thanked: 126 times
Contact:

Post by Rathinagiri » Tue Nov 04, 2008 2:10 pm

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: 1021
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 11 times
Been thanked: 14 times
Contact:

Post by luisvasquezcl » Tue Nov 04, 2008 8:18 pm

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
Been thanked: 1 time

Post by dhaine_adp » Wed Nov 05, 2008 4:48 am

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: 2801
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 112 times
Been thanked: 52 times
Contact:

Post by mol » Wed Nov 05, 2008 1:33 pm

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