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

grey background for tab #114

Closed jbadham closed 9 years ago

jbadham commented 9 years ago

created 2 tabs - comms is grey background and t1 is white

to setup-interface

  xw:clear-all

;--- 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 "t1"
  [ xw:set-order 2
    xw:set-title "Advanced parameters"
  ]
nicolaspayette commented 9 years ago

This was due to the xw:ask remove "T1" xw:widgets [ xw:set-color white - 1] line at the end of the setup-interface procedure. The white - 1 just made the background of the tab look unexpectedly gray.