- Code: Select all Expand view
#include "fivewin.ch"
function main()
local oDlg, cCombo := 9, oBtn
local aItems :={ "DMPAPER_LETTER ", ;
"DMPAPER_LETTERSMALL ", ;
"DMPAPER_TABLOID ", ;
"DMPAPER_LEDGER ", ;
"DMPAPER_LEGAL ", ;
"DMPAPER_STATEMENT ", ;
"DMPAPER_EXECUTIVE ", ;
"DMPAPER_A3 ", ;
"DMPAPER_A4 ", ;
"DMPAPER_A4SMALL ", ;
"DMPAPER_A5 ", ;
"DMPAPER_B4 ", ;
"DMPAPER_B5 ", ;
"DMPAPER_FOLIO ", ;
"DMPAPER_QUARTO ", ;
"DMPAPER_10X14 ", ;
"DMPAPER_11X17 ", ;
"DMPAPER_NOTE ", ;
"DMPAPER_ENV_9 ", ;
"DMPAPER_ENV_10 ", ;
"DMPAPER_ENV_11 ", ;
"DMPAPER_ENV_12 ", ;
"DMPAPER_ENV_14 ", ;
"DMPAPER_CSHEET ", ;
"DMPAPER_DSHEET ", ;
"DMPAPER_ESHEET ", ;
"DMPAPER_ENV_DL ", ;
"DMPAPER_ENV_C5 ", ;
"DMPAPER_ENV_C3 ", ;
"DMPAPER_ENV_C4 ", ;
"DMPAPER_ENV_C6 ", ;
"DMPAPER_ENV_C65 ", ;
"DMPAPER_ENV_B4 ", ;
"DMPAPER_ENV_B5 ", ;
"DMPAPER_ENV_B6 ", ;
"DMPAPER_ENV_ITALY ", ;
"DMPAPER_ENV_MONARCH ", ;
"DMPAPER_ENV_PERSONAL ", ;
"DMPAPER_FANFOLD_US ", ;
"DMPAPER_FANFOLD_STD_GERMAN", ;
"DMPAPER_FANFOLD_LGL_GERMAN "}
DEFINE DIALOG oDlg FROM 2, 2 TO 18, 60 TITLE "Selezione formati di stampa" ;
STYLE nOr( DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, 4 )
@ 2, 2 COMBOBOX cCombo ITEMS aItems SIZE 200, 100 ON CHANGE PrnSetPage( nAT )
@ 3, 4 BUTTON "&Ok" OF oDlg SIZE 40, 12
@ 3, 12 BUTTON oBtn PROMPT "&Cancel" OF oDlg SIZE 40, 12 ;
ACTION ( MsgInfo( NaT ), lExit := .t., oDlg:End() )
ACTIVATE DIALOG oDlg CENTERED
return nil
1) non setta la pagina
2) non so come fare per darmi iparametri di lunghezza e larghezza