Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with setting focus in PageFrame
Message
De
01/12/1999 16:51:35
 
 
À
01/12/1999 15:25:47
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00297513
Message ID:
00297564
Vues:
25
Hi Jill,

I have no idea why the Enter key would set focus to the Page tab, but you can not allow focus to go to a Page tab by setting the Pageframe Tabstop property to .F.

By the way, avoid using the brackets for key names in the future. The HTML tag processor rendered the post almost unreadable because of them.


>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 Enter key, instead of Tab. When Tab is used,
>the focus, appropriately, goes to the next input object. When Enter 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 Enter.
>
>Or maybe something else is happening that I'm missing.
>
>Input/advice is appreciated. TIA!
>
>J
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform