Hi guys!
I often use SET ESCAPE TO release window.
But, when user enters in upper menu of window, pressing ESCAPE causes coling window, now leaving upper menu.
Is it possible to detect if focus is on menu?
Regards, Marek
Is it possible to detect that my actual control is menu?
Moderator: Rathinagiri
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Is it possible to detect that my actual control is menu
Hi Mol
Regards
--
Esgici
Sorry, but what is this SET ESCAPE TOmol wrote:Hi guys!
I often use SET ESCAPE TO release window.
Regards
--
Esgici
Viva INTERNATIONAL HMG 
- Rathinagiri
- Posts: 5482
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Is it possible to detect that my actual control is menu
I think he talks about 'on key ESCAPE action...'.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Is it possible to detect that my actual control is menu
Sorry for my inaccuracy..
Of course, I meant:
When I activate top menu and press ESCAPE, whole window is closed, not only menu.
So, I need to change action of ESCAPE key to:
regards, Marek
Of course, I meant:
Code: Select all
ON KEY ESCAPE OF FORM_1 action DoMethod(ThisWindow.Name, "Release")
So, I need to change action of ESCAPE key to:
Code: Select all
if .not. ActivatedMenu
DoMethod(ThisWindow.Name, "Release")
endif