Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2006
    Posts
    23

    Screen size detection

    Hi

    I have created a project suitable for 1280 x 1024 resolution. It is being reviewed and I've been asked if it can be viewed at a smaller screen size.

    Is there something that can be done in the software to auto detect the users screen size?

    I hope someone can help
    Martin

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Yes-

    Code:
    tbl_display = System.GetDisplayInfo();
    width=tbl_display.Width;
    height=tbl_display.Height;
    Search the forum for "re-size" you'll find loads of stuff

  3. #3
    Join Date
    Dec 2006
    Posts
    23
    Thanks, where do I put the code, and will this resize my project to the users screen size?

    Cheers
    Martin

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    The code is in answer to your question "Is there something that can be done in the software to auto detect the users screen size" it doesn't do anything about re-sizing the application but as I said, if you search the forum you'll find loads of stuff and some examples as well.

    Personally I always put this in the application startup, but it will work anywhere.

  5. #5
    Join Date
    Dec 2006
    Posts
    23
    Thanks again. I've found a resize example and I can set my pages to resize and the objects within scale with it. Which is great.

    I pasted the code you supplied in the on -startup actions and it doesn't do anything. Is this correct?

    Martin

  6. #6
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    It only stores the user's Screen width and height in the variables width and hight.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  7. #7
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    The code below, on startup, should give you the proper screen size.
    However keep in mind, as you resize your page, all objects on the page may also need resizing. It can be somewhat daunting if you didn't allow for this at design time...

    Code:
    WndHandle=Application.GetWndHandle()
    SysInfo = System.GetDisplayInfo()
    Window.SetPos(WndHandle, 0, 0)
    Window.SetSize(WndHandle, SysInfo.Width, SysInfo.Height)
    hth
    Last edited by holtgrewe; 12-09-2008 at 12:13 PM. Reason: typo

  8. #8
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    --Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].
    while 1==1 do
    Dialog.Message("Oh", "oooh....");
    end
    OMG LMAO! I can't stop laughing...

  9. #9
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by Centauri Soldier View Post
    OMG LMAO! I can't stop laughing...
    hehe never heard that one before have yah?:P
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Resize all buttons and text for different screen resolutions
    By p-rposters in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 02-19-2008, 03:32 PM
  3. How to determine screen size of menu???
    By Beyonder in forum AutoPlay Media Studio 6.0
    Replies: 12
    Last Post: 10-10-2006, 12:58 AM
  4. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM

Posting Permissions

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