Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Set page size

  1. #1
    Join Date
    May 2006
    Posts
    5,380

    Set page size

    Hey guys, i want to let the user resize the app window but if it gets to a certan size then i want it to lock so it cant get any smaller

    i have half achived what i want with this code in page timer
    PHP Code:
    pSize Window.GetSize(Application.GetWndHandle());

    if 
    pSize.Width 630 then
    Window
    .SetSize(Application.GetWndHandle(), 630pSize.Height);
    end

    if pSize.Height 480 then
    Window
    .SetSize(Application.GetWndHandle(), pSize.Width480);
    end 
    but the problem is that if the user makes the app smaller than 630 x 480 it springs back to 630 x 480, is there any way of locking the window size when it reaches the above size, so the window wont go any smaller than 630 x 480,

    the above methood works but its very untidy, anyone got any suggestions
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    Perfect

    Cheers Worm
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    No cheers for me... I didn't even know the function existed until I came across a post from Dermot and Tig. They deserve the cheerios.

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. Changing the Page Size
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 02:31 PM
  3. Setting Page Transition Effects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-24-2003, 01:08 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 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