- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Vertical Alignment for Line Up Box
I'm combining text box, number edit box and button box in a lineup box alignment but ended up getting a display which is not necessarily straight (see snapshot). Is there a way to address this so that each box are align proportionally ?
new window("Test",
line up box(ncol(3),
Text box("Variable 1"),Number edit box(0),Button box("Create Column"),
Text box("Variable 2"),Number edit box(0),TExt box(""),
Text box("Variable 3"),Number edit box(0),Button box("Create Column")
)
)
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Vertical Alignment for Line Up Box
Created:
Mar 16, 2021 10:51 AM
| Last Modified: Mar 16, 2021 8:06 AM
(2077 views)
| Posted in reply to message from Djtjhin 03-16-2021
The different objects have different dimensions, so what I do, is adjust them by using spacer boxes
new window( "Test",
line up box( N Col( 2 ),
V List Box(
Spacer Box( size( 0, 2 ) ),
H List Box(
Text Box( "Variable 1" ),
Number Edit Box( 0 )
)
),
Button Box( "Create Column" ),
H List Box(
Text Box( "Variable 2" ),
Number Edit Box( 0 )
),
Text Box( "" ),
V List Box(
Spacer Box( size( 0, 2 ) ),
H List Box(
Text Box( "Variable 3" ),
Number Edit Box( 0 )
)
),
Button Box( "Create Column" )
)
)
Jim
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Vertical Alignment for Line Up Box
Created:
Mar 16, 2021 10:51 AM
| Last Modified: Mar 16, 2021 8:06 AM
(2078 views)
| Posted in reply to message from Djtjhin 03-16-2021
The different objects have different dimensions, so what I do, is adjust them by using spacer boxes
new window( "Test",
line up box( N Col( 2 ),
V List Box(
Spacer Box( size( 0, 2 ) ),
H List Box(
Text Box( "Variable 1" ),
Number Edit Box( 0 )
)
),
Button Box( "Create Column" ),
H List Box(
Text Box( "Variable 2" ),
Number Edit Box( 0 )
),
Text Box( "" ),
V List Box(
Spacer Box( size( 0, 2 ) ),
H List Box(
Text Box( "Variable 3" ),
Number Edit Box( 0 )
)
),
Button Box( "Create Column" )
)
)
Jim