Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress Event
Message
From
04/06/1999 19:13:11
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00226436
Message ID:
00226714
Views:
26
>>Thanks, but sorry to answer that even if I SetFocus to a control in my form... No way... The only possible solution for the moment is to click inside the window and then it traps my Keypress event (ESC key) !! Strange !!
>>
>>Gilles
>
>Gilles,
>
>How and where are you setting focus (from a menu, toolbar, command button and what method or event is the code in)? How are you confirming that focus got set where you think it did?

My Form is a "slide show" form and from a command button I Have this code :

_SCREEN.Visible = .F.
ThisForm.lft = ThisForm.Left
ThisForm.tp = ThisForm.Top
ThisForm.Hide()
ThisForm.AutoCenter = .F.
ThisForm.Caption = ""
ThisForm.Left = 0
ThisForm.Top = 0
ThisForm.cmdPref.Visible = .F.
ThisForm.Command1.Visible = .F.
ThisForm.cmdAuto.Visible = .F.
ThisForm.Text13.Visible = .T.
ThisForm.Vcr3.Visible = .F.
ThisForm.BackColor = RGB(0,0,0)
thisform.Width = sysmetric(1)
thisform.Height = sysmetric(2)+ 60
ThisForm.Resize()
ThisForm.AlwaysOnTop = .T.
ThisForm.Show()
ThisForm.Text13.SetFocus

After this command the screen use a timer to skip the base and display pictures every 5 seconds...
In the KeyPress Method of my Form I trap ESC key to stop running the slide show ---> impossible ?
I have to click first with the mouse on screen and then only I can use the ESC key...

Thanks for all your help !

Gilles
Gilles Azria
-------------------------------------------------
http://www.profiledatabase.com
http://www.photoprofile.ch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform