#include "FiveWin.ch"
function Main()
local oDlg, oFld, oGet, cTest := "Hello world", cAnother := "Another GET"
LOCAL nWidth := 190
LOCAL nHeight := 120
LOCAL nTop := 0
LOCAL nLeft := 0
LOCAL lPixel := .T.
LOCAL lDesign := .F.
// TFolderEx
LOCAL aPrompts := {"&One", "&Two", "&Three"}
LOCAL aBitmaps := {}
// DEFAULT
LOCAL nFolderHeight := 25
LOCAL aHelps
LOCAL nRound := 3
LOCAL bAction
LOCAL bClrTabs
LOCAL bClrText
LOCAL aAlign
LOCAL lAdjust := .F.
LOCAL nSeparator := 3
LOCAL nOption := 1
LOCAL bPopUp
LOCAL lStretch := .F.
LOCAL cLayOut := "TOP"
LOCAL bBmpAction
LOCAL nBright := 0
LOCAL lAnimate := .F.
LOCAL nSpeed
LOCAL oFont
LOCAL lTransparent := .F.
LOCAL aDialogs
LOCAL lBorder := .T.
LOCAL nClrPane := CLR_WHITE
LOCAL cVarName
DEFINE DIALOG oDlg SIZE 400, 300
* #define Original
#ifdef Original
@ 3, 5 FOLDEREX oFld PIXEL ;
PROMPT "&One", "&Two", "&Three" ;
SIZE 190, 120
#else
* #define Use_normal
#ifdef Use_normal
oFld := TFolderEx() :New( 3, 5, nWidth , nHeight , oDlg, ;
aBitmaps, lPixel, lDesign, aPrompts, nFolderHeight, ;
aHelps, nRound, bAction, bClrTabs, bClrText, aAlign, ;
lAdjust, nSeparator, nOption, bPopUp, lStretch, ;
cLayOut, bBmpAction, nBright, lAnimate, nSpeed, oFont, ;
lTransparent, aDialogs, lBorder, nClrPane, cVarName )
#else
oFld := TFolderDXE() :New( 3, 5, nWidth , nHeight , oDlg, ;
aBitmaps, lPixel, lDesign, aPrompts, nFolderHeight, ;
aHelps, nRound, bAction, bClrTabs, bClrText, aAlign, ;
lAdjust, nSeparator, nOption, bPopUp, lStretch, ;
cLayOut, bBmpAction, nBright, lAnimate, nSpeed, oFont, ;
lTransparent, aDialogs, lBorder, nClrPane, cVarName )
oFld:SetDriveIcon(,1)
oFld:SetDriveIcon(,2)
oFld:SetDriveIcon(,3)
oFld:nDlgCode := DLGC_WANTALLKEYS
#endif
#endif
@ 1, 1 GET oGet VAR cTest OF oFld:aDialogs[ 1 ]
@ 2, 1 GET cAnother OF oFld:aDialogs[ 1 ]
@ 7.2, 14 BUTTON "Ok" ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oGet:SetFocus(), .F. )
return nil