<snip>
My question: how do you resize the scrolling area of the ScrollAreaGadget?
Thanks to Paul, here's a working version. Some might find it useful. Apparently the only way to resize the inner area of a ScrollAreaGadget at the moment is to re-make it and the gadgets within.
Code: Select all
If OpenWindow(0, 0, 0, 408, 308, 0, "ertyuj")
    If CreateGadgetList(WindowID())
        ScrollAreaGadget(1, 4, 4, 192, 142, 300, 250, 20, 0)
            ButtonGadget(2, 4, 4, 144, 242, "rtyhmn", 0)
            ButtonGadget(3, 152, 4, 144, 242, "blurp", 0)
            CloseGadgetList()
    EndIf
    
    While quit=0
        ev.l = WaitWindowEvent()
        While ev
            If ev=#WM_LBUTTONDOWN
                If foo=1
                    FreeGadget(1)
                    ScrollAreaGadget(1, 4, 4, 400, 300, 400, 300, 20, 0)
                        ButtonGadget(2, 4, 4, 194, 292, "rtyhmn", 0)
                        ButtonGadget(3, 202, 4, 194, 292, "blurp", 0)
                        CloseGadgetList()
                Else
                    FreeGadget(1)
                    ScrollAreaGadget(1, 4, 4, 192, 142, 300, 250, 20, 0)
                        ButtonGadget(2, 4, 4, 144, 242, "rtyhmn", 0)
                        ButtonGadget(3, 152, 4, 144, 242, "blurp", 0)
                        CloseGadgetList()
                EndIf
                foo = 1 - foo
            EndIf
            
            If ev.l=#PB_Event_CloseWindow
                quit = 1
            EndIf
            
            ev = WindowEvent()
        Wend
    Wend
    
    CloseWindow(0)
EndIf
End



 )
)