topic
stringlengths
1
63
text
stringlengths
1
577k
testpop3
hi Enrico, I put this TESTPOPX.PRG in FHW/SAMPLES [code=fw:1f11imhq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Testing FiveWin new Internet incoming mail (POP3 protocol) Class</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oBar<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Receiving Internet Mail from FiveWin"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> GetMail<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"pop3.example.it"</span>, <span style="color: #ff0000;">"[email protected]"</span>, <span style="color: #ff0000;">"password"</span><span style="color: #000000;">&#41;</span> TOOLTIP <span style="color: #ff0000;">"Get Mail x"</span><br /><br />   SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Ready"</span> NOINSET DATE TIME KEYBOARD<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GETMAIL<span style="color: #000000;">&#40;</span> cServer, cUser, cPassword <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> lOk := .F.<br /><br />    <span style="color: #00C800;">LOCAL</span> oCli<br /><br />    <span style="color: #00C800;">LOCAL</span> aMail, aPar, cMsg, oAtt<br /><br />    <span style="color: #00C800;">LOCAL</span> i<br />    <br />   <span style="color: #00C800;">TRY</span><br />        oCli = TIPClientPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pop://"</span> + STRTRAN<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"@"</span>, <span style="color: #ff0000;">"&at;"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> + cPassword + <span style="color: #ff0000;">"@"</span> + cServer <span style="color: #000000;">&#41;</span><br />        <br />        <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> oCli <span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br />       <br />        oCli:<span style="color: #000000;">oUrl</span>:<span style="color: #000000;">cUserid</span> = STRTRAN<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"@"</span>, <span style="color: #ff0000;">"&at;"</span> <span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #00C800;">IF</span> !oCli:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br />        <br />        aMail = oCli:<span style="color: #000000;">RetrieveAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    CATCH<br />        <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ERRORE"</span><span style="color: #000000;">&#41;</span><br />    END<br />    <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1f11imhq] to compile it I use this: [code=fw:1f11imhq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />ECHO Compiling...<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%FWDIR%"</span> == <span style="color: #ff0000;">""</span> set FWDIR=.\..\<br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%XHDIR%"</span> == <span style="color: #ff0000;">""</span> set XHDIR=c:\xharbour<br />rem <span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%2"</span> == <span style="color: #ff0000;">"/b"</span> set GT=gtwin<br />rem <span style="color: #00C800;">if</span> not <span style="color: #ff0000;">"%2"</span> == <span style="color: #ff0000;">"/b"</span> set GT=gtgui<br />set GT=gtgui<br /><br />set hdir=%XHDIR%<br />set hdirl=%hdir%\lib<br />set bcdir=c:\borland\bcc55<br />set fwh=%FWDIR%<br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERRORS<br />@type comp.log<br /><br />echo -O2 -e%<span style="color: #000000;">1</span>.exe -I%hdir%\include -I%bcdir%\include %<span style="color: #000000;">1</span>.c > b32.bc<br />%bcdir%\bin\bcc32 -M -c -v @b32.bc<br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %<span style="color: #000000;">1</span><br /><br />echo /aa + > b32.bc<br />echo /Gn + >> b32.bc<br />echo /Tpe + >> b32.bc<br />echo /s + >> b32.bc<br />echo /v + >> b32.bc<br />echo /Lc:\fwh\lib;c:\xharbour\lib;c:\borland\bcc55\lib;c:\borland\bcc55\lib\psdk;C:\fwh\INCLUDE;c:\xharbour\INCLUDE;c:\borland\bcc55\INCLUDE + >> b32.bc<br />echo c0w32.obj + >> b32.bc<br />echo %bcdir%\lib\c0w32.obj + > b32.bc<br />echo %<span style="color: #000000;">1</span>.obj, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.exe, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.map, + >> b32.bc<br />echo %fwh%\lib\Fivehx.lib %fwh%\lib\FiveHC.lib + >> b32.bc<br />echo %hdirl%\rtl.lib + >> b32.bc<br />echo %hdirl%\vm.lib + >> b32.bc<br />echo %hdirl%\%GT%.lib + >> b32.bc<br />echo %hdirl%\lang.lib + >> b32.bc<br />echo %hdirl%\macro.lib + >> b32.bc<br />echo %hdirl%\rdd.lib + >> b32.bc<br />echo %hdirl%\dbfntx.lib + >> b32.bc<br />echo %hdirl%\dbfcdx.lib + >> b32.bc<br />echo %hdirl%\dbffpt.lib + >> b32.bc<br />echo %hdirl%\hbsix.lib + >> b32.bc<br />echo %hdirl%\debug.lib + >> b32.bc<br />echo %hdirl%\common.lib + >> b32.bc<br />echo %hdirl%\pp.lib + >> b32.bc<br />echo %hdirl%\pcrepos.lib + >> b32.bc<br />echo %hdirl%\ct.lib + >> b32.bc<br />echo %hdirl%\zlib.lib + >> b32.bc<br />echo %hdirl%\hbzip.lib + >> b32.bc<br />echo %hdirl%\adordd.lib + >> b32.bc<br />echo %hdirl%\png.lib + >> b32.bc<br />echo %hdirl%\tip.lib + >> b32.bc<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />rem echo %hdir%\lib\rddads.lib + >> b32.bc<br />rem echo %hdir%\lib\Ace32.lib + >> b32.bc<br /><br />echo %bcdir%\lib\cw32.lib + >> b32.bc<br />echo %bcdir%\lib\import32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\iphlpapi.lib, >> b32.bc<br /><br />rem echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc<br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.res echo %<span style="color: #000000;">1</span>.res >> b32.bc<br /><br />rem uncomment this line <span style="color: #0000ff;">to</span> use the debugger and comment the following one<br /><span style="color: #00C800;">if</span> %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s -v @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br /><span style="color: #00C800;">if</span> %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built *<br />%<span style="color: #000000;">1</span><br />GOTO EXIT<br />ECHO<br /><br />rem delete temporary files<br />@del %<span style="color: #000000;">1</span>.c<br /><br />:<span style="color: #000000;">COMPILEERRORS</span><br />@type comp.log<br />ECHO * Compile errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Linking errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO    SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">&#91;</span>Program<span style="color: #000000;">&#93;</span>     <span style="color: #000000;">&#123;</span>-- No especifiques la extensi? PRG<br />ECHO                                <span style="color: #000000;">&#123;</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT</span></div>[/code:1f11imhq] I added TIP.LIb to compile because without it I get: Error: Unresolved external '_HB_FUN_TIPCLIENTPOP' referenced from C:\FWH\SAMPLES\TESTPOPX.OBJ then I run it but I get "ERRORE" from msginfo thank you for your help...
testpop3
Remove TRY/CATCH/END so you can see the real error. EMG
testpop3
hi Enrico, I removed TRY/CACTH now I run .exe, click button for ACTION Getmail and nothing happens any suggestion?
testpop3
In order to help you I need a complete sample to run here. EMG
testpop3
Hi Enrico or any other my code is just this (MYPOP3.PRG): [code=fw:1wyk26gz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Testing FiveWin new Internet incoming mail (POP3 protocol) Class</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oBar<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Receiving Internet Mail from FiveWin"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar _3D <span style="color: #0000ff;">OF</span> oWnd<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> GetMail<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"pop3.mydomain.it"</span>, <span style="color: #ff0000;">"[email protected]"</span>, <span style="color: #ff0000;">"password"</span><span style="color: #000000;">&#41;</span> TOOLTIP <span style="color: #ff0000;">"Get Mail x"</span><br /><br />   SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Ready"</span> NOINSET DATE TIME KEYBOARD<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GETMAIL<span style="color: #000000;">&#40;</span> cServer, cUser, cPassword <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> lOk := .F.<br /><br />    <span style="color: #00C800;">LOCAL</span> oCli<br /><br />    <span style="color: #00C800;">LOCAL</span> aMail, aPar, cMsg, oAtt<br /><br />    <span style="color: #00C800;">LOCAL</span> i<br /><br />    cUser := StrTran<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"@"</span>, <span style="color: #ff0000;">"&at;"</span> <span style="color: #000000;">&#41;</span><br />        oCli = TIPClientPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pop://"</span> + cUser + <span style="color: #ff0000;">":"</span> + cPassword + <span style="color: #ff0000;">"@"</span> + cServer <span style="color: #000000;">&#41;</span><br />         <br />        <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> oCli <span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br />         <br />        oCli:<span style="color: #000000;">oUrl</span>:<span style="color: #000000;">cUserid</span> = Strtran<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"&at;"</span>, <span style="color: #ff0000;">"@"</span> <span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #00C800;">IF</span> !oCli:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br />         <br />        aMail = oCli:<span style="color: #000000;">RetrieveAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> aMail <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span><br />            aPar = aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetMultiParts</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">&#40;</span> aPar <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span><br />                cMsg = <span style="color: #ff0000;">"Data: "</span> + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Date"</span> <span style="color: #000000;">&#41;</span> + CRLF +;<br />                       <span style="color: #ff0000;">"Oggetto: "</span> + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Subject"</span> <span style="color: #000000;">&#41;</span> + CRLF +;<br />                       <span style="color: #ff0000;">"Mittente: "</span> + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From"</span> <span style="color: #000000;">&#41;</span> + CRLF + CRLF +;<br />                       <span style="color: #ff0000;">"Messaggio: "</span> + CRLF + CRLF + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">ELSE</span><br />                cMsg = <span style="color: #ff0000;">"Data: "</span> + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Date"</span> <span style="color: #000000;">&#41;</span> + CRLF +;<br />                       <span style="color: #ff0000;">"Oggetto: "</span> + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Subject"</span> <span style="color: #000000;">&#41;</span> + CRLF +;<br />                       <span style="color: #ff0000;">"Mittente: "</span> + aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"From"</span> <span style="color: #000000;">&#41;</span> + CRLF + CRLF +;<br />                       <span style="color: #ff0000;">"Messaggio: "</span> + CRLF + CRLF + BODY<span style="color: #000000;">&#40;</span> aPar <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">ENDIF</span><br /><br />            <span style="color: #00C800;">WHILE</span> <span style="color: #000000;">&#40;</span> oAtt := aMail<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NextAttachment</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">NIL</span><br />                <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> oAtt:<span style="color: #000000;">GetFileName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                    cMsg += CRLF + <span style="color: #ff0000;">"Allegato: "</span> + oAtt:<span style="color: #000000;">GetFileName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//                    IF !oAtt:DetachFile(); BREAK; ENDIF</span><br />                <span style="color: #00C800;">ENDIF</span><br />            <span style="color: #00C800;">ENDDO</span><br /><br />            ? cMsg<br />        <span style="color: #00C800;">NEXT</span><br /><br />        lOk = .T.<br /><br />    <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> oCli <span style="color: #000000;">&#41;</span>; oCli:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">ENDIF</span><br /><br />    <span style="color: #00C800;">RETURN</span> lOk<br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> BODY<span style="color: #000000;">&#40;</span> aPar <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> cMsg := <span style="color: #ff0000;">""</span><br /><br />    <span style="color: #00C800;">LOCAL</span> i<br /><br />    <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> aPar <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">&#40;</span> aPar<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetFieldPart</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Content-Disposition"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />            cMsg += aPar<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">NEXT</span><br /><br />    <span style="color: #00C800;">RETURN</span> ALLTRIM<span style="color: #000000;">&#40;</span> cMsg <span style="color: #000000;">&#41;</span></div>[/code:1wyk26gz] and I compile it with this BUILDX MYPOP3 (in C:\FWH\SAMPLES) [code=fw:1wyk26gz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ECHO OFF<br />CLS<br />ECHO ???????????????????????????????????????<br />ECHO ?FiveWin <span style="color: #00C800;">for</span> xHarbour <span style="color: #000000;">12.01</span> - Jan. <span style="color: #000000;">2012</span>          xHarbour development <span style="color: #0000ff;">power</span> ?<br />ECHO ?<span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech, <span style="color: #000000;">1993</span><span style="color: #000000;">-2012</span>     <span style="color: #00C800;">for</span> Microsoft Windows 9X/NT/200X/ME/XP/Vista/<span style="color: #000000;">7</span> ?<br />ECHO ????????????????????????????????????????<br />ECHO ? ???????????????????????????????????????<br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />ECHO Compiling...<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%FWDIR%"</span> == <span style="color: #ff0000;">""</span> set FWDIR=.\..\<br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%XHDIR%"</span> == <span style="color: #ff0000;">""</span> set XHDIR=c:\xharbour<br />rem <span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%2"</span> == <span style="color: #ff0000;">"/b"</span> set GT=gtwin<br />rem <span style="color: #00C800;">if</span> not <span style="color: #ff0000;">"%2"</span> == <span style="color: #ff0000;">"/b"</span> set GT=gtgui<br />set GT=gtgui<br /><br />set hdir=%XHDIR%<br />set hdirl=%hdir%\lib<br />set bcdir=c:\borland\bcc55<br />set fwh=%FWDIR%<br /><br />%hdir%\bin\harbour %<span style="color: #000000;">1</span> /n /i%fwh%\include;%hdir%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERRORS<br />@type comp.log<br /><br />echo -O2 -e%<span style="color: #000000;">1</span>.exe -I%hdir%\include -I%bcdir%\include %<span style="color: #000000;">1</span>.c > b32.bc<br />%bcdir%\bin\bcc32 -M -c -v @b32.bc<br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %<span style="color: #000000;">1</span><br /><br />echo /aa + > b32.bc<br />echo /Gn + >> b32.bc<br />echo /Tpe + >> b32.bc<br />echo /s + >> b32.bc<br />echo /v + >> b32.bc<br />echo /Lc:\fwh\lib;c:\xharbour\lib;c:\borland\bcc55\lib;c:\borland\bcc55\lib\psdk;C:\fwh\INCLUDE;c:\xharbour\INCLUDE;c:\borland\bcc55\INCLUDE + >> b32.bc<br />echo c0w32.obj + >> b32.bc<br />echo %bcdir%\lib\c0w32.obj + > b32.bc<br />echo %<span style="color: #000000;">1</span>.obj, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.exe, + >> b32.bc<br />echo %<span style="color: #000000;">1</span>.map, + >> b32.bc<br />echo %fwh%\lib\Fivehx.lib %fwh%\lib\FiveHC.lib + >> b32.bc<br />echo %hdirl%\rtl.lib + >> b32.bc<br />echo %hdirl%\vm.lib + >> b32.bc<br />echo %hdirl%\%GT%.lib + >> b32.bc<br />echo %hdirl%\lang.lib + >> b32.bc<br />echo %hdirl%\macro.lib + >> b32.bc<br />echo %hdirl%\rdd.lib + >> b32.bc<br />echo %hdirl%\dbfntx.lib + >> b32.bc<br />echo %hdirl%\dbfcdx.lib + >> b32.bc<br />echo %hdirl%\dbffpt.lib + >> b32.bc<br />echo %hdirl%\hbsix.lib + >> b32.bc<br />echo %hdirl%\debug.lib + >> b32.bc<br />echo %hdirl%\common.lib + >> b32.bc<br />echo %hdirl%\pp.lib + >> b32.bc<br />echo %hdirl%\pcrepos.lib + >> b32.bc<br />echo %hdirl%\ct.lib + >> b32.bc<br />echo %hdirl%\zlib.lib + >> b32.bc<br />echo %hdirl%\hbzip.lib + >> b32.bc<br />echo %hdirl%\adordd.lib + >> b32.bc<br />echo %hdirl%\png.lib + >> b32.bc<br />echo %hdirl%\tip.lib + >> b32.bc<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />rem echo %hdir%\lib\rddads.lib + >> b32.bc<br />rem echo %hdir%\lib\Ace32.lib + >> b32.bc<br /><br />echo %bcdir%\lib\cw32.lib + >> b32.bc<br />echo %bcdir%\lib\import32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc<br />echo %bcdir%\lib\psdk\iphlpapi.lib, >> b32.bc<br /><br />rem echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc<br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.res echo %<span style="color: #000000;">1</span>.res >> b32.bc<br /><br />rem uncomment this line <span style="color: #0000ff;">to</span> use the debugger and comment the following one<br /><span style="color: #00C800;">if</span> %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s -v @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br /><span style="color: #00C800;">if</span> %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc<br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br />ECHO * Application successfully built *<br />%<span style="color: #000000;">1</span><br />GOTO EXIT<br />ECHO<br /><br />rem delete temporary files<br />@del %<span style="color: #000000;">1</span>.c<br /><br />:<span style="color: #000000;">COMPILEERRORS</span><br />@type comp.log<br />ECHO * Compile errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br />ECHO * Linking errors *<br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br />ECHO    SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">&#91;</span>Program<span style="color: #000000;">&#93;</span>     <span style="color: #000000;">&#123;</span>-- No especifiques la extensi? PRG<br />ECHO                                <span style="color: #000000;">&#123;</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br />GOTO EXIT<br /><br />:NOEXIST<br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT</span></div>[/code:1wyk26gz] I use xHarbour (or is better HARBOUR?) when I run mypop3.EXE i get: [code=fw:1wyk26gz]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\fwh\samples\my.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">1</span>,<span style="color: #000000;">829</span>,<span style="color: #000000;">376</span> bytes<br />   Compiler version: <span style="color: #000000;">xHarbour</span> build <span style="color: #000000;">1.2</span><span style="color: #000000;">.1</span> Intl. <span style="color: #000000;">&#40;</span>SimpLex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">9421</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWHX</span> <span style="color: #000000;">11.12</span><br />   Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">8</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">11</span>/<span style="color: #000000;">13</span>/<span style="color: #000000;">17</span>, <span style="color: #000000;">15</span>:<span style="color: #000000;">01</span>:<span style="color: #000000;">21</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1108</span>  Argument error: <span style="color: #00C800;">AT</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = C   <br /><br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = U   <br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\tip\<span style="color: #0000ff;">mail</span>.prg => TIPMAIL:<span style="color: #000000;">FROMSTRING</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\tip\popcln.prg => TIPCLIENTPOP:<span style="color: #000000;">RETRIEVEALL</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testpopy</span>.prg => GETMAIL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">47</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testpopy</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">465</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">656</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1690</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1407</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3159</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">980</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">testpopy</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i5-6200U CPU @ <span style="color: #000000;">2</span>.30GHz <span style="color: #000000;">2400</span> Mhz<br />   Hardware memory: <span style="color: #000000;">4280</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">28</span><br />      <span style="color: #000000;">1</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\ASUS\ASUS Smart Gesture\AsTPCenter\x64\AsusTPCenter.exe<br />      <span style="color: #000000;">2</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\ASUS\Giftbox\Asusgiftbox.exe<br />      <span style="color: #000000;">3</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Avira\Antivirus\avgnt.exe<br />      <span style="color: #000000;">4</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Avira\Launcher\Avira.Systray.exe<br />      <span style="color: #000000;">5</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Google\Chrome\Application\chrome.exe<br />      <span style="color: #000000;">6</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\IBM\<span style="color: #00C800;">Client</span> Access\Emulator\pcsws.exe<br />      <span style="color: #000000;">7</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Mozilla Thunderbird\thunderbird.exe<br />      <span style="color: #000000;">8</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Notepad++\notepad++.exe<br />      <span style="color: #000000;">9</span> , C:\Program Files\Lenovo\Lenovo Slim USB Keyboard\Skd8821.exe<br />     <span style="color: #000000;">10</span> , C:\Windows\System32\RuntimeBroker.exe<br />     <span style="color: #000000;">11</span> , C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe<br />     <span style="color: #000000;">12</span> , C:\Windows\explorer.exe<br />     <span style="color: #000000;">13</span> ACMON, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\ASUS\Splendid\ACMON.exe<br />     <span style="color: #000000;">14</span> ASUSSPOTLIGHT, <br />     <span style="color: #000000;">15</span> BroadcastListenerWindow, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\NVIDIA Corporation\<span style="color: #0000ff;">Update</span> Core\NvBackend.exe<br />     <span style="color: #000000;">16</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\Users\Damiano\AppData\<span style="color: #00C800;">Local</span>\Microsoft\OneDrive\OneDrive.exe<br />     <span style="color: #000000;">17</span> GDI+ <span style="color: #0000ff;">Window</span>, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\ASUS\ASUS Smart Gesture\AsTPCenter\x64\AsusTPLoader.exe<br />     <span style="color: #000000;">18</span> MSCTFIME UI, C:\Windows\System32\conhost.exe<br />     <span style="color: #000000;">19</span> NotifyIconWindowTitle, C:\Program Files\TightVNC\tvnserver.exe<br />     <span style="color: #000000;">20</span> PCSCM, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\IBM\<span style="color: #00C800;">Client</span> Access\Emulator\pcscm.exe<br />     <span style="color: #000000;">21</span> Pelles C Command <span style="color: #0000ff;">Prompt</span> - buildx  testpopy, C:\Windows\System32\cmd.exe<br />     <span style="color: #000000;">22</span> Realtek HD Audio Background Process <span style="color: #00C800;">for</span> Vista, C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe<br />     <span style="color: #000000;">23</span> Realtek HD Audio CPL <span style="color: #00C800;">for</span> Vista, C:\Program Files\Realtek\Audio\HDA\RAVCpl64.exe<br />     <span style="color: #000000;">24</span> Receiving Internet <span style="color: #0000ff;">Mail</span> <span style="color: #0000ff;">from</span> FiveWin, C:\fwh\samples\testpopy.exe<br />     <span style="color: #000000;">25</span> Task Host <span style="color: #0000ff;">Window</span>, C:\Windows\System32\taskhostw.exe<br />     <span style="color: #000000;">26</span> The Event Manager Dashboard, C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_463164d40c3d26ce\igfxEM.exe<br />     <span style="color: #000000;">27</span> VCL ImplGetDefaultWindow, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\OpenOffice <span style="color: #000000;">4</span>\program\soffice.bin<br />     <span style="color: #000000;">28</span> error - Blocco note, C:\Windows\SysWOW64\notepad.exe<br /><br />Variables in use<br />================<br />   Procedure     Type   Value<br />   ==========================<br />   <span style="color: #00C800;">AT</span><br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"<br />"</span><br />     Param   <span style="color: #000000;">2</span>:    U    <br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">1</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />   TIPMAIL:<span style="color: #000000;">FROMSTRING</span><br />     Param   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">1</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TIPMAIL</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">9</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">10</span>:    U    <br />   TIPCLIENTPOP:<span style="color: #000000;">RETRIEVEALL</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TIPCLIENTPOP</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    A    Len:    <span style="color: #000000;">3</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">3</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">3</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    U    <br />   GETMAIL<br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"pop3.mydomani.it"</span>  <---<span style="color: #000000;">&#40;</span>this is example<span style="color: #000000;">&#41;</span><br />     Param   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"info&at;mydomain.it"</span>   <---<span style="color: #000000;">&#40;</span>this is example<span style="color: #000000;">&#41;</span><br />     Param   <span style="color: #000000;">3</span>:    C    <span style="color: #ff0000;">"password"</span>   <---<span style="color: #000000;">&#40;</span>this is example<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TIPCLIENTPOP</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    U    <br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />   TBTNBMP:<span style="color: #0000ff;">CLICK</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />   TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">11</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">8</span><br />     Param   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    L    .T.<br />   TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">720904</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />   TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">720904</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />   _FWH<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">720904</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">720904</span><br />     Param   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">3</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />   WINRUN<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">5966142</span><br />   TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"NORMAL"</span><br />     Param   <span style="color: #000000;">2</span>:    U    <br />     Param   <span style="color: #000000;">3</span>:    U    <br />     Param   <span style="color: #000000;">4</span>:    U    <br />     Param   <span style="color: #000000;">5</span>:    U    <br />     Param   <span style="color: #000000;">6</span>:    U    <br />     Param   <span style="color: #000000;">7</span>:    U    <br />     Param   <span style="color: #000000;">8</span>:    U    <br />     Param   <span style="color: #000000;">9</span>:    U    <br />     Param  <span style="color: #000000;">10</span>:    U    <br />     Param  <span style="color: #000000;">11</span>:    U    <br />     Param  <span style="color: #000000;">12</span>:    U    <br />     Param  <span style="color: #000000;">13</span>:    U    <br />     Param  <span style="color: #000000;">14</span>:    U    <br />     Param  <span style="color: #000000;">15</span>:    U    <br />     Param  <span style="color: #000000;">16</span>:    U    <br />     Param  <span style="color: #000000;">17</span>:    U    <br />     Param  <span style="color: #000000;">18</span>:    U    <br />     Param  <span style="color: #000000;">19</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    U    <br />   MAIN<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBAR</span><br /><br />Linked RDDs<br />===========<br />   DBF<br />   DBFFPT<br />   DBFBLOB<br />   DBFNTX<br /><br />DataBases in use<br />================<br /><br />Classes in use:<br />===============<br />     <span style="color: #000000;">1</span> ERROR<br />     <span style="color: #000000;">2</span> HASHENTRY<br />     <span style="color: #000000;">3</span> HBCLASS<br />     <span style="color: #000000;">4</span> HBOBJECT<br />     <span style="color: #000000;">5</span> TWINDOW<br />     <span style="color: #000000;">6</span> TBRUSH<br />     <span style="color: #000000;">7</span> TFONT<br />     <span style="color: #000000;">8</span> TCONTROL<br />     <span style="color: #000000;">9</span> TBAR<br />    <span style="color: #000000;">10</span> TRECT<br />    <span style="color: #000000;">11</span> TBTNBMP<br />    <span style="color: #000000;">12</span> TMSGBAR<br />    <span style="color: #000000;">13</span> TMSGITEM<br />    <span style="color: #000000;">14</span> TTIMER<br />    <span style="color: #000000;">15</span> TIPCLIENT<br />    <span style="color: #000000;">16</span> TIPCLIENTPOP<br />    <span style="color: #000000;">17</span> TURL<br />    <span style="color: #000000;">18</span> TIPMAIL<br />    <span style="color: #000000;">19</span> TIPENCODER<br />    <span style="color: #000000;">20</span> TIPENCODERQP<br />    <span style="color: #000000;">21</span> TREG32<br /><br />Memory Analysis<br />===============<br />      <span style="color: #000000;">150</span> <span style="color: #00C800;">Static</span> variables<br /><br />   Dynamic memory consume:<br />      Actual  Value:          <span style="color: #000000;">0</span> bytes<br />      Highest Value:          <span style="color: #000000;">0</span> bytes<br /> </div>[/code:1wyk26gz] thank you
testpop3
I know that sample is working fine with my pop3 server. For this I need to test it with your. EMG
testpop3
hi Enrico I sent to you email with access data thank you
testpop3
The server name was mistyped (pop instead of pop3). EMG
testpop3
damianodec FYI .. If you are trying to use Gmail via POP or IMAP from multiple devices .. you will need to tell Gmail to let less secure apps use your account .. in order to connect.... if you are using your own domain .. obviously this suggestion will not apply.. Rick Lipkin <!-- m --><a class="postlink" href="https://support.google.com/accounts/answer/6010255?hl=en">https://support.google.com/accounts/ans ... 0255?hl=en</a><!-- m -->
testpop3
hi Rick, thank you for your help. yes, I'm using my domain and not gmail bye
testpop3
hi, problem solved, thank to Enrico, he suggested to me to downloaded xHarbour Binaries 1.2.3 Rev. 10205 for BCC 5.5.1 and now my prg works. thanks to Enrico for his availability.
testpop3
Hi enrico, Your function works with gmail? What string for cServer? cUser := "[email protected]" cPassword := "acess123" cServer := "gmail.com" It this?
testpop3
I don't know, sorry. EMG
testpop3
Hi Enrico, Please, post a example for fill string cServer and cUser
testpop3
[code=fw:2x6g6p8i]<div class="fw" id="{CB}" style="font-family: monospace;">? GETMAIL<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pop.tiscalinet.it"</span>, <span style="color: #ff0000;">"[email protected]"</span>, <span style="color: #ff0000;">"password"</span> <span style="color: #000000;">&#41;</span></div>[/code:2x6g6p8i] EMG
testrich
Hola ForoReciban un cordial saludoAntonioTestrich.prg enseña como emplear richedit desde recursos, Como se hace desde codigo o para encajarlo en una ventana?Gracias nuevamenteCordialmenteJairo Barbosa
testrich
Jairo,Revisa fwh/samples/TestRtf.prg gracias
testrich
[quote="Antonio Linares"]Jairo,Revisa fwh/samples/TestRtf.prg gracias[/quotGracias por tu respuesta... si ahi esta la manera de hacerlo,es una muestra muy bien argumentada tiene de todo.CordialmenteJairo Barbosa
testsk1.prg in FWH1111
Hi The buttons in .\fwh1111\samples\Testsk1.prg are diffetent now. How do I get back the old buttons. Thanks Regards ACWoo
testsk1.prg in FWH1111
Acwoo, Please download FWH 11.11 and check if it is the same as the one that you have. Testsk1.prg shows fine here. No changes. Could you please post a screenshot ? thanks
testsmtp
what is wrongI send mail form <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> to <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> , everything is ok but I will get mail ( from <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> to <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->)// Testing FiveWin new Internet Outgoing mail (SMTP protocol) Class#include "FiveWin.ch"static oWnd//----------------------------------------------------------------------------//function Main() local oBar DEFINE WINDOW oWnd TITLE "Sending Internet Mail from FiveWin" DEFINE BUTTONBAR oBar _3D OF oWnd DEFINE BUTTON OF oBar ACTION SendMail() TOOLTIP "Send Mail" SET MESSAGE OF oWnd TO "Ready" NOINSET DATE TIME KEYBOARD ACTIVATE WINDOW oWndreturn nil//----------------------------------------------------------------------------//function SendMail() local oOutMail, cIP oWnd:SetMsg( "Sending Internet email..." ) WSAStartup() oOutMail := TSmtp():New( cIP := GetHostByName( "hot.pl" ) ) MsgInfo( cIP ) oOutMail:bConnecting = { || oWnd:SetMsg( "Connecting to hot.pl..." ) } oOutMail:bConnected = { || oWnd:SetMsg( "Connected" ) } oOutMail:bDone = { || oWnd:SetMsg( "Message sent successfully" ) } oOutMail:SendMail( "[email protected]",; // From { "[email protected]" },; // To "It is working!!!",; // Msg Text "Testing FiveWin Class TSmtp enhancements",; // Subject { "testsmtp.prg" } ) // attached filesreturn nil//----------------------------------------------------------------------------//procedure AppSys // Xbase++ requirementreturn //----------------------------------------------------------------------------//
testsmtp.prg - Can't get it working.
I'm trying to include the SendMail() routine in the testsmtp.prg test program in my application to send an email. I've changed it to my SMTP server and my email. All I get from the GetHostByName() call is an IP address of 0.0.0.0. It also seems to return very quickly which looks like it is not doing the lookup. I am using Xbase++ version 1.82 and FW++ 2.6. Anyone have any ideas? I suspect that this doesn't work in Xbase++. Dan
testsmtp.prg - Can't get it working.
Dan, We are reviewing it. We will answer you asap.
testsmtp.prg - Can't get it working.
Dan, Ok, its working. There are some little changes to implement: In samples\TestSmtp.prg, change: oOutMail = TSmtp():New( cIP := GetHostByName( "smtp.fivetechsoft.com" ) ) into: WSAStartup() oOutMail := TSmtp():New( cIP := GetHostByName( "smtp.fivetechsoft.com" ) ) // Notice the use of ":=" at the beginning That will provide you a valid cIP. Also there is a change needed at Class TSmtp. We may tell you the change, or we may send you a fixed Five32rt.dll. Please let us know.
testsmtp.prg - Can't get it working.
I'd prefer the revised fivert32rt.dll. Thanks
testsmtp.prg - Can't get it working.
Dan, Please send us an email requiring it (Five32rt.dll). Thanks.
testsmtp.prg - Can't get it working.
Can you post the change to the source code for the TSMTP class. I need to fix it in my program. Thankyou <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Angelo
testsmtp.prg - Can't get it working.
Angelo, Here it is: <!-- m --><a class="postlink" href="http://hyperupload.com/download/0165891d51/tsmtp.zip.html">http://hyperupload.com/download/0165891 ... p.zip.html</a><!-- m -->
testsmtp.prg - Can't get it working.
Hi Antonio, Thankyou for the source for the updated Tsmtp class. I have compiled it in my program and I get the following two (2) function references which can not be resolved: cFileNoPath(...) ---I assume it has something to do with getting file paths FMimeEnc(...) ---I assume file MIME Encoding is done here I have the following version: #define FWVERSION "FiveWin++ 1.82 - February 2004" #define FWDESCRIPTION "FiveWin++ for Xbase++" and use Alaska XBase++ 1.82 International. I have put in dummy functions for the two above and the sending of Email text works fine. Is it possible to get the source for the two functions and put them in as Static functions into my source. Thankyou and Best regards, Angelo <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
testsmtp.prg - Can't get it working.
Angelo, cFileNoPath() source code is located at source\function\filename.prg FMimeEnc() source code is located at source\function\mimeclip.prg
testsmtp.prg - Can't get it working.
Hi Antonio Thanks. That was easy. I should have looked in there before I asked the question. So much for working late and being so tired you don't think straight. My program compiles and links OK now. Thanks again, Angelo
testsmtp.prg - Can't get it working.
Fine <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
testtab2.prg
#include "FiveWin.ch" FUNCTION MAIN() local odlg local otabs DEFINE DIALOG oDlg TITLE "Selección articulos" FROM 77,178 TO 353,662 ; PIXEL //FIVEWIDI ACTIVATE DIALOG odlg ; ON INIT PlaceTabs( oDlg, oTabs ) RETURN Nil function PlaceTabs( oDlg, oTabs ) @ 119.00,1.00 TABS oTabs OF oDlg ITEMS "Orde Natural","Codigo Artigo", ; "Alfabetica" ACTION (MSGALERT("Error en TABS", "Aqui vá") ) ; PIXEL SIZE 242.00,32.00 MESSAGE "Ordem da lista" return nil error: testtab2.prg(20) Error E0030 Syntax error: "syntax error at '@'" help (?!!!)
testtab2.prg
Hello, José! Please, check your "Fivewin.ch". It has include the string "#include "Folder.ch". If not, you can include "Folder.ch" by hand.
testtcbr.prg: problemi per memorizzazione dati
Salve, ho compilato e lanciato il file testtcbr.prg. Ho cliccato su "Create" e provato a modificare qualsiasi campo ma non si riesce a salvarlo. Ho provato a modificare e linkare anche il fiel editcell.prg...ma non si riesce a memorizzarlo. Dove sbaglio ? Qualcuno ha avuto gli stessi problemi ? Grazie e auguri Romeo/Zingoni
testtre2.prg - any idea how to be able to use res editor?
In fwh\samples\testtre2.prg, the controls on oDlg were all coded. Is it possible to design dialogues using resource editor and later to dynamically moved it to oDlg depending on which tree item was clicked on? TIA
testtre2.prg - any idea how to be able to use res editor?
::oTree :=TTreeView(): REDEFINE( 201, odlg,0,nrgb(255,255,255)) // 201 id ::oTree:bChanged := {|oTree,oItem|eng0303(self) } // dynamic add items .rc / .dll : CONTROL "", 201, "SysTreeView32", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL| TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS, 3, 80, 148, 252 // manual add to .rc : | TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS Shuming Wang
testtre2.prg - any idea how to be able to use res editor?
Thanks for the reply Shuming. My requirement was actually met with this ChangeParent() snippet here <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=23490&start=0#p126403">viewtopic.php?f=3&t=23490&start=0#p126403</a><!-- l -->
testwico.prg
Hi, This seems to not draw icons. Is it supposed to be working?
testwico.prg
Alex, No, it is just a wrong test. Please delete it, thanks. You may use samples\TestLvw.prg
testxbrw error
Compiling... Harbour Compiler Alpha build 45.0 (Flex) Copyright 1999-2005, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'testxbrw.prg' and generating preprocessed output to 'testxbrw.ppo'... 100 300 400 Lines 689, Functions/Procedures 21 Generating C source output to 'testxbrw.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland testxbrw.c: Borland Resource Compiler Version 5.40 Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved. Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_HB_FUN_ADSSETSERVERTYPE' referenced from E:\PROGRAMS\CLIPPER\FWH\SAMPLES\TESTXBRW.OBJ Error: Unresolved external '_HB_FUN_ADSSETFILETYPE' referenced from E:\PROGRAMS\CLIPPER\FWH\SAMPLES\TESTXBRW.OBJ Error: Unresolved external '_HB_FUN_ADSKEYCOUNT' referenced from E:\PROGRAMS\CLIPPER\FWH\SAMPLES\TESTXBRW.OBJ Error: Unresolved external '_HB_FUN_ADSGETRELKEYPOS' referenced from E:\PROGRAMS\CLIPPER\FWH\SAMPLES\TESTXBRW.OBJ Error: Unresolved external '_HB_FUN_ADSSETRELKEYPOS' referenced from E:\PROGRAMS\CLIPPER\FWH\SAMPLES\TESTXBRW.OBJ Error: Unresolved external '_HB_FUN_ADS' referenced from E:\PROGRAMS\CLIPPER\FWH\SAMPLES\TESTXBRW.OBJ * There are errors
testxbrw error
That sample is using ADS local RDD. You need to link this library too: ads32.lib In order to use the right one, please do: implib.exe ads32.lib ads32.dll
testxbrw error
I may switch adsloc32.dll instead of ads32.dll becuase I did not find ads32.dll ? I should open the line : echo %hdir%\lib\rddads.lib + >> b32.bc
testxbrw error
yes, right.
testxbrw error
I took all the files associated with testxbrw.prg and recompiled and I found that error though that customer.dbf was inside the directory ? Error description: Error ADSCDX/6082 Open error: CUSTOMER
testxbrw error
I am sorry . missing ADS32* libraries Thanks
testxbrw error
Ehab, good you solved it <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
testxbrw filter
I am trying to update the testxbrw.prg to fullfill my needs as below . It does not work ??? select 1 USE METE index on dtoc(me_date) go top set filter to 1->me_serial="9855564" // USE CUSTOMER NEW
testxbrw filter
Ehab: You can used this sample code: FUNCTION Incremental( oWnd ) local oChild, oBrw DEFINE WINDOW oChild TITLE "Incremental seek " MDICHILD OF oWnd oBrw := TXBrowse():New( oChild ) oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW oBrw:nColDividerStyle := LINESTYLE_INSET oBrw:nRowDividerStyle := LINESTYLE_INSET oBrw:bSeek := { |c| DbSeek( Upper( c ) ) } oBrw:SetRDD() oBrw:CreateFromCode() oChild:oClient := oBrw ACTIVATE WINDOW oChild ON INIT oBrw:SetFocus() RETURN NIL
testxbrw filter
Is that code will result to access one record as focused by dbseek ?
testxbrw filter
Even that code does not focus on seeking x value ?!!!!
testxbrw filter
Use SET SCOPE its faster and you can use ranges.
testzip.prg lib ?
salve ho harbour80 di nov/08 e ho provato a compilare il file testzip.prg, mi da questi erroriUnresolved external:_HB_FUN_ZIPFILE_HB_FUN_ZIPTYPE_HB_FUN_ZIPBLOCK_HB_FUN_ZIPMSGQuale libreria devo usare ?GrazieRomeo/Zingoni
testzip.prg lib ?
Se non vado errato, quelle sono funzioni di Fivewin/Clipper a 16 bit e non sono usabili con FWH.Devi usare le funzioni di hbziparc.lib.PS. Non so cosa sia Harbour80.EMG
testzip.prg lib ?
harbour80...intendevo harbour vers .8.x comperato a nov/08Comunque il file testzip.prg si trova nella cartella di FWH (x harbour)C'e' anche il file testuzip.prg Mi danno enrambi gli stessi errori nella compilazione?Romeo
testzip.prg lib ?
[quote="Romeo":qibjqz6d]harbour80...intendevo harbour vers .8.x comperato a nov/08[/quote:qibjqz6d] Scusa, è per capire: "comperato"? Harbour è gratuito e non ne esiste neanche una distribuzione commerciale come quella di xHarbour.com. Quindi non capisco proprio come tu abbia fatto a comperarlo. Forse intendevi riferirti a quello fornito con le FWH? [quote="Romeo":qibjqz6d]Comunque il file testzip.prg si trova nella cartella di FWH (x harbour) C'e' anche il file testuzip.prg Mi danno enrambi gli stessi errori nella compilazione ?[/quote:qibjqz6d]Ripeto: quelle sono funzioni a 16 bit e non possono essere utilizzate con FWH. Devi utilizzare le funzioni presenti in hbziparc.lib. Nel forum mi sembra di aver già riportato diverse volte la documentazione relativa. Prova a fare una ricerca.EMG
texcelscript
Necesito exportar una .dbf a excel, ya tengo la clase texcelscript que tan amablemente me la paso victor, ya la enlace y todo ok, pero al intentar crear el archivo me truena con: Error Excel.Application:WORKBOOKS/16389 E_FAIL: OPEN como soy novato en esto pues no se por donde buscarle. estoy usando fwh, xharbour (99.60 simplex) Alguien la tendra funcionando para xharbour que me la pudiera proporcionar, o acaso la toleauto no la tengo actualizada? saludos paco
texcelscript
listo ya exporta, gracias
texplorer bar class
Hi All ! [img:3meet4j9]http&#58;//planetsourcecode&#46;com/Upload_PSC/ScreenShots/PIC2004621221246286&#46;jpg[/img:3meet4j9] Vb source code : [url:3meet4j9]http&#58;//planetsourcecode&#46;com/vb/scripts/ShowCode&#46;asp?txtCodeId=53572&lngWId=1[/url:3meet4j9] Can you help me ? Please translate to fivewin. best regard areang
texplorer bar class
Vb source code for explorer bar : [url:1m8xf5pa]http&#58;//planetsourcecode&#46;com/vb/scripts/ShowCode&#46;asp?txtCodeId=61899&lngWId=1[/url:1m8xf5pa] Please translate to fivewin Thank's areang
texplorer bar class
YOU MUST USE Vtaskbar CLASS of Canalfive FOR IT send a message to <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
texplorer bar class
I send him a lot of Emails and never get an answer Im looking fir Vtaskbar tooooo
texplorer bar class
Uwe: Mr. RF is a Canal Five reseller Contat him by email. He tell us here about it. (Sorry for my bad English) Best Regards Ruben Fernandez
texplorer bar class
Uwe: Now We are handling the CanalFive distribuition WorldWide. VtaskBar is the best way to go the way you want, we delivery inmediatly and you can pay worldwide by PayPal Pleas feel free to contact me: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
text 2 mysql or txt 2 msql
Someone have a utility or a func to converte a delimiter text file to a file MYSQL or Sql ?THANKS
text 2 mysql or txt 2 msql
Que quieres hacer, tienes algun ejemplo...What do u need, any example ?thks
text 2 mysql or txt 2 msql
no I have a txt file and I wanted create a file to use it on asp web page
text file
Wich class I must use to create a text ascii file ? I must also cal an .bat file from fwh , how I can call this file bat ? thanks
text file
Silvio, // At end of job, we add the last line to cText : cText := cText + cNewLine + CRLF // Then we write it to disk as a .TXT file: MEMOWRIT(cTxtfile, cText) I think .BAT is executed like a EXE regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
text file
I'sorry I am having a memory void and i'm worried that i should deliver the application early and i'm really desperate
text file
Uwe, sample : nSticketnumber:= "123456" number of the ticket ShellExecute(GetActiveWindow(),'Open',oApp():cPath+"\"+nSticketnumber+".bat",,,4)
text into...
where i can found information about used of "text into..."?
text into...
Hello, do you mean this? Best regaqrds, Otto [code=fw:tvssbhei]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xcommand <span style="color: #0000ff;">TEXT</span> INTO <v> => <span style="color: #00D7D7;">#pragma</span> __cstream|<v>:=%s<br />#xcommand <span style="color: #0000ff;">TEXT</span> INTO <v> ADDITIVE => <span style="color: #00D7D7;">#pragma</span> __cstream|<v>+=%s<br />#xcommand <span style="color: #0000ff;">TEXT</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">VAR</span> <var> => <span style="color: #00D7D7;">#pragma</span> __stream|<var>:=%s<br />#xcommand ENDTEXT => <span style="color: #00D7D7;">#pragma</span> __endtext<br /><br /><br /><br /><span style="color: #0000ff;">TEXT</span> INTO cXml<br /><?xml version=<span style="color: #ff0000;">"1.0"</span> encoding=<span style="color: #ff0000;">"utf-8"</span>?><br /><soap12:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns:<span style="color: #000000;">xsd</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema"</span> xmlns:<span style="color: #000000;">soap12</span>=<span style="color: #ff0000;">"http://www.w3.org/2003/05/soap-envelope"</span>><br />  <soap12:<span style="color: #000000;">Body</span>><br />    <SaveGB xmlns=<span style="color: #ff0000;">"http://tempuri.org/"</span>><br />      <key>KEY</key><br />      <xml>string</xml><br />      <herkunft>HERKUNFT</herkunft><br />    </SaveGB><br />  </soap12:<span style="color: #000000;">Body</span>><br /></soap12:<span style="color: #000000;">Envelope</span>>    <span style="color: #B900B9;">//ENDTEXT</span><br />ENDTEXT<br />? cXml</div>[/code:tvssbhei]
text on a panel - on init
Hello, I have a window with a panel and would like to show a text on the panel. It is working when I use a button to start the action to fire the oPanel:say but I don’t find a way to show the text when starting the program automatically. Thanks in advance Otto [code=fw:3p88z4ca]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// FiveWin for Pocket PC - </span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWCE.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WPPC<span style="color: #000000;">\I</span>NCLUDE<span style="color: #000000;">\D</span>LL.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#DEFINE</span> <span style="color: #00C800;">TRUE</span> .T.<br /><span style="color: #00D7D7;">#DEFINE</span> <span style="color: #00C800;">FALSE</span> .F.<br /><br /><span style="color: #B900B9;">//SIZE 240,320</span><br />REQUEST DBFCDX<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oBtnEnde<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTmy<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPanel1<br /><br />&nbsp; &nbsp;set <span style="color: #00C800;">default</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">&#40;</span>cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> IsExeRunning<span style="color: #000000;">&#40;</span> cFileName<span style="color: #000000;">&#40;</span> HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"The application is already running"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;set deleted <span style="color: #0000ff;">on</span><br />&nbsp; &nbsp;oTmy := Tmy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;sysrefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Next"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oPanel1 := TPanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">105</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">230</span>,<span style="color: #000000;">240</span>,oWnd,.T.,CLR_BLACK, CLR_YELLOW<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #B900B9;">//opanel1:Say( 195,169 ,"TEST" , RGB(250,28,3) , , , .T., .T. ) &nbsp;</span><br />&nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">177</span> <span style="color: #0000ff;">BUTTON</span> oBtnEnde <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"show"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">ACTION</span> oTmy:<span style="color: #000000;">printsay</span><span style="color: #000000;">&#40;</span>opanel1<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> <br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oTmy:<span style="color: #000000;">printsay</span><span style="color: #000000;">&#40;</span>opanel1<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> Tmy<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; Version<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;CLASSDATA lRegistered AS LOGICAL<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> printsay<br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> Tmy<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Version</span> &nbsp; := <span style="color: #ff0000;">"2008-12"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">self</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;<br /><span style="color: #00C800;">METHOD</span> printsay<span style="color: #000000;">&#40;</span>opanel1<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//local hBmp</span><br />&nbsp; &nbsp; <br /><span style="color: #B900B9;">//&nbsp; DEFINE BITMAP hBmp FILE CurDir() + "\KELLNER.BMP"</span><br /><span style="color: #B900B9;">//&nbsp; opanel1:SayBitmap( 50,50, hBmp, , &nbsp;) &nbsp;</span><br />&nbsp; &nbsp; opanel1:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">69</span>,<span style="color: #000000;">69</span> ,<span style="color: #ff0000;">"TEST"</span> , RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">250</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> , , , .T., .T. <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:3p88z4ca]
text on a panel - on init
Otto, Why don't you create a SAY control as child of the panel ? @ ..., ... SAY oSay PROMPT "test" OF oPanel
text on a panel - on init
Hello Antonio, Thank you for your response. I need more than one line of text and many say – objects and pictures. Then the application is overloaded and slow. It should become a kind of touchflow navigation. Best regards, Otto
text on a panel - on init
Otto, Then please try it this way: oPanel:bPainted = { | hDC | oPanel:Say( ... ), ... } When you want the panel to be repainted, simply do: oPanel:Refresh()
text on a panel - on init
Hello Antonio, I made the changes you suggested but I can’t get it working. Here is my code. Thanks in advance Otto [code=fw:gkim0tk8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// FiveWin for Pocket PC - </span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWCE.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WPPC<span style="color: #000000;">\I</span>NCLUDE<span style="color: #000000;">\D</span>LL.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> SHFS_SHOWTASKBAR <span style="color: #000000;">1</span>                      <span style="color: #B900B9;">// 0x0001</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDETASKBAR <span style="color: #000000;">2</span>                      <span style="color: #B900B9;">// 0x0002 //2</span><br /><span style="color: #00D7D7;">#define</span> SHFS_SHOWSIPBUTTON <span style="color: #000000;">4</span>                    <span style="color: #B900B9;">// 0x0004</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDESIPBUTTON <span style="color: #000000;">8</span>                    <span style="color: #B900B9;">// 0x0008 //8</span><br /><span style="color: #00D7D7;">#define</span> SHFS_SHOWSTARTICON <span style="color: #000000;">16</span>                   <span style="color: #B900B9;">// 0x0010</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDESTARTICON <span style="color: #000000;">20</span>                   <span style="color: #B900B9;">// 0x0020 //32</span><br /><br /><br /><span style="color: #00D7D7;">#DEFINE</span> <span style="color: #00C800;">TRUE</span> .T.<br /><span style="color: #00D7D7;">#DEFINE</span> <span style="color: #00C800;">FALSE</span> .F.<br /><br /><span style="color: #B900B9;">//SIZE 240,320</span><br />REQUEST DBFCDX<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> oBtnEnde<br />   <span style="color: #00C800;">local</span> oWnd<br />   <span style="color: #00C800;">local</span> oTmy<br />   <span style="color: #00C800;">local</span> oPanel1<br />    <span style="color: #00C800;">local</span> oBtnShow<br />   <br />   set <span style="color: #00C800;">default</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">&#40;</span>cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> IsExeRunning<span style="color: #000000;">&#40;</span> cFileName<span style="color: #000000;">&#40;</span> HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"The application is already running"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />   <span style="color: #00C800;">endif</span><br /><br />   set deleted <span style="color: #0000ff;">on</span><br />   <br />  <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Next"</span><br />   <br />   oPanel1 := TPanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">105</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">230</span>,<span style="color: #000000;">240</span>,oWnd,.T.,CLR_BLACK, CLR_YELLOW<span style="color: #000000;">&#41;</span><br />   oPanel1:<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />    <br />    <br />   oPanel1:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> | oWnd:<span style="color: #000000;">hDC</span> | opanel1:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">195</span>,<span style="color: #000000;">169</span> ,<span style="color: #ff0000;">"TEST"</span> , RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">250</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> , , , .T., .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /> <br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">177</span> <span style="color: #0000ff;">BUTTON</span> oBtnEnde <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Ende"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">ACTION</span> ownd:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> <br />  <br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">17</span> <span style="color: #0000ff;">BUTTON</span> oBtnShow <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"show"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">ACTION</span> oPanel1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> <br />  <br />  <br />   ShFullScreen<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,SHFS_HIDESTARTICON <span style="color: #000000;">&#41;</span><br />   ShFullScreen<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,SHFS_HIDETASKBAR <span style="color: #000000;">&#41;</span><br />   ShFullScreen<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,SHFS_HIDESIPBUTTON <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd  <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> MoveWindow<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hWnd</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">320</span><span style="color: #000000;">&#41;</span>,;<br />      SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Next"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>,;<br />      SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Next"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />     oWnd:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oPanel1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:gkim0tk8]
text on a panel - on init
Otto, My proposed code was fine but Class TPanel was not managing bPainted. So I have added Class TPanel at the bottom of the PRG and modified it properly. This PRG is working fine: [code=fw:d1g10sav]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// FiveWin for Pocket PC - </span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWCE.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> SHFS_SHOWTASKBAR <span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x0001</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDETASKBAR <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x0002 //2</span><br /><span style="color: #00D7D7;">#define</span> SHFS_SHOWSIPBUTTON <span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x0004</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDESIPBUTTON <span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x0008 //8</span><br /><span style="color: #00D7D7;">#define</span> SHFS_SHOWSTARTICON <span style="color: #000000;">16</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// 0x0010</span><br /><span style="color: #00D7D7;">#define</span> SHFS_HIDESTARTICON <span style="color: #000000;">20</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// 0x0020 //32</span><br /><br /><br /><span style="color: #00D7D7;">#DEFINE</span> <span style="color: #00C800;">TRUE</span> .T.<br /><span style="color: #00D7D7;">#DEFINE</span> <span style="color: #00C800;">FALSE</span> .F.<br /><br /><span style="color: #B900B9;">//SIZE 240,320</span><br />REQUEST DBFCDX<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oBtnEnde<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTmy<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPanel1<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oBtnShow<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;set <span style="color: #00C800;">default</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">&#40;</span>cFilePath<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> IsExeRunning<span style="color: #000000;">&#40;</span> cFileName<span style="color: #000000;">&#40;</span> HB_ArgV<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"The application is already running"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;set deleted <span style="color: #0000ff;">on</span><br />&nbsp; &nbsp;<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Next"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oPanel1 := TPanel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">105</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">230</span>,<span style="color: #000000;">240</span>,oWnd,.T.,CLR_BLACK, CLR_YELLOW<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> | hDC | opanel1:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">195</span>,<span style="color: #000000;">169</span> ,<span style="color: #ff0000;">"TEST"</span> , RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">250</span>,<span style="color: #000000;">28</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> , , , .T., .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">177</span> <span style="color: #0000ff;">BUTTON</span> oBtnEnde <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Ende"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">ACTION</span> ownd:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> <br />&nbsp; <br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">17</span> <span style="color: #0000ff;">BUTTON</span> oBtnShow <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"show"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">ACTION</span> oPanel1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> <br />&nbsp; <br />&nbsp; <br />&nbsp; &nbsp;ShFullScreen<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,SHFS_HIDESTARTICON <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ShFullScreen<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,SHFS_HIDETASKBAR <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ShFullScreen<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,SHFS_HIDESIPBUTTON <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> MoveWindow<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hWnd</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">320</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; SHOWWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Next"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; SETFOREGROUNDWINDOW<span style="color: #000000;">&#40;</span> FINDWINDOW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Next"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oPanel1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #B900B9;">// TPanel Class. Mainly used for Automatic Alignment techniques</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"WinApi.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> SYS_COLOR_INDEX_FLAG &nbsp;0x40000000<br /><span style="color: #00D7D7;">#define</span> COLOR_BTNFACE &nbsp; &nbsp; &nbsp; &nbsp; nOr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, SYS_COLOR_INDEX_FLAG <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TPanel <span style="color: #0000ff;">FROM</span> TControl<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nStart, nEnd <br /><br />&nbsp; &nbsp;CLASSDATA lRegistered AS LOGICAL<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, oWnd <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">BeginPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">EndPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Notify<span style="color: #000000;">&#40;</span> nIdCtrl, nPtrNMHDR <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">Notify</span><span style="color: #000000;">&#40;</span> nIdCtrl, nPtrNMHDR <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">VScroll</span><span style="color: #000000;">&#40;</span> nWParam, nLParam <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, oWnd, lPixel, nClrText, nClrBack <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TPanel<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nTop := <span style="color: #000000;">0</span>, nLeft := <span style="color: #000000;">0</span>, nBottom := <span style="color: #000000;">100</span>, nRight := <span style="color: #000000;">100</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lPixel := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack := GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNFACE <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nTop</span> &nbsp; &nbsp;= nTop<br />&nbsp; &nbsp;::<span style="color: #000000;">nLeft</span> &nbsp; = nLeft<br />&nbsp; &nbsp;::<span style="color: #000000;">nBottom</span> = nBottom * <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, <span style="color: #000000;">1</span>, SAY_CHARPIX_H <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nRight</span> &nbsp;= nRight * <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, <span style="color: #000000;">1</span>, SAY_CHARPIX_W <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp;= oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">nStyle</span> &nbsp;= nOr<span style="color: #000000;">&#40;</span> WS_CHILD, WS_VISIBLE, WS_VSCROLL, WS_BORDER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lDrag</span> &nbsp; = .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">nClrText</span> = nClrText<br />&nbsp; &nbsp;::<span style="color: #000000;">nClrPane</span> = nClrBack<br />&nbsp; &nbsp;::<span style="color: #000000;">nStart</span> = <span style="color: #000000;">0</span> <br />&nbsp; &nbsp;::<span style="color: #000000;">nEnd</span> &nbsp; = <span style="color: #000000;">-1000</span> <br /><br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> SCROLLBAR ::<span style="color: #000000;">oVScroll</span> <span style="color: #0000ff;">VERTICAL</span> <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TPanel<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nTop, nLeft, nHeight, nWidth, nBevel<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPainted</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPainted</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oClient</span> != <span style="color: #00C800;">nil</span> .and. <span style="color: #000000;">&#40;</span> nBevel := ::<span style="color: #000000;">oClient</span>:<span style="color: #000000;">nClientBevel</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; nBevel &nbsp;-= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; nTop &nbsp; &nbsp;:= nBevel<br />&nbsp; &nbsp; &nbsp; nLeft &nbsp; := nBevel<br />&nbsp; &nbsp; &nbsp; nHeight := ::<span style="color: #000000;">nHeight</span> - nBevel - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; nWidth &nbsp;:= ::<span style="color: #000000;">nWidth</span> - nBevel - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oTop</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTop += ::<span style="color: #000000;">oTop</span>:<span style="color: #000000;">nHeight</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBottom</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeight -= ::<span style="color: #000000;">oBottom</span>:<span style="color: #000000;">nHeight</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oLeft</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLeft += ::<span style="color: #000000;">oLeft</span>:<span style="color: #000000;">nWidth</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oRight</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth -= ::<span style="color: #000000;">oRight</span>:<span style="color: #000000;">nWidth</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; WndBoxIn<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nTop, nLeft, nHeight, nWidth <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">VScroll</span><span style="color: #000000;">&#40;</span> nWParam, nLParam <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TPanel <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nScrollCode := nLoWord<span style="color: #000000;">&#40;</span> nWParam <span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nScrollCode == SB_LINEUP <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nStart</span> < <span style="color: #000000;">0</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScrollWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nStart</span> += <span style="color: #000000;">10</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> -::<span style="color: #000000;">nStart</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nScrollCode == SB_LINEDOWN <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">nStart</span> > ::<span style="color: #000000;">nEnd</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScrollWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nStart</span> -= <span style="color: #000000;">10</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oVScroll</span>:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> -::<span style="color: #000000;">nStart</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">endcase</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span> &nbsp; &nbsp;<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:d1g10sav]
text on a panel - on init
Otto, If you change this line, then you can see how it gets properly updated when you press "show" button: oPanel1:bPainted = { | hDC | opanel1:Say( 195,169 , Time() , RGB(250,28,3) , , , .T., .T. ) }
text on a panel - on init
Hello Antonio, thank you so much. Perfect. Best regards, Otto
text on bitmap
How I can write a text on a bitmap ?
text on bitmaps
it is possibile write a text on bitmap ? Sorry I mean How I can write a number with the mouse ( when I click over the bitmap) initiating from 1 or How create a xbrowse grid 4X4 and when I click on a cell it insert the number from 1 to n ...?
text on bitmaps
In the samples folder bmptext.prg Saludos
text on bitmaps
Sorry Imake an error I modified the message but then not saved it
text on tab
I'd Like insert a text on the left of tabs how I can make to write it on the left I try as you can see in this picture but the text is wrote near to second tab [img:2tzjj444]http&#58;//img16&#46;imageshack&#46;us/img16/6159/errtab&#46;png[/img:2tzjj444] I made the tab @ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ; OPTION nOrder SIZE oApp():oWndMain:nWidth()-80, 12 PIXEL OF oApp():oDlg ; ITEMS 'Codice','Descrizione' ACTION .... activate dialog on init Tab_scritta( oTab,text,nSplit) ... STATIC FUNCTION Tab_scritta( oTab,text,nSplit) lOCAL oPSay2 @ 0, 20 SAY oPSay2 PROMPT text OF oApp():oTab COLOR CLR_RED TRANSPARENT return nil Any solution ?
text on tab
Silvio, To get the left text-startposition, maybe You can calculate the needed total Tab-width like : [img:103ew6we]http&#58;//www&#46;pflegeplus&#46;com/pictures/tabwidth,jpg[/img:103ew6we] [code=fw:103ew6we]<div class="fw" id="{CB}" style="font-family: monospace;"><br />nSpace := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> oTabs:<span style="color: #000000;">aPrompts</span> <span style="color: #000000;">&#41;</span><br />       nSpace := nSpace + GetTextWidth<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, StrTran<span style="color: #000000;">&#40;</span> oTabs:<span style="color: #000000;">aPrompts</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"&"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, ;<br />       oTabs:<span style="color: #000000;">oBold</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span> + ;<br />       <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> oTabs:<span style="color: #000000;">ahBitmaps</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">20</span><br /><span style="color: #00C800;">NEXT</span>   <br />   <br />Msgalert<span style="color: #000000;">&#40;</span> nSpace <span style="color: #000000;">&#41;</span><br /> </div>[/code:103ew6we] @ 0, [color=#FF0000:103ew6we]nSpace[/color:103ew6we] SAY oPSay2 PROMPT text OF oApp():oTab COLOR CLR_RED TRANSPARENT Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
text on tab
good run ok!!! but only until two tabs If I have Many tabs it not run pls see it [img:3hu57gi9]http&#58;//img843&#46;imageshack&#46;us/img843/4742/errortab2&#46;png[/img:3hu57gi9]
text on tab
I resolve with : IF Len( oTab:aPrompts ) > 5 numtab:= 3 ELSE numtab:= Len( oTab:aPrompts ) ENDIF FOR n = 1 to numtab NOW run ok with ( until ) 10 Tabs I not Know why ...eh eh eh <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
text on tab
Silvio, I would adjust the text from [color=#FF0000:272pd8fr]Dialog RIGHT-position.[/color:272pd8fr] That looks much better and the Position is always the same distance from Right. But if You like, getting closer to the Tabs, just increase the defined Space from right. Some calculations needed, using [color=#FF0000:272pd8fr][b:272pd8fr]any Font and Text[/b:272pd8fr].[/color:272pd8fr] Without calculation, it will be very hard, to adjust the Text to the needed Position. [img:272pd8fr]http&#58;//www&#46;pflegeplus&#46;com/pictures/Textright&#46;jpg[/img:272pd8fr] @ 0, [color=#FF0000:272pd8fr]any Value [/color:272pd8fr]SAY oPSay2 PROMPT text OF oApp():oTab COLOR CLR_RED TRANSPARENT Usage : [color=#0000FF:272pd8fr]Text := "Test String from right" // any Value of 0, 100. The needed Size 25, 10 will be calculated with the Function. @ 0, 100 SAY oPSay2 VAR Text SIZE 25,10 OF oApp():oTab CLR_RED PIXEL TRANSPARENT FONT oTxtFont ... ... // 100 = defined Text-top // 5 = the wanted Distance between Text-end and Dialog-right ACTIVATE DIALOG oDlg CENTERED ; ON INIT TEXT_RIGHT( oPSay2, oTxtFont, 100, oDlg:nRight - 5, cText ) RETURN NIL[/color:272pd8fr] [code=fw:272pd8fr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> TEXT_RIGHT<span style="color: #000000;">&#40;</span> oSay, oFont, nTop, nLeft, cText <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">LOCAL</span> hDC, nTxtWidth, nTxtHeight<br /><br />hDC := oSay:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />nTxtHeight := INT<span style="color: #000000;">&#40;</span>  <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> oFont:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">10</span><br /><span style="color: #00C800;">IF</span> oFont:<span style="color: #000000;">lItalic</span> = .F. <span style="color: #B900B9;">// Italic</span><br />    nTxtWidth :=  INT<span style="color: #000000;">&#40;</span> GettextWidth<span style="color: #000000;">&#40;</span> hDC, ALLTRIM<span style="color: #000000;">&#40;</span>cText<span style="color: #000000;">&#41;</span>, oFont:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">6</span><br /><span style="color: #00C800;">ELSE</span><br />    nTxtWidth :=  INT<span style="color: #000000;">&#40;</span> GettextWidth<span style="color: #000000;">&#40;</span> hDC, ALLTRIM<span style="color: #000000;">&#40;</span>cText<span style="color: #000000;">&#41;</span>, oFont:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">10</span><br /><span style="color: #00C800;">ENDIF</span><br />oSay:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oSay:<span style="color: #000000;">nWidth</span> := nTxtWidth<br />oSay:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> nTop, nLeft - nTxtWidth, nTxtWidth, nTxtHeight + <span style="color: #000000;">&#40;</span> nTxtHeight / <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// adjusted Height</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:272pd8fr] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
text over the video
Hi All !Can someone translate to FWH ?Thanks for helpBest RegardsFafi[code:2qvxew7l] The Actual Work Displaying text over video means, that first we need to create a bitmap then we will write our text over that bitmap, and that bitmap will be blended with the running video with the help of VMR9&#46; Need Some Control Over Mixing The thing that is vital, Is some preferences which we need to set&#46; Actually if you display an image over video, You don’t need much control over actual blending, Because if an image is a bit is scaled or changed it is difficult to catch it, But in the case of text you can’t accept such situation&#46; Because if text is a bit scaled or changed it would be much harder to read it&#46; So first of all we need to tell the mixer to not scale our text&#46; The interface which will come to save us is IVMRMixerControl9&#46; Here we request point filtering instead of bilinear filtering &#40;which is default&#41; to improve the text quality&#46; If you are not scaling the app Image, you should use point filtering&#46; pVmr->QueryInterface&#40; IID_IVMRMixerControl9, &#40;void**&#41; &pMix&#41;; DWORD dwPrefs=0; pMix->GetMixingPrefs&#40; &dwPrefs&#41;; dwPrefs |= MixerPref_PointFiltering; dwPrefs &= ~&#40; MixerPref_BiLinearFiltering &#41;; pMix->SetMixingPrefs&#40; dwPrefs &#41;; Text To Image Now we will create the bitmap having our text&#46; CDC * pdc = GetDC&#40;&#41;; CDC mCompatibleDC; mCompatibleDC&#46;CreateCompatibleDC&#40; pdc &#41;; mCompatibleDC&#46;SelectObject&#40; mFont &#41;; CSize strSize = mCompatibleDC&#46;GetTextExtent&#40; strFinish &#41;; CBitmap bm; bm&#46;CreateCompatibleBitmap&#40; pdc, strSize&#46;cx, strSize&#46;cy&#41;; mCompatibleDC&#46;SelectObject&#40; &bm &#41;; mCompatibleDC&#46;SetBkColor&#40;mBK_Color&#41;; mCompatibleDC&#46;SetTextColor&#40;mTXT_Color&#41;; mCompatibleDC&#46;TextOut&#40;0,0,strFinish&#41;; This is easy to understand the above code&#46; * Create CDC which should be compatible with the display &#40;or as required&#41; * Then we select the font in that CDC&#46; * We get the size of the actual text in logical units&#46; * Then we create the bitmap of the size of the text&#46; * We select that bitmap in our CDC&#46; * We set text and background color of the text &#46; * We write the actual text in our CDC This all mean, that now in our CDC we have an image with the required text&#46; Displaying Text Over Video Now we will prepare for showing the image with text over video&#46; This snippet of code is approximately similar to a my previous article&#46;&#46; VMR9AlphaBitmap bmpInfo; ZeroMemory&#40;&bmpInfo, sizeof&#40;bmpInfo&#41; &#41;; bmpInfo&#46;dwFlags |= VMRBITMAP_HDC; bmpInfo&#46;hdc = pDC->m_hDC; LONG cx, cy; pWC->GetNativeVideoSize&#40; &cx, &cy, NULL, NULL&#41;; bmpInfo&#46;rSrc = Rect; // rDest specifies the destination rectangle //in composition space &#40;0&#46;0f to 1&#46;0f&#41; bmpInfo&#46;rDest&#46;right = 1&#46;0f; bmpInfo&#46;rDest&#46;left = 0&#46;0f; bmpInfo&#46;rDest&#46;top = &#40;float&#41;&#40;cy - Rect&#46;Height&#40;&#41;&#41; / &#40;float&#41;cy - EDGE_BUFFER; bmpInfo&#46;rDest&#46;bottom = 1&#46;0f - EDGE_BUFFER; // Set the transparency // value &#40;1&#46;0 is opaque, 0&#46;0 is transparent&#41; bmpInfo&#46;fAlpha = 1&#46;0; pBmp->SetAlphaBitmap&#40; &bmpInfo&#41;; All is done now you can blend any text over video&#46; [/code:2qvxew7l]
text's transparence in ribbonbar
i have inserted in the ribbonbar example the code below, but i haven't the transparence of the texts. (windows xp, fwh 7.09, xHarbour 1.21) @ 5, 1 SAY oSay1 PROMPT "ribbonbar" OF oGr TRANSPARENT DEFINE BRUSH oBrush STYLE NULL @ 6, 1 CHECKBOX oCheck1 VAR lPrev OF oGr1 PROMPT "ribbonbar" oCheck1:oBrush := oBrush @ 2, 1 RADIO oRad1 VAR n OF oGr5 ITEMS " rad1", "rad2" oRad1:aItems[1]:oBrush := oBrush what can i do to have the transparence? thanks in advance
text's transparence in ribbonbar
Please, can somebody posts an example how to insert in ribbonbar a transparent SAY, CHECKBOX or RADIOBUTTON? thanks in advance marzio
text's transparence in ribbonbar
Marzio, Could you please post a screenshot with an example of what you want ? thanks
text's transparence in ribbonbar
Antonio, see this image: [url:1ri9o6qh]http&#58;//www&#46;marzioni&#46;it/ribbonbar&#46;jpg[/url:1ri9o6qh] thanks, marzio
text's transparence in ribbonbar
Hello Marzio, I use a transparent VTitle, to show a Text with any Style inside a Ribbonbar : [img:2qltqno8]http&#58;//www&#46;pflegeplus&#46;com/pictures/ribb1&#46;jpg[/img:2qltqno8] [code=fw:2qltqno8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />..<br />..<br /><span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"      Ribbon-Bar Setup     "</span> ;<br />HEIGHT <span style="color: #000000;">220</span> TOPMARGIN <span style="color: #000000;">60</span><br />..<br />..<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Times New Roman"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span> <br /><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">380</span>  <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">35</span> <span style="color: #0000ff;">of</span> oRBar SHADOW BOTTOMLEFT SHADOWSIZE <span style="color: #000000;">10</span><br />oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">8553215</span>, <span style="color: #000000;">16777215</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />oTitle:<span style="color: #000000;">lTransparent</span> := .T.<br />@ <span style="color: #000000;">0.8</span>, <span style="color: #000000;">30</span>  TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"RibbonBar - FIVEWIN 9.07"</span>  <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">128</span> <span style="color: #0000ff;">FONT</span> oFont 3d<br /> oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, W_COLOR1, W_COLOR1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #B900B9;">// transparent text</span><br />@ <span style="color: #000000;">100</span>, <span style="color: #000000;">450</span>  <span style="color: #0000ff;">TITLE</span> oTitle1 <span style="color: #0000ff;">size</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">35</span> <span style="color: #0000ff;">of</span> oRBar TRANSPARENT NOBORDER<br />oTitle1:<span style="color: #000000;">lTransparent</span> := .T.<br />@ <span style="color: #000000;">0.8</span>, <span style="color: #000000;">30</span>  TITLETEXT <span style="color: #0000ff;">OF</span> oTitle1 <span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Transparent Test"</span>  <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">128</span> <span style="color: #0000ff;">FONT</span> oFont <br />..<br />..<br /> </div>[/code:2qltqno8] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
text's transparence in ribbonbar
Marzio, Para mostrar un contro tipo SAY puedes hacer: [code=fw:17zra94e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   @ <span style="color: #000000;">68</span>, <span style="color: #000000;">30</span> ADD <span style="color: #0000ff;">BUTTON</span> oSay1 GROUP oGr <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"A Say"</span> SAYBUTTON<br /> </div>[/code:17zra94e] [img:17zra94e]http&#58;//img687&#46;imageshack&#46;us/img687/2381/69904466&#46;jpg[/img:17zra94e]
text's transparence in ribbonbar
thanks for the solutions, what to do for CHECKBOX and RADIOBUTTON? marzio
text's transparence in ribbonbar
Marzio, [img:qp0yno3g]http&#58;//img338&#46;imageshack&#46;us/img338/1420/check1&#46;jpg[/img:qp0yno3g] [img:qp0yno3g]http&#58;//img687&#46;imageshack&#46;us/img687/1986/check2&#46;jpg[/img:qp0yno3g] [code=fw:qp0yno3g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   @ <span style="color: #000000;">64</span>, <span style="color: #000000;">70</span> ADD <span style="color: #0000ff;">BUTTON</span> oChk1 GROUP oGr1 BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>heckon.bmp"</span> MOSTLEFT <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">85</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Checkbox"</span> ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lVal1 := ! lVal1, oChk1:<span style="color: #000000;">SetFile</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lVal1, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>heckon.bmp"</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\c</span>heckoff.bmp"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  </div>[/code:qp0yno3g] But there is a required fix in Class TRBtn to make the above work, in Method SetFile(): [code=fw:qp0yno3g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> SetFile<span style="color: #000000;">&#40;</span> cBmpUpFile, cBmpDownFile <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br />   ::<span style="color: #000000;">FreeBitmaps</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> cBmpUpFile, cBmpDownFile <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:qp0yno3g]
texto en buttonbmp
Hola, quisiera saber como se si un buttonbmp desde recurso tiene texto o esta en blanco?, probe con ::cCaption y si funciona, parece que esto es desde codigo, probe con ::cPrompt y no funciona truena, pense que este era para saberlo desde recurso, alguna idea? gracias Paco