How to use it
Create Views
Add a DesktopContainer Control to your Contents (Insert > Container)
Set Name to MyView and Super to ViewController
Insert
Opening
-Event Handler (Insert > Event Handler...) and initialize MyView:
// 50 = collapsed Height
// 250 = expanded Height
Init(50, 250)
Drag and Drop some Controls you want to MyView
Drag and Drop a DesktopDisclosureTriangle and add this Code to his
ValueChanged
-Event:
Expand(Not Expanded)
Create Stack
Add a DesktopContainer Control to your Contents (Insert > Container)
Set Name to MyStackView and Super to StackController
Drag and Drop all Views (you created in step before) into MyStackView
Insert
Opening
-Event Handler (Insert > Event-Handler...) and initialize MyStackView:
If Not Self.AutoSetup Then
// do this for each View you droped into MyStackView
Views.Add(MyView1)
Views.Add(MyOtherView1)
End If
Create Scroll Container
Add a DesktopContainer Control to your Contents (Insert > Container)
Set Name to MyScrollView
Set Super to ScrollController
Drag and Drop MyStackView into MyScrollView (you don't need to set the position for your controls)
Insert
Opening
-Event Handler (Insert > Event Handler...) and initialize MyScrollView:
If Not Self.AutoSetup Then
Init(MyStackView1)
End If
Use it within your App
Drag and Drop MyScrollView into your Window
Press Run or Compile
Finished
Last updated