Hello,
CLIPSTACK works with a stack.
E.g. one can do with regard to the TSE or Microsoft Windows clipboard :
Push
Push
Push
...
Pop
Pop
Pop
as usual, so nesting is possible.
===
The idea is based on Carlo Hogeveen's 'clipbor2.zip'
But when I did run that a couple of days ago it needed also besides:
clipbord.s
These 5 extra files be present:
===
I thought that can maybe be done much simpler and less dependent on many other files,
so it could be reduced it to maybe zero or one .inc include file maximally,
So therefor 'clipstack' was created which needs
only 1 extra file to be present besides clipstack.s, that is:
clipstack.inc
===
Using
#INCLUDE[ "clipstack.inc" ]
is already pretty simple to implement.
===
I think I can even reduce it further to no include files
necessary, eg. a begin push and an end pop, I will maybe
look into that when I need it and when applicable.
===
That push and pop of TSE and Microsoft Windows clipboard content
is a very interesting idea, similar to
PushPosition()
PopPosition()
PushLocation()
PopLocation()
PushBlock()
PopBlock()
...
Here thus named (adding 'PROC' to avoid clashing with possible future TSE commands):
PROCPushClipboard()
PROCPopClipboard()
PROCPushClipboardWin()
PROCPopClipboardWin()
So I already worked forward to include the possibility that
Semware would implement it also, e.g. like these 4 native TSE functions:
PushClipboard()
PopClipboard()
PushClipboardWin()
PopClipboardWin()
as these are pretty often needed operations when programming TSE SAL.
Knud van Eeden