INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Reports

Create your own report preview toolbar by Mike Lewis
Posted: 23 Nov 03 (Edited 16 Nov 06)

If you are not happy with the toolbar that controls the report preview screen, why not build your own? This FAQ does not give step-by-step instructions for creating a toolbar, but it will give you an idea of what code to put in the Click events of some of the buttons.

The following code should go in the various page navigation buttons:

CODE

KEYBOARD "{PGDN}"  && next page
KEYBOARD "{PGUP}"  && previous page
KEYBOARD "{HOME}"  && first page
KEYBOARD "{END}"   && previous page
To open the "Go to page" dialogue:

CODE

KEYBOARD G

To jump to a particular page, add the page number and the Enter key to the above command, for example:

CODE

KEYBOARD "G9{ENTER}"  && go to page 9

And finally, to toggle the zoom factor:

CODE

KEYBOARD "Z"

You can't mimic the full functionality of the built-in toolbar, but with the above code, you can get most of the way there.
________________________

Mike Lewis
Edinburgh, Scotland
www.ml-consult.co.uk

Back to Microsoft: Visual FoxPro FAQ Index
Back to Microsoft: Visual FoxPro Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close