widgets intended for separate tabs are on same tab
Closed this issue · 0 comments
jbadham commented
Controls created for two separate tabs are being created in the same tab despite a change in tab focus as the new tab is created.
;--- Communication plan
xw:create-tab "comms"
[ xw:set-order 1
xw:set-title "Communications Plan"
]
xw:create-slider "tcommsl-rate" [
xw:set-label "Travel rate"
xw:set-y 70
xw:set-increment 0.05
xw:set-maximum 0.5
]
;--- Scenario Context
;--- Advanced Parameters
xw:create-tab "advpar"
[ xw:set-order 3
xw:set-title "Advanced parameters"
]
; Operational parameters
xw:create-note "advpar-h1"
[ xw:set-text "Operational parameters"
xw:set-y 10
]
xw:create-slider "xw-see-distance"
[ xw:set-label "See distance"
xw:set-y 20
xw:set-minimum 1
xw:set-maximum 5
xw:set-increment 1
]