Software Archive
Read-only legacy content
Annonces
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Sending screen graphics to printer

Intel_C_Intel
Employé
628 Visites
My co-worker Dan Porga wrote a QuickWin program, but to print, we press CTRL-PrintScreen, Paste the clipboard into MS PhotoEditor and then print the resulting BMP.

Although this works fine, it's tedious. Is there code that will automate this for us? Ideally, we'd like to click on a "Print" button and have the screen sent to the printer, without having to fool with the clipboard and PhotoEditor.

TIA.
0 Compliments
4 Réponses
Steven_L_Intel1
Employé
628 Visites
Um, what about the File..Print menu item in the QuickWin window? I think you can also use CLICKMENUQQ with the WINPRINT function code to have this under program control.

Steve
0 Compliments
Intel_C_Intel
Employé
628 Visites
Steve,

I have tried your suggestion for putting printing from QuickWin under program control without success. The problem is that in the call:

result = CLICKMENUQQ (item)

Item may only have the values 1 to 4 as given in DFLIB.F90

? QWIN$STATUS - Status command item = 1
? QWIN$TILE - Tile command item = 2
? QWIN$CASCADE - Cascade command item = 3
? QWIN$ARRANGE - Arrange Icons command item = 4

I have tried to fool it by shifting the position of items in the menu, but it is not deceived. Other values of item cause access violations.

Any ideas, or is another routine akin to Fortran_WinPrint needed?
0 Compliments
Steven_L_Intel1
Employé
628 Visites
Use CLICKMENUQQ(LOC(WINPRINT)) - sorry for missing that detail. I know it's not documented, but it works.

Steve
0 Compliments
Intel_C_Intel
Employé
628 Visites
Steve,

It now works perfectly - many thanks!
0 Compliments
Répondre