Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Short Popup Hot Keys not responding
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00817396
Message ID:
00819816
Views:
13
I ran it an it worked in the DE. I then modified it and added (in code) a ListView (no nodes) with a mouse up to fire the activation, and defined the popup in a procedure - just like my issue - and the shortcuts worked in the DE.

The thing I did different was IN WINDOW. I added that - and it still worked - the only thing that I haven't checked is that immediately after the activate, I issue a deactivate (don't ask why - cause I don't know - maybe superstition.

I'll ruminate it a little more. ... to be continued.

PS thanks

>>Sergey,
>>
>>I followed this up (well acidentally). I ran the exe (V7) from the "RUN" dialog, right clicked the list to activate the popup, and pressing the KEY cobination fired as expected.
>>
>>I closed the exe, and then ran it from inside VFP - and the KEYs did not respond. Same thing running from FXPs (no response).
>>
>>So, the popup KEY seems only to work when the EXE is "run" outside the VFP environment.
>>
>>Weird!
>>
>Hi Terry,
>
>Here's small test form with shortcut popup on right click. In EDE Ctrl+T works, ctrl+U don't because it's used on format menu.
PUBLIC oform1
>oform1=NEWOBJECT("form1")
>oform1.Show
>RETURN
>DEFINE CLASS form1 AS form
>	Caption = "Form1"
>	Name = "Form1"
>	PROCEDURE RightClick
>		DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL()
>		DEFINE BAR 1 OF shortcut PROMPT "sm1" ;
>			KEY CTRL+T, "CTRL+T"
>		DEFINE BAR 2 OF shortcut PROMPT "sm2" ;
>			KEY CTRL+L, "CTRL+U"
>
>		ON SELECTION BAR 1 of shortcut WAIT WIND "1"
>		ON SELECTION BAR 2 of shortcut WAIT WIND "2"
>
>		ACTIVATE POPUP shortcut
>	ENDPROC
>ENDDEFINE
>
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform