#include "Fivewin.ch"
#include "colores.ch"
Static oWindow
Static oBar
Static oFont
Static oFont2
Static oFont3
Static oFont4
Static nCP
Static nW
Function Main()
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-11
DEFINE FONT oFont2 NAME "TAHOMA" SIZE 0,-16
DEFINE FONT oFont3 NAME "CALIBRI" SIZE 0,-20
DEFINE FONT oFont4 NAME "CALIBRI" SIZE 0,-14
TestFldEx()
RELEASE oFont
RELEASE oFont2
RELEASE oFont3
RELEASE oFont4
Return nil
//----------------------------------------------------------------------------//
Function TestFldEx()
local oSay5
local oSay6
local nClrL := Rgb( 0, 188, 142 )
local oFld12
local oPoster
local cNomImg
DEFINE WINDOW oWindow FROM 20, 20 TO GetSysMetrics( 1 ) - 60, 1120 ;
PIXEL TITLE "Test Panels and FolderEx" ;
MENU MyMenu();
COLOR CLR_BLACK, Rgb( 224, 224, 224 )
oWindow:SetFont( oFont )
@ 1, 10 FOLDEREX oFld12 ;
PROMPTS "PRUEBA DE FOLDER", "OTRAS", "CONEXIONES RECIENTES" ; //, "CONEXIONES GUARDADAS", "CONEXIONES" PIXEL ;
OF oWindow SIZE 600, 600 ; //TRANSPARENT ;
FONT oFont4 COLOR CLR_WHITE //LEFT
WITH OBJECT oFld12
//:lNewPaint := .T.
:nFolderHeight := 24
:nRound := 0
:nSeparator := 0
:aGradSel := { { 1, CLR_WHITE, CLR_WHITE } }
:aGradUnSel := { { 1, CLR_WHITE, CLR_WHITE } }
:bClrText := { | o, n | if( n = o:nOption, ;
METRO_GRIS2, Rgb( 184, 184, 184 ) ) }
:aGradOver := { { 0.8, CLR_WHITE, CLR_WHITE }, { 0.2, nClrL, nClrL } }
:aGradOverUnSel := :aGradOver
:bChange := { || .F. }
//:AdjClient()
//:Refresh()
// :nFolderWidth := 128
:Default()
// :aDialogs[ 1 ]:bValid := { || .F. }
END
@ 0, 10 SAY oSay5 PROMPT "Esto es un Folder Pestaña 1" OF oFld12:aDialogs[ 1 ] ;
SIZE 250, 32 PIXEL ;
FONT oFont2 /*TRANSPARENT*/ VCENTER COLOR Rgb( 128, 128, 128 )
cNomImg:="http://drive.google.com/uc?export=view&id=10an-18yRqOyRljuIWZ2-OKXADIDoWrG-"
@ 83,70 BITMAP oPoster SIZE 290,400 PIXEL OF oFld12:aDialogs[ 1 ] NOBORDER ADJUST // CENTER ROUNDED
oPoster:SetBmp(cNomImg)
@ 5, 10 SAY oSay6 PROMPT "Esto es un Folder Pestaña 2" OF oFld12:aDialogs[ 2 ] ;
SIZE 250, 32 PIXEL ;
FONT oFont2 /*TRANSPARENT*/ VCENTER COLOR Rgb( 128, 128, 128 )
ACTIVATE WINDOW oWindow ;
VALID ( .T. )
Return nil
//----------------------------------------------------------------------------//
Function MyMenu()
Local oMnu
MENU oMnu
MENUITEM FwString( "Acciones" )
MENUITEM FwString( "Editar" )
MENUITEM FwString( "Ver" )
MENUITEM FwString( "Ayuda" )
ENDMENU
Return oMnu
//----------------------------------------------------------------------------//