ERROR ON TFOLDERE- resolved !!!!

ERROR ON TFOLDERE- resolved !!!!

Postby Silvio » Tue Apr 19, 2011 5:11 pm

when I change the option on radio control not refresh() the dialogs of folder
It refresh only the tabs of the folder

please run this test
Code: Select all  Expand view

Function test()
Local  oDlg,oFont
Local oFld,oRad1,nCltipo:=1

 DEFINE DIALOG oDlg FROM 100, 100 TO 542,620;
                 STYLE DS_MODALFRAME + WS_POPUPWINDOW + WS_VISIBLE + WS_DLGFRAME + 4;
                 TITLE "test folder" PIXEL FONT oFont


    //---------------------------------------------------------------------------//

      @  105, 5 FOLDEREX oFld ;
        SIZE 250,  90 ;
        OF oDlg ;
         ITEMS "Sito Web","&Accesso internet","Archivio","Note" ;
        FONT oFont ;
        PIXEL
    //---------------------------------------------------------------------------//

    @ 82, 48 RADIO oRad1 VAR nCltipo PROMPT "&Sito Web" PIXEL SIZE 40, 12  OF oDlg;
                    ON CHANGE  ( oFld:nOption:=nCltipo, oFld:REFRESH())

         @ 82, 93 RADIOITEM "A&ccesso" RADIOMENU oRad1  PIXEL SIZE 40, 12   OF oDlg
         @ 82, 135 RADIOITEM "&Archivio" RADIOMENU oRad1  PIXEL SIZE 40, 12 OF oDlg
         @ 82, 185 RADIOITEM "Altro" RADIOMENU oRad1      PIXEL SIZE 40, 12    OF oDlg
 @ 5, 5 SAY "&Internet:" OF oFld:aDialogs[1] SIZE 50, 8 PIXEL
        @ 22, 5 SAY "&FTP:" OF oFld:aDialogs[1] SIZE 50, 8 PIXEL

    @ 5, 5 SAY "&Dns1:" OF oFld:aDialogs[2] SIZE 50, 8 PIXEL
    @ 5, 123 SAY "&Dns2:" OF oFld:aDialogs[2] SIZE 50, 8 PIXEL
    @ 22, 5 SAY "&S.SMTP:" OF oFld:aDialogs[2] SIZE 50, 8 PIXEL
    @ 39, 5 SAY "&S.POP:" OF oFld:aDialogs[2] SIZE 50, 8 PIXEL

      @ 5, 5 SAY "&File:" OF oFld:aDialogs[3] SIZE 50, 8 PIXEL
    @ 5, 5 SAY "&Note:" OF oFld:aDialogs[4] SIZE 50, 8 PIXEL
 ACTIVATE DIALOG oDlg

return nil



Any Idea ?
I tried also with
@ 82, 48 RADIO oRad1 VAR nCltipo PROMPT "&Sito Web" PIXEL SIZE 40, 12 OF oDlg;
ON CHANGE ( oFld:nOption:=nCltipo, oFld:REFRESH(), oFld:aDialogs[nCltipo]:REFRESH())
Last edited by Silvio on Thu Apr 21, 2011 1:48 pm, edited 2 times in total.
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: ERROR ON TFOLDEREX

Postby tiaofw » Tue Apr 19, 2011 5:21 pm

hi!

try this:

Code: Select all  Expand view

 @ 82, 48 RADIO oRad1 VAR nCltipo PROMPT "&Sito Web" PIXEL SIZE 40, 12  OF oFld:aDialogs[ 1 ] ;
                    ON CHANGE  ( oFld:nOption:=nCltipo, oFld:REFRESH())

         @ 82, 93 RADIOITEM "A&ccesso" RADIOMENU oRad1  PIXEL SIZE 40, 12   OF oFld:aDialogs[ 1 ]
         @ 82, 135 RADIOITEM "&Archivio" RADIOMENU oRad1  PIXEL SIZE 40, 12 OF oFld:aDialogs[ 1 ]
         @ 82, 185 RADIOITEM "Altro" RADIOMENU oRad1      PIXEL SIZE 40, 12    OF oFld:aDialogs[ 1 ]
 
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: ERROR ON TFOLDEREX

Postby Silvio » Tue Apr 19, 2011 5:23 pm

sorry BUT the radio no is on folder but on the dialog !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


@ 82, 48 RADIO oRad1 VAR nCltipo PROMPT "&Sito Web" PIXEL SIZE 40, 12 OF oDlg;
ON CHANGE ( oFld:nOption:=nCltipo, oFld:REFRESH())
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: ERROR ON TFOLDEREX

Postby Daniel Garcia-Gil » Wed Apr 20, 2011 9:59 am

Silvio

Code: Select all  Expand view
ON CHANGE  ( oFld:SetOption( nCltipo ) )


our best documentation is the source code :D
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests