Hi

Not sure if this is what your looking for but below is the code I use in
the Key Press event of the Page Frame used in a Telephone Application I
wrote some years ago.

Lparameters nKeyCode, nShiftAltCtrl
Local lnActivePage

If nKeyCode > 64 .And. nKeyCode < 91
        nKeyCode = nKeyCode + 32
Endif

Do Case
        Case nKeyCode = 3                         && Page Down pressed
                If Thisform.Pageframe1.ActivePage < 26

                        lnActivePage = Thisform.Pageframe1.ActivePage +
1
                Else
                        lnActivePage = 1
                Endif
        Case nKeyCode = 18                           && Page Up pressed
                If Thisform.Pageframe1.ActivePage > 1
                        lnActivePage = Thisform.Pageframe1.ActivePage -1
                Else
                        lnActivePage = 26
                Endif
        Case nKeyCode > 96 .And. nKeyCode < 123 && Letter between A & Z
pressed
                lnActivePage = nKeyCode -96
Endcase

Thisform.Pageframe1.ActivePage = lnActivePage
Goto Bottom && Diplay Page with Record set to bottom
Thisform.Refresh

Cheers

Peter
Peter Hart Computers


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Eurico Chagas Filho
Sent: 19 March 2007 13:46
To: 'ProFox Email List'
Subject: Caption Property

Hi

I have a form, a pageframe with two pages. On page two( pgp2) I have
another
pageframe(pgf2) with two pages(pg1 and pg2). I set the access key of the
captions of pg1 and pg2( \< ). When I use the key combination alt+letter
to access pg2 or pg1, the focus changes to a textbox on pgp2, but it
shows
the right page and I can tab to that page.
I would like to jump directly to pg1 or pg2. Any hints will be
appreciate.

TIA, E.

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.13/726 - Release Date:
3/18/2007
3:34 PM
 



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to