Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the best way to change buttons on a tool bar?
when making a dynamic tool bar where the buttons change based on the current screen, is it better to hide the buttons that are not in use and unhide them when the screen is loaded, or is it better to make an overlay over the area where the toolbar is and load a different toolbar overlay for each screen?

I am making a new interface and I started out hiding buttons, but it is making less and less sense the more screens I develop.

Just looking for opinions.

The overlay scenario is going to bite you because you cannot target any other widgets outside of the overlay, with the exception in the latest betas of the LoadSiblingOverlay command that allows you to load an overlay that is a sibling of the overlay that contains the button pressed.

If all you need to do (in terms of interacting with other widgets) from those toolbar buttons is to load some other overlay, then you'd be ok doing that.
Dean Roddey
Explorans limites defectum

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to change the listening port for the CQC server? ghurty 3 1,235 04-23-2020, 05:54 PM
Last Post: Dean Roddey
  Pico Buttons simplextech 10 2,767 01-07-2020, 05:06 PM
Last Post: simplextech
  Stupid question: How can I read a motion or other field state change ghurty 10 4,157 01-10-2019, 10:10 AM
Last Post: Dean Roddey
  Hiding Command Buttons on template kfly 5 2,919 12-14-2018, 06:52 PM
Last Post: Dean Roddey
  GetCurMillis immune to system time change? rbroders 6 2,586 12-09-2018, 02:58 PM
Last Post: rbroders
  Trapping Elk F5/F6 Buttons IVB 29 9,836 03-04-2018, 03:41 PM
Last Post: Dean Roddey
  Simple field change trigger action Bugman 15 9,852 10-23-2017, 11:55 AM
Last Post: Dean Roddey
  ISY Driver not able to change value on a specific switch Sendero 9 6,001 07-18-2017, 09:54 AM
Last Post: Dean Roddey
  Timed Fld Change on ISYV2 failing Shaky 15 4,518 02-01-2016, 07:01 PM
Last Post: Shaky
  field change event not working indygreg 3 2,428 01-29-2016, 10:46 AM
Last Post: Dean Roddey

Forum Jump:

Users browsing this thread: 1 Guest(s)