Set page size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RizlaUK
    Indigo Rose Customer
    • May 2006
    • 5552

    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
    Embrace change in your life, you never know, it could all work out for the best
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    have you tried this

    Comment

    • RizlaUK
      Indigo Rose Customer
      • May 2006
      • 5552

      #3
      Perfect :yes

      Cheers Worm
      Embrace change in your life, you never know, it could all work out for the best

      Comment

      • Worm
        Indigo Rose Customer
        • Jul 2002
        • 3971

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

        Comment

        Working...
        X