ERROR ON TFOLDERE- resolved !!!!

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

ERROR ON TFOLDERE- resolved !!!!

Post by Silvio »

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

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
tiaofw
Posts: 97
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil
Contact:

Re: ERROR ON TFOLDEREX

Post by tiaofw »

hi!

try this:

Code: Select all

 @ 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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: ERROR ON TFOLDEREX

Post by Silvio »

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
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: ERROR ON TFOLDEREX

Post by Daniel Garcia-Gil »

Silvio

Code: Select all

 ON CHANGE  ( oFld:SetOption( nCltipo ) )
our best documentation is the source code :D
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
Post Reply