showControl behavior



  • I did the same thing yesterday... posted help in the scripting forum... and then figured it out! 😂



  • @hisefilo We all do this - https://rubberduckdebugging.com/

    Here is another method. It uses the same principle as your code but can be expanded to include many more panels and buttons and would only require you to change 1 value.

    HiseSnippet 1162.3ocsWEtaaaCDlxwpnVqtnEXO.D8WxHcI1YscCHMnp1IYwXMIFyoAEnqHiVhxhHxjFRzowsH.8QZOB4QZuAYGEkrnSbBh+Q7OL7c7938w6Hu6buDgOMMUjfrpczzwTj0Sr6OkKi5DQXbT2sQVO0deRpjlf0pZOcLIMkFfrrV4OTJrpUEk84+dWaRLg6SKUgPGKX9zOvFwjkZG68mr33cIAziXiLr9Udc8E7NhXwDfOqX2DMl3eJYH8.hxrJ1HqGsS.SJR5KIRZJxpZaQvz9Qhux01eLKkMHlpDZg5CajV8th3.EiUZQchXwA8JN2oHXW5UFEVQGE9Y68YArY5KiFOKaAbIBy3gUk6hdsLoWy6O8rLnWUM8dtce+D1XY4JJt8S1c4PhJj.o.SZosEU4IUs6H.K3x0FQNktaBHLCg6aZ17k3W2rYiMq6T2IgNDyx9EjRRk3yHI3C939mz68GryG5i2Buwl30W+nHJlOYz.31gHDOlvowoqOXhTBXLQpWAP84uroo9bSKVntSnHA6x.4lahY32Z3RPd0UaT2460cvvG8N9Y1W.aKNTCoxNhQiEbPv8E8TV7hUcYq1pg5LoPk6u6BV6LStUbqkprlKSDwcHwwCfKnt9QD9PZl+ZroyEpyAiGy3Tb3DtujI3XCSb80veIDAhmPafyOQ5uiE9j3rHugTv4.cy4vZLd.87CCK1lFp7PWkNUJPaDVFQjXYBa3PZBM.DoX+b1Z5r0WeOV.ECqTjgHbv5IIbXuByzOKYpr+5YGMn0ho7gxnhDjxv7izbIp0RgGB4gN2PRbJsH5dyH7wpHiayBCtvjzrPraVjCu0V3V2tCCNedWJSffsJXodPpsJ6.AFt.ZjgtfH5DkBa6EFeKhsX.AVJzIVX2zj24hYWCD7CDR5gb2FNe2olyENWekvvEsT9QHllrnUUEQStCXt5WnE22xsCpkLewJ6auXkYsTe8qFCCE7tbl7vwT9sUBCk+TCJlUImTfoxrRYOMuTlNxhXPEqZ1ZgVnLFCJdTQ6DzR.eiE.+ic2lHIphp4TBn4XZhjoh.VaSOC5VoKwVydaZ5oRwXHPMq7.z.5dv5ym0R6xddSK6usm2WYAxnRE+iWDkMLxn03a8PFNyQ6r5EU6U2Yy70isy9soq9QaCW482WyU68iq6JuXOljNpnaaYLpT6FlpkzykkFe0UWQUZOq3Rh0JKCw2vj3dFD+xOcMh+u2f3WF3MPjDPS5y9lwvCO6FGmqZtviiV8sP7p2iaUFoW17oWzM6TCyKHBlDSjyODgZxo7Ef2py0sV0QlmxjSMmr5AYxh6KcetcOlzOZw7sxB3q5c9CLeymSqt8NggTeYIYqZu6md3GJC8WhIRFe39DnK.bgv9fIi5C2w7o.S3pFPfNqJpBVZ4lJYUjoOkGjI.OgtJewVJYq7EaUrHZDwOQbRded0jfONSCvId1.w0fIyAY7r5jJdOBFO8DeeUf3W.luXDarzH90kFwqVZDudoQ7lkFwuszH986.g5+B79IRwH8yBPQucxZvXYsCm.2pxtAh9e.HjLlMC
    


  • @dustbro a classic!



  • @ustk true 🙂



  • @d-healey hehehe like that website. Cool snippet! Saving into my snippet folder 🙂



  • Is showControl(bool) more efficient than the set("visible", bool)method ? I'm always using the latter...



  • @ustk I'm pretty sure that they are equal in terms of efficiency. It wouldn't suprise me if showControl is just syntactic sugar for set(visible) or vice versa.





  • @d-healey just what i needed, seems to be an elegant solution for my new project... will try it, again thanks a lot David!

    "Here is another method. It uses the same principle as your code but can be expanded to include many more panels and buttons and would only require you to change 1 value."



  • @d-healey Thank You David, Very Handy Script 🙂


Log in to reply
 

18
Online

1.6k
Users

4.6k
Topics

42.7k
Posts