Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blocking TABing to a page tab
Message
From
13/05/1998 16:18:11
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, United States
 
 
To
13/05/1998 15:44:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00099118
Message ID:
00099201
Views:
18
>
>Neither PageFrame, nor Page have a GotFocus() method.
>Bob

Actually you can have a gotfocus for a page object and it will solve your problem by having a WhateverControl.setfocus() in the gotfocus event. However, you have to put it in manually (use whateverform.scx) and put the code in the methods field for the pageframe object in the form using:

PROCEDURE Page1.GotFocus
WhateverControl.setfocus()
ENDPROC

then compile the form using the compile form command.

The worst part of using this technique however is that the next time you save your form in the form designer your gotfocus code will be wiped out, so you would have to write a program to automate this an run it everytime you save the form using the form designer.

Murray
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform