Alpha Video Training
Results 1 to 7 of 7

Thread: Screen Resolution

  1. #1
    Jeff, Richards
    Guest

    Default Screen Resolution

    I know that this has been discudded before. But I can't finf an answer.
    I designed a database on a 600x800 resolution screen.
    I want to use it on a laptop with a resoultion of 1400x1050.
    Is there an easy way to do this?

  2. #2
    Member
    Real Name
    Rupert Phelps
    Join Date
    May 2000
    Posts
    171

    Default RE: Screen Resolution

    There is an article at learnalpha.com that might help.
    http://learnalpha.com/AlphaTips/DesignForMultipleScreenSizes.htm

  3. #3
    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

    Jeff:

    What are you trying to achieve?

  4. #4
    Jeff, Richards
    Guest

    Default RE: Screen Resolution

    With the laptop set at 1400 x1050 the application only takes up about 3/4 of the screen. I'm trying to use the same application on 2 different computers with 2 different screen resolutions, without re-doing all of my forms.

  5. #5
    "Certified" Alphaholic
    Real Name
    Ohlen Cartmell
    Join Date
    Apr 2000
    Posts
    1,599

    Default RE: Screen Resolution

    With the help of the articles on learnalpha.com and some coaching from Selwyn, I have this script which I called "formsize".

    dim number as n
    dim i as n
    dim f as p
    dim percntw as n
    dim percnth as n
    dim SizeH as n
    dim SizeW as n
    dim name as c
    sizeH=UI_info(1)
    sizeW=ui_info(0)
    percntH = ((sizeH - 480) / 480)+1
    percntW = ((sizeW - 640) / 640)+1
    number = topparent.children()
    for i = 1 to number
    f = topparent.child(i)
    if eval_valid("f.object.top") = .f. then
    goto skip
    end if
    f.object.top = f.object.top * percnth
    f.object.height = f.object.height * percnth
    f.object.left = f.object.left * percntw
    f.object.width = f.object.width * percntw
    if f.class() = "text" .or. f.class() ="field" \
    .or.f.class() = "Button" .or. f.class() = "Radio" \
    .or.f.class()="twostbtn".or.f.class()="multistbtn" then
    f.font.size = f.font.size * percnth
    end if
    if f.class() = "Browse" then
    f.title.font.size = f.title.font.size * percnth
    end if
    if f.class() = "Tabbed" then
    f.tabs.font.size = f.tabs.font.size * percnth
    f.tabs.height = f.tabs.height * percnth
    f.tabs.width = f.tabs.width * percntw
    end if
    skip:
    next i
    end

    In the oninit event of the form place"

    script_play("formsize")

    This will open the form in full screen mode expanding the objects to fill the screen. However, if the form contains RTF's or RT objects or browses, it won't work well. For those cases, create forms in different sizes and in the onit event test for the screen resolutin and then open the form that fills the screen.

    Ohlen

  6. #6
    Jeff, Richards
    Guest

    Default RE: Screen Resolution

    Will this script work on a laptop with a resolution of 1400 x1050?

  7. #7
    "Certified" Alphaholic
    Real Name
    Ohlen Cartmell
    Join Date
    Apr 2000
    Posts
    1,599

    Default RE: Screen Resolution

    Dunno
    The original script on learnalpha.com was aknowledged to be less than perfect on a laptop. Give it a try and let us know.
    Ohlen

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 russ Boehle in forum Alpha Five Version 5
    Replies: 5
    Last Post: 01-23-2003, 03:56 AM
  4. Screen resolution
    By Ed Barley in forum Alpha Five Version 5
    Replies: 4
    Last Post: 01-17-2003, 08:22 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
  •