Difference between revisions of "PUSH KEY"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) (→Products) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Puts ON KEY LABEL settings on the stack | Puts ON KEY LABEL settings on the stack | ||
Line 15: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ON | + | [[ON()]], [[ON KEY]], [[POP KEY]], [[SET COMPATIBLE]] |
Line 34: | Line 27: | ||
return | return | ||
− | + | procedure proc1 | |
− | @ 5,5 say "PROC 1 -- Pop'd The On Key Label" | + | @5,5 say "PROC 1 -- Pop'd The On Key Label" |
return | return | ||
− | + | procedure proc2 | |
− | @ 6,6 say "PROC 2 -- Resetting The On Key Label" | + | @6,6 say "PROC 2 -- Resetting The On Key Label" |
− | pop key | + | pop key |
return | return | ||
</code> | </code> | ||
Line 46: | Line 39: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Keyboard Events]] | ||
+ | [[Category:Keyboard Events Commands]] |
Latest revision as of 16:01, 12 November 2009
Purpose
Puts ON KEY LABEL settings on the stack
Syntax
PUSH KEY [CLEAR]
See Also
ON(), ON KEY, POP KEY, SET COMPATIBLE
Description
The PUSH KEY command is used to place all ON KEY LABEL command settings on a stack in memory. These key assignments are then effectively saved and can then be changed while still allowing the original assignments to be restored with the POP KEY command. SET COMPATIBLE should be set to ON when using this command.
CLEAR
Including the CLEAR clause saves all current ON KEY LABEL assignments to the stack and then clears the current assignments.
Example
clear all on key label f10 do proc1 push key clear on key label f10 do proc2 read return procedure proc1 @5,5 say "PROC 1 -- Pop'd The On Key Label" return procedure proc2 @6,6 say "PROC 2 -- Resetting The On Key Label" pop key return
Products
Recital