CRESS-Surrey / eXtraWidgets

An extension for creating additional interface tabs in the NetLogo GUI and putting custom widgets on them.
MIT License
13 stars 4 forks source link

widgets intended for separate tabs are on same tab #116

Closed jbadham closed 9 years ago

jbadham commented 9 years ago

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
  ]