Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with setting focus in PageFrame
Message
From
01/12/1999 15:25:47
Jill Derickson
Software Specialties
Saipan, CNMI
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Trouble with setting focus in PageFrame
Miscellaneous
Thread ID:
00297513
Message ID:
00297513
Views:
69
Hello all,

I have a form w/a page frame with 3 tabs. I am having trouble when the user ends a text box entry w/the key, instead of . When is used,
the focus, appropriately, goes to the next input object. When is used, the focus goes to the page TAB.

I've been looking for things that control how keys are interpreted and I have:
SET COMFIRM OFF
SET KEYCOMP WINDOWS
I have no buttons with a DEFAULT property of .T.

Hacker's tells me that:

"In Windows, Enter chooses the default button. (Be aware that any button that has focus becomes the default button. When focus moves to an object other
than a button, the button whose Default property is .T. once again becomes the default. In other words, when a button has focus, pressing Enter chooses
that button, no matter which button is designated as the default.)"

I think this is where my problem is...and changing KEYCOMP to DOS actually does solve that specific problem, but I think, for other reasons, it's better to use KEYCOMP set to WINDOWS, yes?

Some additional details:

The data Page1 and Page2 are controled by the same set of buttons, FormBtns; Page3 has it's own set of buttons, Page3Btns.

The objects are set up as follows:
Form
|
|-----FormBtns
|
|-----PageFrame
|
| Page 1
|
| Page 2
|
| Page 3
|
| Page3Btns

In the activate/deactivate of Page 3 I set FormBtns to visible/not, enabled/not.

I suspect that when leaving a text box in page 3, somehow the "default" button is in FormBtns? and since they are invisble and disabled, focus gets set to the page tab instead of the next object on the page.

I even tried to put a RETURN 1 in the VALID of the textbox...same effect when leaving w/an .

Or maybe something else is happening that I'm missing.

Input/advice is appreciated. TIA!

J
Next
Reply
Map
View

Click here to load this message in the networking platform