Results 1 to 5 of 5

Thread: auto change screen area 800x600 pixels

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Location
    Malayisa
    Posts
    7

    Lightbulb

    I am looking at an API coding how to auto set user screen area to 800x600 pixels when my application
    is running, resume to original setting when exit program.

    Anyone can kindly post it out.

    Thanks

  2. #2
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    This module will do the changing part.
    Stand by, there's more coming...
    Attached Files Attached Files
    "Today's mighty oak is just yesterday's nut,
    that held its ground."

  3. #3
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    This will get the current color depth...
    Attached Files Attached Files
    "Today's mighty oak is just yesterday's nut,
    that held its ground."

  4. #4
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    And I think this is correct for getting the current screen resolution:

    Screen.Width / 15
    Screen.Height / 15
    "Today's mighty oak is just yesterday's nut,
    that held its ground."

  5. #5
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    I have combined the above into one module with 3 public functions:

    SaveCurrentSettings
    ChangeRes
    RestoreOldSettings

    Here it is:
    Attached Files Attached Files
    "Today's mighty oak is just yesterday's nut,
    that held its ground."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width