1. #1
    New Member Follow User Gallery
    Join Date
    May 2009
    Posts
    12

    Default Probably bug- Strange behavior of switches with fixed width.

    Hi. When I set width of my switch it disable itself when I click it. Also sometimes on startup or random moments. Switches that are initially disabled can also enable itself after random actions. When width is set to auto switches works fine.

    [CODE]
    [ISwitch,"ZPlugin:mScripts:set1",0,"test",
    [Notebar,a],[Notebar,b]
    ,,0.16]

    [ISwitch,"ZPlugin:mScripts:set2",0,"test",
    [Notebar,a],[Notebar,b]
    ,,]
    [/CODE]

    Anyone had same problem?
    Last edited by Poniu; 03-24-13 at 09:18 PM.

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    That's interesting, I'd not realized switches were OK if the width was on auto. Switches in plugins can become disabled if another plugin is run. Enabling the switches at the end of your code (outside the switch) will correct this issue:
    [CODE]
    [ISwitch,"ZPlugin:mScripts:set1",0,"test",
    [Notebar,a],[Notebar,b]
    ,,0.16]

    [ISwitch,"ZPlugin:mScripts:set2",0,"test",
    [Notebar,a],[Notebar,b]
    ,,]

    [IEnable,"ZPlugin:mScripts:set1"]
    [IEnable,"ZPlugin:mScripts:set2"][/CODE]

  3. #3
    New Member Follow User Gallery
    Join Date
    May 2009
    Posts
    12

    Default

    Aww yiss! Now my switches works fine and finally I can create nice spacers using IDisable command. Thanks Marcus!

    Quote Originally Posted by marcus_civis View Post
    [CODE]IEnbale[/CODE]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •