Alpha Video Training
Results 1 to 6 of 6

Thread: Screen Resolution

  1. #1
    "Certified" Alphaholic
    Real Name
    Russ Boehle
    Join Date
    Mar 2000
    Location
    Connecticut
    Posts
    2,767

    Default Screen Resolution

    Is there any way to change the screen resolution in win 98 and 2000 from within A5 (with Xbasic)?

    Russ

  2. #2
    Member
    Real Name
    Blake Watson
    Join Date
    Jan 2003
    Posts
    961

    Default RE: Screen Resolution

    Should be possible.

    You'd need to access the Windows API directly though. You want the ChangeDisplaySettings function.

  3. #3
    "Certified" Alphaholic
    Real Name
    Russ Boehle
    Join Date
    Mar 2000
    Location
    Connecticut
    Posts
    2,767

    Default RE: Screen Resolution

    Exactly,
    The problem I have is that most of our users have 15" CRT's and normally run 800X600. I develop on a 17" LCD that normally runs 1024X768 and looks crummy at 800X600. If the users could switch dynamically when they start Alpha it would solve a lot of problems. Some of the standard apps we use really don't work well at 1024X768 and Alpha seems best at 1024X768 or higher.

    The question is how to do it?

    Russ

  4. #4
    Volunteer Moderator drgarytraub's Avatar
    Real Name
    Dr. Gary Traub
    Join Date
    May 2000
    Location
    Boca Raton, FL
    Posts
    2,784

    Default RE: Screen Resolution

    Russ,

    Wouldn't it be best to develop on a machine with 800 x 600 resolution?

    If you "center" all forms, then apps developed at 800 x 600 look fine at 1024 x 768.

    Gary Traub

  5. #5
    "Certified" Alphaholic
    Real Name
    Russ Boehle
    Join Date
    Mar 2000
    Location
    Connecticut
    Posts
    2,767

    Default RE: Screen Resolution

    I have thought of this, but 1024X768 gives me a lot more flexibility with alpha, and going forward all monitor purchases will be 17" LCD so I'd like to start planning for that. Unfortunately there's no budget $ to buy them now. Also, my monitor, a 17" LCD looks lousy at 800X600 so I don't like to use it at that resolution.

    Russ

  6. #6
    Member
    Real Name
    Blake Watson
    Join Date
    Jan 2003
    Posts
    961

    Default RE: Screen Resolution

    Russ Boehle wrote:
    -------------------------------
    Exactly,
    The problem I have is that most of our users have 15" CRT's and normally run 800X600. I develop on a 17" LCD that normally runs 1024X768 and looks crummy at 800X600. If the users could switch dynamically when they start Alpha it would solve a lot of problems. Some of the standard apps we use really don't work well at 1024X768 and Alpha seems best at 1024X768 or higher.

    The question is how to do it?

    Russ

    It shouldn't be that difficult. In one of the manuals (and on the web-sites), there are examples of using the API; once you've gotten used to how it's you have only to deal with the general ickiness of the Windows API.

    The procedure would actually be a bit more involved than just the one call.

    1. Call EnumDisplaySettings with Mode 0 to find out the current resolution and color depth. This is important 'cause you'll want to switch back when your app exits; also you don't want to change the color depth.

    2. Call EnumDisplaySettings until you find a mode that supports the desired resolution and as close to the same color depth as possible.

    3. Call ChangeDisplaySettings to the mode found in step 2.

    4. Switch back to the mode you found resident in step 1.

    The only part I'm not really clear on--I'm new to Alpha 5--is how you'd get the Windows structures back. I 'spect it'd just be a big memory dump, somewhat difficult to handle in Xbasic but I don't know. I probably won't look into calling the API any sooner than this weekend.

Similar Threads

  1. Screen Resolution
    By Ray in forum Alpha Five Version 5
    Replies: 4
    Last Post: 04-15-2003, 03:53 PM
  2. screen resolution
    By Trixie dela Cena in forum Alpha Five Version 5
    Replies: 1
    Last Post: 02-07-2003, 03:38 PM
  3. Screen resolution
    By Ed Barley in forum Alpha Five Version 5
    Replies: 4
    Last Post: 01-17-2003, 08:22 PM
  4. Screen Resolution
    By Jeff, Richards in forum Alpha Five Version 5
    Replies: 6
    Last Post: 12-23-2002, 06:38 PM
  5. Screen Resolution Question
    By Tim Sutherland in forum Alpha Five Version 4
    Replies: 3
    Last Post: 10-17-2001, 04:16 PM

Bookmarks

Posting Permissions

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