// C:\FWH..\SAMPLES\RADSILV.PRG - Cambiado en: 10/10/2022
#Include "FiveWin.ch"
// 'DLG_CHARPIX_W'
// 'DLG_CHARPIX_H'
#include "constant.ch"
#Define MEM_FILE "test.ini"
FUNCTION Main()
// RddSetDefault( "DBFCDX" )
// SetHandleCount( 100 ) // CLIPPER 16 Bits.
// SET DATE FORMAT "dd-mm-yyyy"
SET CENTURY ON
SET DATE BRITISH
SET TIME FORMAT TO "HH:MM:SS"
SET EPOCH TO YEAR( DATE() ) - 30
SET SOFTSEEK OFF
SET WRAP ON
SETCANCEL( .F. )
SET CONFIRM OFF
SET DELETED ON
SET _3DLOOK ON
SET UNIQUE OFF
SET ESCAPE OFF
SET EXACT ON // CONTROLA O :=, = e ==
SET EXCLUSIVE OFF
SET MULTIPLE OFF
Test()
RETURN NIL
FUNCTION Test()
LOCAL nDTxtColor := 192
LOCAL nBottom := 25
LOCAL nRight := 55
LOCAL nWidth := MAX( nRight * DLG_CHARPIX_W, 180 )
LOCAL nHeight := nBottom * DLG_CHARPIX_H
LOCAL cIniFile := cFilePath( GetModuleFileName( GetInstance() ) ) + MEM_FILE
LOCAL cSection := "HTML"
LOCAL aGet := ARRAY( 3 )
LOCAL oGrp := ARRAY( 2 )
LOCAL oSay[10]
LOCAL lCheck_HeaderExcel := .F.
LOCAL cTitulo1 := "Estrazioni", cTitle := "Salva"
LOCAL cTitulo2 := SPACE( 30 )
LOCAL oRad, nRadio, oFont, oBold, oBtnConfirm, oBtnClose, oDlg
DEFINE FONT oFont NAME "MS Sans Serif" SIZE 00, -12 BOLD
DEFINE FONT oBold NAME "MS Sans Serif" SIZE 00, -14 BOLD
DEFINE DIALOG oDlg SIZE nWidth, nHeight PIXEL TITLE cTitle ;
COLOR CLR_BLACK, CLR_WHITE TRANSPARENT FONT oBold
oDlg:lHelpIcon := .F.
@ 12, 05 SAY "Finestra: " of oDlg SIZE 50, 14 PIXEL FONT oBold UPDATE
@ 10, 55 GET aGet[1] VAR cTitulo1 of oDlg SIZE 150, 14 PIXEL
@ 28, 05 SAY "Scheda: " of oDlg SIZE 50, 14 PIXEL FONT oBold
@ 26, 55 GET aGet[2] VAR cTitulo2 of oDlg SIZE 150, 14 PIXEL
@ 40, 05 RADIO oRad VAR nRadio SIZE 130, 14 PIXEL UPDATE ;
ITEMS "&Salva su Pagina Web"
AEval( oRad:aItems, { | oRad | oRad:lTransparent := .T., ;
oRad:SetFont( oFont ), oRad:nClrText := nDTxtColor } )
@ 58, 10 GROUP oGrp[1] TO 100, 215 OF oDlg PIXEL TRANSPARENT
@ 110, 05 RADIOITEM "Salva come Foglio Excel" RADIOMENU oRad OF oDlg ;
SIZE 130, 14 PIXEL
AEval( oRad:aItems, { | oRad | oRad:lTransparent := .T., ;
oRad:SetFont( oFont ), oRad:nClrText := nDTxtColor } )
@ 125, 10 GROUP oGrp[2] TO 160, 215 OF oDlg PIXEL TRANSPARENT
@ 130, 15 CHECKBOX aGet[3] VAR lCheck_HeaderExcel OF oDlg SIZE 80, 10 ;
PIXEL FONT oFont PROMPT "Includi intestazioni" WHEN nRadio == 2 ;
COLORS nRgb( 250, 0, 0 ), nRgb( 72, 180, 215 ) UPDATE
@ 100, 10 BUTTON oBtnConfirm PROMPT "&Salva" of oDlg SIZE 45, 15 DEFAULT ;
ACTION ( oDlg:end( IDOK ) )
@ 100, 10 BUTTON oBtnClose PROMPT "&Annulla" of oDlg SIZE 45, 15 CANCEL ;
ACTION ( oDlg:End( IDCANCEL ) )
oDlg:bResized := < ||
LOCAL oRect := oDlg:GetCliRect()
oBtnConfirm:nTop := oRect:nBottom - 40
oBtnConfirm:nLeft := oRect:nRight - 210
oBtnClose:nTop := oRect:nBottom - 40
oBtnClose:nLeft := oRect:nRight - 110
RETURN NIL
>
ACTIVATE DIALOG oDlg CENTER ON INIT eval(oDlg:bResized)
oFont:End()
oBold:End()
IF oDlg:nresult == IDOK
//save
ENDIF
RETURN NIL
// FIN / END