cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

"ScrolledLayout" option in UI Dialogue

Newbie

"ScrolledLayout" option in UI Dialogue

! 21-jun-99 I-03-11 ked $$1 Created
! 09-Aug-99 I-03-13 ked $$2 Auto matching in template name input panel.
! Change checkbox label.
! 04-Oct-99 I-03-17 ked $$3 Layout changes
! 01-Nov-99 I-03-20 ked $$4 Set selection policy to Browse
! 12-Nov-99 I-03-21 ked $$5 Selection policy of "Single"
! 11-Jul-00 J-01-13 ked $$6 Increased max len of inp_string_param

(Dialog new_file_opts
(Components
(SubLayout lay_template)
(SubLayout lay_params)
(StdButton psh_ok)
(StdButton psh_cancel)
(CheckButton chk_create_drawing)
)

(Resources
(psh_ok.Label "OK")
(psh_cancel.Label "Cancel")
(chk_create_drawing.Label "Copy associated drawings")
(chk_create_drawing.AttachLeft True)
(chk_create_drawing.AttachBottom True)
(.Label "New File Options")
(.TopOffset 7)
(.BottomOffset 7)
(.LeftOffset 7)
(.RightOffset 7)
(.DefaultButton "psh_ok")
(.Layout
(Grid (Rows 1 1 0) (Cols 1)
lay_template
lay_params
chk_create_drawing
)
)
)
)

(Layout lay_template
(Components
(InputPanel inp_template_name)
(PushButton psh_browse)
(List lst_template_names)
)

(Resources
(inp_template_name.HelpText "Name of the template file used to create the new model.")
(inp_template_name.AttachTop True)
(inp_template_name.MatchLength 3)
(psh_browse.Label "Browse...")
(psh_browse.HelpText "Use a file browser to find template file.")
(psh_browse.AttachTop True)
(lst_template_names.Columns 0)
(lst_template_names.VisibleRows 5)
(.Label "Template")
(.Decorated True)
(.AttachLeft True)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.TopOffset 4)
(.BottomOffset 4)
(.LeftOffset 4)
(.RightOffset 4)
(.Layout
(Grid (Rows 1 1) (Cols 1)
(Grid (Rows 1) (Cols 1 0)
inp_template_name
psh_browse
)
lst_template_names
)
)
)
)

(Layout lay_params
(Components
(ScrolledLayout lay_scr_params)
)

(Resources
(.Label "Parameters")
(.Decorated True)
(.AttachLeft True)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.TopOffset 4)
(.BottomOffset 4)
(.LeftOffset 4)
(.RightOffset 4)
(.Layout
(Grid (Rows 1) (Cols 1)
lay_scr_params
)
)
)
)

(Layout lay_scr_params
(Components
(SubLayout lay_int_param)
(SubLayout lay_double_param)
(SubLayout lay_string_param)
(SubLayout lay_yes_no_param)
(SubLayout lay_material)
)

(Resources
(.VisibleRows 5)
(.AttachLeft True)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
)
)

(Layout lay_int_param
(Components
(InputPanel inp_int_param)
(Label lbl_int_param)
)

(Resources
(inp_int_param.MaxLen 80)
(inp_int_param.HelpText "Enter an interger for this parameter.")
(inp_int_param.InputType 2)
(lbl_int_param.Columns 10)
(lbl_int_param.AttachRight True)
(lbl_int_param.Alignment 1)
(lbl_int_param.LeftOffset 4)
(lbl_int_param.RightOffset 4)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.Layout
(Grid (Rows 1) (Cols 1 1)
lbl_int_param
inp_int_param
)
)
)
)

(Layout lay_double_param
(Components
(InputPanel inp_double_param)
(Label lbl_double_param)
)

(Resources
(inp_double_param.MaxLen 80)
(inp_double_param.HelpText "Enter a real number for this parameter.")
(inp_double_param.InputType 3)
(lbl_double_param.Columns 10)
(lbl_double_param.AttachRight True)
(lbl_double_param.Alignment 1)
(lbl_double_param.LeftOffset 4)
(lbl_double_param.RightOffset 4)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.Layout
(Grid (Rows 1) (Cols 1 1)
lbl_double_param
inp_double_param
)
)
)
)

(Layout lay_string_param
(Components
(InputPanel inp_string_param)
(Label lbl_string_param)
)

(Resources
(inp_string_param.MaxLen 80)
(inp_string_param.HelpText "Enter a string for this parameter.")
(lbl_string_param.Columns 10)
(lbl_string_param.AttachRight True)
(lbl_string_param.Alignment 1)
(lbl_string_param.LeftOffset 4)
(lbl_string_param.RightOffset 4)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.Layout
(Grid (Rows 1) (Cols 1 1)
lbl_string_param
inp_string_param
)
)
)
)

(Layout lay_yes_no_param
(Components
(RadioGroup rad_yes_no_param)
(Label lbl_yes_no_param)
)

(Resources
(rad_yes_no_param.HelpText "Specify boolean value for this parameter.")
(rad_yes_no_param.AttachTop False)
(rad_yes_no_param.AttachBottom False)
(rad_yes_no_param.Names "1"
"2")
(rad_yes_no_param.Labels "Yes"
"No")
(lbl_yes_no_param.Columns 10)
(lbl_yes_no_param.AttachRight True)
(lbl_yes_no_param.Alignment 1)
(lbl_yes_no_param.LeftOffset 4)
(lbl_yes_no_param.RightOffset 4)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.Layout
(Grid (Rows 1) (Cols 1 1)
lbl_yes_no_param
rad_yes_no_param
)
)
)
)

(Layout lay_material
(Components
(InputPanel inp_material)
(PushButton psh_browse_material)
(Label lbl_material)
)

(Resources
(inp_material.MaxLen 31)
(inp_material.HelpText "Enter the name of the material used for this model.")
(psh_browse_material.Label "Browse...")
(psh_browse_material.HelpText "Browse for material file on disk.")
(psh_browse_material.AttachRight True)
(lbl_material.Columns 10)
(lbl_material.AttachRight True)
(lbl_material.Alignment 1)
(lbl_material.LeftOffset 4)
(lbl_material.RightOffset 4)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
(.Layout
(Grid (Rows 1) (Cols 1 1 1)
lbl_material
inp_material
psh_browse_material
)
)
)
)
Announcements
LiveWorx Call For Papers Happening Now!