1. #1
    Member Follow User Gallery
    Join Date
    Dec 2004
    Location
    Ypsilanti, MI
    Age
    46
    Posts
    79

    Default Subpallete Manipulation

    Hello,
    I'm just getting into ZScripting and looking for a way to either:

    A] automatically hide/collapse the left/right subpalettes regardless of it's current state (thus, toggling won't work with IClick)

    B] test the status of two subpalettes and then toggle them as needed.

    I've tried the following routine with the left palette (1000):
    ISetStatus,IKeyPress,IClick,IToggle,IKeyPress,IClo se,ISet,IMinimize.

    None seem to do what I'm looking for. Any advice?

    Thanks

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

    Default

    This works for me:

    [CODE][IButton,LeftToggle,,
    [IClick,1000]
    ,,,'j']

    [IButton,RightToggle,,
    [IClick,1001]
    ,,,'k'][/CODE]

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

    Default

    This tests for the state before opening or closing both as necessary:

    [CODE][IButton,CloseBoth,,
    [If,[IHPos,1000]>0,
    [IClick,1000]]
    [If,[IHPos,1001]<[IHPos,CLOSE],
    [IClick,1001]]
    ,,,'j']

    [IButton,OpenBoth,,
    [If,[IHPos,1000]=0,
    [IClick,1000]]
    [If,[IHPos,1001]>=[IHPos,CLOSE],
    [IClick,1001]]
    ,,,'k'][/CODE]

  4. #4
    Senior Member Follow User Gallery
    Join Date
    May 2006
    Location
    Wales
    Age
    50
    Posts
    277

    Default

    Thank you marcus just what i was looking for i was finding it a pain having to do them 1 by 1

  5. #5
    Member Follow User Gallery
    Join Date
    Dec 2004
    Location
    Ypsilanti, MI
    Age
    46
    Posts
    79

    Default

    Works like a charm. What threw me was getting the right IF statements. Thanks for your help.

Posting Permissions

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