| See this topic, I think it would help you.
<<< ELKTRA::NOTESPUBLIC:[NOTES$LIBRARY]DW_EXAMPLES.NOTE;1 >>>
-< "DECwindows examples" >-
================================================================================
Note 379.16 SIXEL Print Screen Program 16 of 16
DGOSW0::FLEXAS 24 lines 25-JUN-1990 09:51
-< decterm hardcopy with F3 key >-
--------------------------------------------------------------------------------
I modified this program for a client who wanted to get the hardcopy
of the current focus decterm with pressing one key.
You can find the executable and the source of this program in:
dgosw0::dua1:[world]
N.B.: if you want to compile it tou must get the Jim West modified
X_.ada file (pointers on it in this topic I think).
This remix does:
- wait for pressing <F3> key,
- in this case, get position and size of the (Text-)Widget
which has the current input focus,
- create the SIXEL file of the hardcopy,
- and send this file in a printer queue (you must have define
the logical name "HARDCOPY_PRINT" with for example:
"print/nofeed/passall/queue=...".
For more explanation see decterm_print.ada or contact me or Jean-Marc
SVIGA (DGOSW0::SVIGA).
Hope it will help.
Yeye
|