- Jun 6, 2020
- 11,559
- 4,422
Drawing Inspiration from @Erel's DDD - SpreadControlsHorizontally, I tried to build two function I need very often and sharing here with everyone!
What can you do with this class:
1. Spread controls horizontally or vertically
2. Spread controls without altering their height or width
3. Spread controls with or without space in between
4. Align and spread controls wrt first control
SpreadHorizontally
'Spreads the controls horizontally.
'Parameters: pnl, max, gap, align
'#0 Panel with controls in it
'#1 Maximum size of each control (0 for no maximum, -1 to retain size),
'#2 Minimum gap between controls
'#3 Align with first control ( "top", "bottom", "center")
SpreadVertically
'Spreads the controls Vertically.
'Parameters: pnl, max, gap, align
'#0 Panel with controls in it
'#1 Maximum size of each control (0 for no maximum, -1 to retain size),
'#2 Minimum gap between controls
'#3 Align with first control ( "left", "right", "center")
Usage:
Install the...
What can you do with this class:
1. Spread controls horizontally or vertically
2. Spread controls without altering their height or width
3. Spread controls with or without space in between
4. Align and spread controls wrt first control
SpreadHorizontally
'Spreads the controls horizontally.
'Parameters: pnl, max, gap, align
'#0 Panel with controls in it
'#1 Maximum size of each control (0 for no maximum, -1 to retain size),
'#2 Minimum gap between controls
'#3 Align with first control ( "top", "bottom", "center")
SpreadVertically
'Spreads the controls Vertically.
'Parameters: pnl, max, gap, align
'#0 Panel with controls in it
'#1 Maximum size of each control (0 for no maximum, -1 to retain size),
'#2 Minimum gap between controls
'#3 Align with first control ( "left", "right", "center")
Usage:
Install the...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید