#include "FiveWin.ch"
#include "rfolder.ch"
Function Main()
Private oDlg1, oDlg2, oBtn1, oBtn2
DEFINE DIALOG oWin SIZE 800, 800 Title "Teste Folder"
ACTIVATE dialog oWin ON INIT TestFold(oWin)
Return nil
***********
FUNCTION TestFold(oWin)
@ 40,20 RFolder oFld of oWin Prompts "Page 1", "Page 2", "Page 3",;
"Linha 1", "Linha 2",;
"Aba 1", "Aba 2", "Aba 3", "Aba 4";
Size 300, 300 Pixel POSICAO 3;
ORGANIZE 3, 2, 4 NAME "img1", "img2", "img3", "img4", "img1", "img2", "img3", "img4", "img1" ;
Color CLR_WHITE, nRGB( 117, 174, 162 )
oFld:ColorSelected( CLR_BLACK, nRGB( 74, 136, 123 ) )
oFld:lDegrade := .t.
@ 20,20 Say "Teste" Size 80,20 of oFld:aDialogs[1] Pixel Color CLR_WHITE, nRGB( 255, 137, 281 )
@ 40,100 Button "Ok" Size 80,20 of oFld:aDialogs[2] Pixel Action msginfo("ok")
@ 62,100 Button "Cancelar" Size 80,20 of oFld:aDialogs[2] Pixel
@ 100,100 Button "Aba 3" Size 80,20 of oFld:aDialogs[3] Pixel
@ 40,420 RFolder oFld2 of oWin Prompts "Folder 1", "Folder 2", "Folder 3";
Size 300, 300 Pixel POSICAO 6;
FILE "img1.png", "img2.bmp", "img3.bmp";
EXACT;
oFld2:lDegrade := .t.
oFld2:SetCores( { {CLR_WHITE, nRGB( 142, 39, 28) },;
{CLR_WHITE, nRGB( 39, 142, 128)},;
{CLR_WHITE, nRGB( 128, 39, 255)} } )
@ 20,20 Say "Teste" Size 120,20 of oFld2:aDialogs[1] Pixel Color CLR_WHITE, CLR_GREEN
@ 40,100 Button "Ok" Size 80,20 of oFld2:aDialogs[2] Pixel Action msginfo("ok")
@ 62,100 Button "Cancelar" Size 80,20 of oFld2:aDialogs[2] Pixel
@ 100,100 Button "Folder 2" Size 80,20 of oFld2:aDialogs[3] Pixel
@ 370,20 RFolder oFld3 of oWin Prompts "Folder 1", "Folder 2", "Folder3";
Size 300, 300 Pixel POSICAO 5;
Color CLR_BLACK, nRGB( 225, 231, 220 ); //nRGB( 85, 200, 255 ) ;
EXACT ADJUST //FILE "img1.bmp", "img2.bmp", "img3.bmp";
oFld3:lDegrade := .t.
oFld3:nClrMove := nRGB( 255, 167, 79 )
//oFld3:ColorSelected( CLR_BLACK, nRGB( 0, 136, 202 ) )
@ 20,20 Say "Teste" Size 120,20 of oFld3:aDialogs[1] Pixel Color CLR_WHITE, nRGB( 0, 150, 220 )
@ 40,100 Button "Ok" Size 80,20 of oFld3:aDialogs[2] Pixel Action msginfo("ok")
@ 62,100 Button "Cancelar" Size 80,20 of oFld3:aDialogs[2] Pixel
@ 100,100 Button "Folder 3" Size 80,20 of oFld3:aDialogs[3] Pixel
@ 370,420 RFolder oFld4 of oWin;
Prompts "Folder 1", "Folder 2", "Folder3", "Aba 1", "Aba 2", "Opcao 1", "Opcao 2", "Opcao 3", "Opcao 4";
Size 300, 300 Pixel POSICAO 1;
FILE "img1.png", "img2.bmp", "img3.bmp", "img4.bmp", "img1.png", "img2.bmp", "img3.bmp", "img2.bmp", "img3.bmp";
COLOR CLR_BLUE, nRGB( 85, 200, 255 ) ;
ORGANIZE 3, 2, 4;
//oFld4:nClrMove := CLR_HGREEN
oFld4:lDegrade := .t.
oFld4:ColorSelected( CLR_BLACK, nRGB( 0, 136, 202 ) )
@ 2,005 button "deleta 1" Size 80,16 Pixel Action oFld:End() of oWin
@ 2,105 button "deleta 2" Size 80,16 Pixel Action oFld2:End() of oWin
@ 2,205 button "Hide 3" Size 80,16 Pixel Action oFld3:Hide() of oWin
@ 2,305 button "Show 3" Size 80,16 Pixel Action oFld3:Show() of oWin
@ 2,405 button "Disable ABAs 2" Size 80,18 Pixel;
Action ( oFld:Disable( 2 ),;
oFld2:Disable( 2 ),;
oFld3:Disable( 2 ),;
oFld4:Disable( 2 ) ) of oWin
@ 2,505 button "Enable ABAs 2" Size 80,18 Pixel;
Action ( oFld:Enable( 2 ),;
oFld2:Enable( 2 ),;
oFld3:Enable( 2 ),;
oFld4:Enable( 2 ) ) of oWin
@ 390,745 button "Cores Folder 4" Size 80,18 Pixel Action AlteraCor() of oWin
@ 410,745 button "Exact Folder 4" Size 80,18 Pixel Action ExactFld4() of oWin
RETURN nil
//----------------------------------------------------------------
Function AlteraCor()
oFld4:SetCores( { { CLR_WHITE, nRGB( 255, 137, 281 ) },;
{ CLR_WHITE, nRGB( 0, 128, 192 ) },;
{ CLR_WHITE, nRGB( 0, 117, 117 ) } } )
Return NIL
//-----------------------------------------------------------------
Function ExactFld4()
if !oFld4:lExact
oFld4:Exact()
else
oFld4:NoExact()
endif
Return nIL
**********
Antonio Linares wrote:Dietmar,
> yes, I did.
Please post the portion of the RC file where you declare that folder, thanks
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 59 guests