-
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
-
This works for me:
[CODE][IButton,LeftToggle,,
[IClick,1000]
,,,'j']
[IButton,RightToggle,,
[IClick,1001]
,,,'k'][/CODE]
-
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]
-
Thank you marcus just what i was looking for i was finding it a pain having to do them 1 by 1
-
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
-
Forum Rules