topic
stringlengths
1
63
text
stringlengths
1
577k
upload un exe
Estimados; Le pedi el correo a Antolin porque el sitio dice que me dá espacio adicional por invitados (al estilo otros como Dropbox). Para los interesados este es el sitio: [url:wdcn288h]https://app.box.com/[/url:wdcn288h] Saludos
upper/lower
exist a function to change the first letter Upper and the other lower of a string ? sample I have ---> PALMA I wish ---> Palma
upper/lower
Silvio, [color=#0000FF:1ga4z9ak][b:1ga4z9ak]StrCapFirst( <cString> ) --> cCnvString [/b:1ga4z9ak][/color:1ga4z9ak] This function capitalize the first character and transform the other charaters to lowercase. Sample: local cString := "text TO CONVERT" cString := StrCapFirst( cString ) ? cString --> "Text to convert" regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
upper/lower
[url:2yf67su4]https&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_functions_alphabetically_ordered[/url:2yf67su4]
upper/lower
Silvo I wrote this function that automatically puts the very first letter as caps .. then searches for a space in the string then +1 capitalizes the next letter .. and so on thru the string. Rick Lipkin [code=fw:6mo9crno]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//------------------</span><br />Func _UpperLower<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> nLen,i,cField<br /><br />nLen  := len<span style="color: #000000;">&#40;</span> cText <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>cText<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">If</span> i = <span style="color: #000000;">1</span><br />      cField := upper<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cText,i,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      Loop<br />   <span style="color: #00C800;">Endif</span><br /><br />   <span style="color: #B900B9;">// check for multiple words</span><br />   <span style="color: #B900B9;">// use space as the delimeter</span><br /><br />   <span style="color: #00C800;">If</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cText,i,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> = space<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// found a space in between words</span><br />      i++<br />      cField := cField+<span style="color: #ff0000;">" "</span>+upper<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cText,i,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      loop<br />   <span style="color: #00C800;">Else</span><br />      cField := cField+lower<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cText,i,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">Next</span><br /><br />cText := cField<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>cText<span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:6mo9crno]
upper/lower
thanks to all
ups otra vez yo con otro problemita con el PDF
HOLAOTRA VEZ DANDO LATA <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Vi el ejemplo PDF.PRG y lo acople a mi programita todo funciona bien abre y presenta muy bien el archivito .PDF pero si quiero abrirlo por segunda vez, ya no responde tengo que cerrar el programa para que pueda abrirlo por segunda ocasiónQue tengo que hacer para que pueda abrir el archito.pdf cuanta veces quiera sin tener que cerrar el programita.Este es el ejemplo a si lo use sin modificar nadaSaluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> [code:2o6du7zf] // FiveWin ActiveX support demo - Using Adobe Acrobat Reader #include "FiveWin&#46;ch" function Main&#40;&#41; local oWnd, oBtn DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support" @ 2, 2 BUTTON oBtn PROMPT "Show PDF" SIZE 80, 20 ACTION ShowPDF&#40; oWnd, oBtn &#41; ACTIVATE WINDOW oWnd return nil function ShowPDF&#40; oWnd, oBtn &#41; local oActiveX oActiveX = TActiveX&#40;&#41;&#58;New&#40; oWnd, "AcroPDF&#46;PDF&#46;1" &#41; // Use "AcroPDF&#46;PDF&#46;1" for Acrobat Reader 7 oWnd&#58;oClient = oActiveX // To fill the entire window surface oActiveX&#58;Do&#40; "LoadFile", "fwintro&#46;pdf" &#41; oActiveX&#58;Do&#40; "SetCurrentPage", 1 &#41; oBtn&#58;Hide&#40;&#41; oWnd&#58;ReSize&#40;&#41; return nil [/code:2o6du7zf]
ups otra vez yo con otro problemita con el PDF
Aida:function ShowPDF( oWnd, oBtn ) local oActiveX oActiveX = TActiveX():New( [b:y9qvjjx5]oWnd:oWndClient[/b:y9qvjjx5], "AcroPDF.PDF.1" ) // Use "AcroPDF.PDF.1" for Acrobat Reader 7 oWnd:oClient = oActiveX // To fill the entire window surface oActiveX&#058;Do( "LoadFile", "fwintro.pdf" ) oActiveX&#058;Do( "SetCurrentPage", 1 ) oBtn:Hide() oWnd:ReSize() return nil Aida, para abrir outro documento experimente finalizar o objeto exemplo:oActiveX&#058;end()Veja se funciona ! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
ups otra vez yo con otro problemita con el PDF
Gracias SGSYa intente usando oActiveX&#058;end() pero no funciona <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Debe ser de otra manera, alguien del foro que sepa y que me pueda indicar que hacer porfis <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> SaluditosAida
ups otra vez yo con otro problemita con el PDF
Hola Aída:Yo lo hago de la siguiente manera y me abre el fichero cuantas veces quiera en ventanas diferentes:[code:ho4bss9b] &#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46; REDEFINE BUTTONBMP oBj5&#91;2&#93; ID 502 OF oDlg; ACTION &#40;VerPDF&#40;DOCU->Ubicado&#41;,oBj5&#91;9&#93;&#58;SetFocus&#40;&#41;&#41;; BITMAP "VER" PROMPT " Ver" TEXTRIGHT &#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46; ********************************* STATIC FUNCTION VerPDF&#40;cFichero&#41; ********************************* Local oDlg, oActiveX // DEFINE DIALOG oDlg RESOURCE "IMAGEN2" TITLE cFichero oDlg&#58;lHelpIcon&#58;=&#46;F&#46; REDEFINE ACTIVEX oActiveX ID 800 OF oDlg PROGID "AcroPDF&#46;PDF&#46;1" ACTIVATE DIALOG oDlg CENTERED ; ON INIT &#40;oActiveX&#58;Do&#40; "LoadFile", cFichero &#41;,oActiveX&#58;Do&#40; "SetCurrentPage", 1 &#41; &#41; NOMODAL RETURN NIL Nota&#58; el ID 800 es un objeto TBitmap dentro del diálogo IMAGEN2 [/code:ho4bss9b]De cualquier manera, por si se sirve de algo, prefiero abrir los archivos usando ShellExecute, que permite abrir cualquier archivo que tenga asociada una aplicación en windows (.pdf, .jpg,.xml,.doc,.....)ShellExecute( ,"open", DOCU->Ubicado,,,1 )
ups otra vez yo con otro problemita con el PDF
Gracias ManuelPondre atencion a tu ejemplo y lo pondre en practica y te comento despues como me fue.te agradesco mucho SaludosAida <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
ups otra vez yo con otro problemita con el PDF
Gracias Manuel <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Si funciono muy bien muchas gracias por tu ayuda <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> una preguntita mas, se puede hacer que el control del bitmapdonde sale el pdf se pueda maximizar <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> Gracias por todo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
ups otra vez yo con otro problemita con el PDF
Hola de nuevo Aida:Para poder maximizar tendrías que hacerlo en una ventana windows. Algo así como esto:[code:1df7wbxk] ************************ function VerPDF&#40;cFichero&#41; ************************ local oWnd, oActiveX DEFINE WINDOW oWnd TITLE "Ver archivo PDF" oActiveX = TActiveX&#40;&#41;&#58;New&#40; oWnd, "AcroPDF&#46;PDF&#46;1" &#41; oWnd&#58;oClient = oActiveX oActiveX&#58;Do&#40; "LoadFile", cFichero &#41; oActiveX&#58;Do&#40; "SetCurrentPage", 1 &#41; ACTIVATE WINDOW oWnd return nil [/code:1df7wbxk]
ups otra vez yo con otro problemita con el PDF
Graciashare una pruebita y si no me quedo con el primer ejemplo que funciona muy bien <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> GraciasSaluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Aida
urgent bugs lastest FWH and SQLRDD
Hello, - In datarow.prg, method savedbf(), at line 1332: [code=fw:jpslm1yo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> DbInfo<span style="color: #000000;">&#40;</span> DBI_ISFLOCK <span style="color: #000000;">&#41;</span> .or. DbRecordInfo<span style="color: #000000;">&#40;</span> DBRI_LOCKED, RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:jpslm1yo] It is not supported by SQLRDD. - In xbrowse, vertical scroll bar does not work. - Also, xbrowse is much slower in this version compared with FW 14.14. These are current style settings: [code=fw:jpslm1yo]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; WITH OBJECT oBrowse<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp;:= STRETCHCOL_LAST <span style="color: #B900B9;">//WIDEST</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetStyle</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2018</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;END</div>[/code:jpslm1yo] Thank you.
urgent bugs lastest FWH and SQLRDD
[quote:ndlcw4mm] - In datarow.prg, method savedbf(), at line 1332: Code: if !( DbInfo( DBI_ISFLOCK ) .or. DbRecordInfo( DBRI_LOCKED, RECNO() ) ) It is not supported by SQLRDD. [/quote:ndlcw4mm] Then, how to know if the record or file is already locked? [quote:ndlcw4mm] - In xbrowse, vertical scroll bar does not work. [/quote:ndlcw4mm] Is there any function equivalent to OrdKeyNo()? Otherwise, how to know the relative position of the record in the database?
urgent bugs lastest FWH and SQLRDD
Hello, Thanks for your quick reply. DbInfo( DBI_ISFLOCK ) does work in SQLRDD. But not DbRecordInfo( DBRI_LOCKED, RECNO() ) ) This was working savedbf() method in FW 14.14, that worked great: [code=fw:xa9haqm3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> SaveDBF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDataRow<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, nCols &nbsp; &nbsp;:= ::<span style="color: #000000;">FCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lAppend &nbsp; &nbsp; := <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">RecNo</span> == <span style="color: #000000;">0</span> .or. <span style="color: #000000;">&#40;</span> bof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nSaveRec<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lReadOnly</span> .or. ! ::<span style="color: #000000;">Modified</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lAppend<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">RecNo</span> &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; REPEAT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbAppend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; UNTIL ! NetErr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">RecNo</span> != RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSaveRec &nbsp; &nbsp;:= RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; DbGoTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">RecNo</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> ! DbRLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">bSaveData</span> == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <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> ::<span style="color: #000000;">aModiData</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FieldPut<span style="color: #000000;">&#40;</span> FieldPos<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aModiData</span><span style="color: #000000;">&#91;</span> n, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">aModiData</span><span style="color: #000000;">&#91;</span> n, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span> n<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bSaveData</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;DbUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">ReadDBF</span><span style="color: #000000;">&#40;</span> FW_ArrayAsList<span style="color: #000000;">&#40;</span> ArrTranspose<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aData</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, .f., .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> nSaveRec <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DbGoTo<span style="color: #000000;">&#40;</span> nSaveRec <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> .t.<br />&nbsp;</div>[/code:xa9haqm3]
urgent bugs lastest FWH and SQLRDD
ordkeyno() never has been supported by SQLRDD. I think in previous xBrowse versions, you fixed like this: [code=fw:2a3kjkmb]<div class="fw" id="{CB}" style="font-family: monospace;">elseif <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"SQLRDD"</span><br /><span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">bKeyNo</span> := ::<span style="color: #000000;">bBookMark</span>, ;<br />::<span style="color: #000000;">bKeyCount</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> LastRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:2a3kjkmb] xBrowse from FW 14.14 works perfect with SQLRDD. Thank you.
urgent bugs lastest FWH and SQLRDD
[quote="MOISES":2jgbn1c9]ordkeyno() never has been supported by SQLRDD.[/quote:2jgbn1c9] "think SQL" ... when send a SQL Statement you can include a SQL Function to create a Unique Column like RECNO(). under PostgreSQL > 9.x it is Row_Number(), MySQL have RowNumber() which can used instead of OrKeyNo() under SQL
urgent bugs lastest FWH and SQLRDD
In Fwh 14.14 it worked perfect. Thank you
urgent bugs lastest FWH and SQLRDD
Does SQLRDD support DBRLOCK( [nRec] ) and DBRUNLOCK( [nRec] ) ?
urgent bugs lastest FWH and SQLRDD
I use rlock() and unlock. Also, DbInfo( DBI_ISFLOCK ) works.
urgent bugs lastest FWH and SQLRDD
Hello, Any news about xBrowse bugs with SQLRDD? Thank you.
urgent bugs lastest FWH and SQLRDD
Please give us a couple of days more time.
urgent bugs lastest FWH and SQLRDD
Up!. Thank you
urgent bugs lastest FWH and SQLRDD
We are unable to decide what changes are to be made because we do not have SQLRDD for testing at our end. We shall be thankful if you can please provide us a modified method SetRDD() with changes applicable only for SQLRDD and we will incorporate the changes in the next release. Whatever changes implemented till now were based on the recommendations of the users only.
urgent bugs lastest FWH and SQLRDD
Up for xBrowse and SQLRDD: Thank you.
urgente ! como puedo hacer esto
public class areas_CLS { private int _id; public int Id { get { return _id; } set { _id = value; } } private int _idinstalacion; public int IdInstalacion { get { return _idinstalacion; } set { _idinstalacion = value; } }}como puedo hacer esta estructura en fivewin, saludos
urgente ! como puedo hacer esto
En C++ (bajo nivel) ó en PRG (alto nivel) ?
urgente - Seleccion de archivos multiples
Estimados, requiero con urgencia un selector de archivos multiples, he intentado usar cGetFileEx, tanto el que viene por defecto con fwh (c5) asi como los expuestos en el foro (falla la compilación con _bcopy ) y no han funcionado, necesito uno que ya hallan probado con exito.
urgente - Seleccion de archivos multiples
ya esta, hora y media perdida <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> fwh trae la suya nativa que funciona de lujo: [code=fw:e1q43xc9]<div class="fw" id="{CB}" style="font-family: monospace;">aFiles:=aGetFiles<span style="color: #000000;">&#40;</span> cMask, cTitle, nDefaultMask, cInitDir <span style="color: #000000;">&#41;</span></div>[/code:e1q43xc9]
urgente - Seleccion de archivos multiples
[quote="carlos vargas":aa6g04tb]ya esta, hora y media perdida <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> fwh trae la suya nativa que funciona de lujo: [code=fw:aa6g04tb]<div class="fw" id="{CB}" style="font-family: monospace;">aFiles:=aGetFiles<span style="color: #000000;">&#40;</span> cMask, cTitle, nDefaultMask, cInitDir <span style="color: #000000;">&#41;</span></div>[/code:aa6g04tb][/quote:aa6g04tb] Carlos, podrias colocar un sample o si hay uno en los samples de FWH decir cual es..? gracias...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
urgente - Seleccion de archivos multiples
[code=fw:3uof49fu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />PROCEDURE DocuE_Agregar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aFiles := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aFiles := aGetFiles<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Archivo | *.*"</span>, <span style="color: #ff0000;">"Seleccione archivo a adjuntar"</span>, <span style="color: #000000;">1</span>, GetEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"USERPROFILE"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> HB_IsArray<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span> .and. Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><br />&nbsp;</div>[/code:3uof49fu]
urgente - Seleccion de archivos multiples
Muchas gracias Carlos, lo pruebo y te aviso cualquier detalle, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
urgente - Seleccion de archivos multiples
Carlos, Llamame por el Skype. Creo que tenga lo que deseas.
urgente - Seleccion de archivos multiples
Carlos, Muchas gracias por compartirlo. Nunca es tiempo perdido, todo esfuerzo tiene su recompensa <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
urgente: comprobar permisos de una carpeta
Hooa amigos: ¿Hay alguna función para saber si una carpeta tiene permisos de control total?. Muchas gracias.
url encoder/decoder
Dear friends, I need a function to encode decode url [b:2xz8xm4m]http%3A%2F%2F127.0.0.1 <<<< >>>>> <!-- m --><a class="postlink" href="http://127.0.0.1">http://127.0.0.1</a><!-- m -->[/b:2xz8xm4m] Where Can I find it? Many thanks Marco
url encoder/decoder
In our best friend Harbour! HB_URLENCODE() HB_URLDECODE() It happen that I am using a _very_ old version of Harbour in a legacy project, so I had to write my own funcs: [code=fw:18wehej4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> URL_CODE <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'%21'</span>, <span style="color: #ff0000;">'%2A'</span>, <span style="color: #ff0000;">'%27'</span>, <span style="color: #ff0000;">'%28'</span>, <span style="color: #ff0000;">'%29'</span>, <span style="color: #ff0000;">'%3B'</span>, <span style="color: #ff0000;">'%3A'</span>, <span style="color: #ff0000;">'%40'</span>, <span style="color: #ff0000;">'%26'</span>, <span style="color: #ff0000;">'%3D'</span>, <span style="color: #ff0000;">'%2B'</span>, <span style="color: #ff0000;">'%24'</span>, <span style="color: #ff0000;">'%2C'</span>, <span style="color: #ff0000;">'%2F'</span>, <span style="color: #ff0000;">'%3F'</span>, <span style="color: #ff0000;">'%25'</span>, <span style="color: #ff0000;">'%23'</span>, <span style="color: #ff0000;">'%5B'</span>, <span style="color: #ff0000;">'%5D'</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#define</span> URL_CHAR <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'!'</span> &nbsp;, <span style="color: #ff0000;">'*'</span> &nbsp;, <span style="color: #ff0000;">"'"</span> &nbsp;, <span style="color: #ff0000;">"("</span> &nbsp;, <span style="color: #ff0000;">")"</span> &nbsp;, <span style="color: #ff0000;">";"</span> &nbsp;, <span style="color: #ff0000;">":"</span> &nbsp;, <span style="color: #ff0000;">"@"</span> &nbsp;, <span style="color: #ff0000;">"&"</span> &nbsp;, <span style="color: #ff0000;">"="</span> &nbsp;, <span style="color: #ff0000;">"+"</span> &nbsp;, <span style="color: #ff0000;">"$"</span> &nbsp;, <span style="color: #ff0000;">","</span> &nbsp;, <span style="color: #ff0000;">"/"</span> &nbsp;, <span style="color: #ff0000;">"?"</span> &nbsp;, <span style="color: #ff0000;">"%"</span> &nbsp;, <span style="color: #ff0000;">"#"</span> &nbsp;, <span style="color: #ff0000;">"["</span> &nbsp;, <span style="color: #ff0000;">"]"</span> &nbsp; <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> urlencode<span style="color: #000000;">&#40;</span> cString <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cResult, i, nAt, Ch<br /><br />&nbsp; &nbsp;cResult:= <span style="color: #ff0000;">''</span><br /><br />&nbsp; &nbsp;<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> cString <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> nAT := aScan<span style="color: #000000;">&#40;</span> URL_CHAR, Ch:= <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cString, i, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult+= URL_CODE<span style="color: #000000;">&#91;</span> nAt <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult+= Ch<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> cResult<br /><br /><span style="color: #00C800;">FUNCTION</span> urldecode<span style="color: #000000;">&#40;</span> cString <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cResult, i, nAt, cH<br /><br />&nbsp; &nbsp;cResult:= <span style="color: #ff0000;">''</span><br /><br />&nbsp; &nbsp;<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> cString <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> nAT := aScan<span style="color: #000000;">&#40;</span> URL_CODE, Ch:= <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cString, i, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult+= URL_CHAR<span style="color: #000000;">&#91;</span> nAt <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i+= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult+= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> Ch, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> cResult<br /><br />&nbsp;</div>[/code:18wehej4] Best regards
url encoder/decoder
Many Thanks <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Marco
url encoder/decoder
Hello, It seems that there are encode functions like : HB_URLENCODE() HB_URLDECODE() I the older post above they say that Harbour is older (to old??) and there is a alternatif function written. I need to use these functions, but anno 04/2017 : witch one do you prefer ? Marc
url encoder/decoder
Hi Marc, the native Harbour ones, without any doubt! The are updated with the rtl, written in C so the are _faster_. I posted the old ones just in case, for really old projects it may be useful. Best regards
url to download BCC 7
Hi, It's been a while. I am preparing to upgrade FWH. Anybody knows where to get BCC7? Preferably, direct url to download from your own link or official. Thanks.
url to download BCC 7
Hi Frances, Look at <!-- m --><a class="postlink" href="http://whosaway.com/">http://whosaway.com/</a><!-- m --> - New xharbour versions.
url to download BCC 7
Embarcadero website
url to download BCC 7
Antonio, Where can we get Borland 7 for FW 1606? on Embarcadero website I have found nothing can you send me a link? Thanks. Manfred
url to download BCC 7
As already noted: [url:rod64dfs]http&#58;//whosaway&#46;com[/url:rod64dfs] EMG
urllink
Compañeros quiero utilizar la clase urllink dentro de un folderex con fondo blanco y no me muestra el link, pero si hago un click (dónde tendría que estar) me conecta con la página de internet deseada. [code=fw:1zcdfz66]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> URLLINK <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> URL <span style="color: #ff0000;">"www.afip.gov.ar"</span> &nbsp;<span style="color: #0000ff;">oF</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Sitio oficial AFIP"</span> &nbsp;<span style="color: #0000ff;">font</span> oFont1<br />&nbsp;</div>[/code:1zcdfz66] Lo utilizo en otros diálogos sin problemas, pero aquí no lo visualiza, a que puede deberse este problema Luis
urllink
Luis, Puedes cambiar los colores inicial, al pasar el ratón por encima y una vez ha sido visitado: [code=fw:3q89jlvf]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand <span style="color: #0000ff;">REDEFINE</span> URLLINK <span style="color: #000000;">&#91;</span><oURL><span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <dlg: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">WINDOW</span>, DIALOG> <oDlg> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> URL <cURL> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> TOOLTIP <cToolTip> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> CLRINIT <nClrInit> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> CLROVER <nClrOver> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> CLRVISIT <nClrVisit> <span style="color: #000000;">&#93;</span> ;</div>[/code:3q89jlvf]
urllink
Gracias por contestar Antonio pero lamentablemente sigue igual [code=fw:2p3q4ty4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgCli &nbsp;<span style="color: #0000ff;">RESOURCE</span> &nbsp;<span style="color: #ff0000;">"FOLD_CLI"</span> <span style="color: #0000ff;">ICON</span> surge <br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> FOLDEREX oFold <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlgCli ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"General"</span>, <span style="color: #ff0000;">"Impuestos"</span>, <span style="color: #ff0000;">"Sedronar"</span>, <span style="color: #ff0000;">"Datos"</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DIALOGS</span> <span style="color: #ff0000;">"fold_cli1"</span>, <span style="color: #ff0000;">"fold_cli2"</span>, <span style="color: #ff0000;">"fold_cli3"</span>, <span style="color: #ff0000;">"fold_cli4"</span>;<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> URLLINK <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> URL <span style="color: #ff0000;">"www.afip.gov.ar"</span> <span style="color: #0000ff;">oF</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Sitio oficial AFIP"</span> CLRINIT CLR_BLUE CLROVER CLR_MAGENTA <span style="color: #0000ff;">font</span> oFont1<br />&nbsp;</div>[/code:2p3q4ty4] En un diálogo común funciona bien. Luis
urllink
Antonio de esta forma funciona [code=fw:ij1u3lji]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> bold<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgCli &nbsp;<span style="color: #0000ff;">RESOURCE</span> &nbsp;<span style="color: #ff0000;">"FOLD_CLI"</span> <span style="color: #0000ff;">ICON</span> surge<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> URLLINK <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> URL <span style="color: #ff0000;">"www.afip.gov.ar"</span> <span style="color: #0000ff;">oF</span> oDlgCli ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Sitio oficial AFIP"</span> &nbsp;<span style="color: #0000ff;">font</span> oFont1<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> FOLDEREX oFold <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlgCli &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"General"</span>, <span style="color: #ff0000;">"Impuestos"</span>, <span style="color: #ff0000;">"Sedronar"</span>, <span style="color: #ff0000;">"Datos"</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DIALOGS</span> <span style="color: #ff0000;">"fold_cli1"</span>, <span style="color: #ff0000;">"fold_cli2"</span>, <span style="color: #ff0000;">"fold_cli3"</span>, <span style="color: #ff0000;">"fold_cli4"</span>;<br /><br />&nbsp;</div>[/code:ij1u3lji] Pero fuera del folder. Luis
urllink
Luis, Si cambias: REDEFINE FOLDEREX por: REDEFINE FOLDER te funciona bien ?
urllink
Antonio usando Folder funciona perfectamente Luis
urllink
Luis, Debe tratarse de alguna interacción con TFolderEx. Voy a preguntarle a Daniel, autor de TFolderEx, a ver si nos echa una mano <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
urllink
Antonio yo utilizo Pelles C, y bien cambiando en el editor de recursos Tfolderex por la nativa de Pelles (Tab), funciona perfectamente. Luis
urllink
Perdón y en el prg reemplazar folderex por folder se muestra igual que usando tfolderex Luis
urllink
Luis, El control UrlLink como lo tienes definido en el fichero RC ?
urllink
Antonio utilizo res y lo tengo definido como tab y en el redefine como FOLDER. Pero el efecto tfolderex lo muestra en xp no así en Windows 7. Luis
urllink
El urlink esta como: [code=fw:2yfuh0wk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">FOLDER</span> oFold <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlgCli &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"General"</span>, <span style="color: #ff0000;">"Impuestos"</span>, <span style="color: #ff0000;">"Sedronar"</span>, <span style="color: #ff0000;">"Datos"</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DIALOGS</span> <span style="color: #ff0000;">"fold_cli1"</span>, <span style="color: #ff0000;">"fold_cli2"</span>, <span style="color: #ff0000;">"fold_cli3"</span>, <span style="color: #ff0000;">"fold_cli4"</span>;<br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> URLLINK <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> URL <span style="color: #ff0000;">"www.afip.gov.ar"</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLTIP <span style="color: #ff0000;">"Sitio oficial AFIP"</span> &nbsp;<span style="color: #0000ff;">font</span> oFont1<br />&nbsp;</div>[/code:2yfuh0wk] Luis
urllink
Luis, Quisiera ver como esta definido el control urllink en el diálogo. Usas Pelles ? Como se ve su definición ?
urllink
Quieres decir que en Windows 7 funciona bien y solo falla en XP ?
urllink
Luis: No te servirá la clase SSay (Sensitive Say)?, yo la uso con FOLDER y va bien, con Windows 8 (64Bits) Saludos
urllink
Antonio es al revés en xp funciona y en windows 7 funciona como un folder común. La defenición en pelles es la misma que para un text común. No me había percatado de esto porque las pruebas las había hecho en win 7 y usando Folder actuaba como un folder, pero cuando compile en windows xp, ahí mostró el efecto deseado. En cuanto al a la definición en el diálogo es la misma que en los ejemplos de fwh. [code=fw:jnb4tzws]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgCli  <span style="color: #0000ff;">RESOURCE</span>  <span style="color: #ff0000;">"FOLD_CLI"</span> <span style="color: #0000ff;">ICON</span> surge<br /><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">FOLDER</span> oFold <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlgCli   ;<br />      <span style="color: #0000ff;">PROMPTS</span> <span style="color: #ff0000;">"General"</span>, <span style="color: #ff0000;">"Impuestos"</span>, <span style="color: #ff0000;">"Sedronar"</span>, <span style="color: #ff0000;">"Datos"</span>;<br />      <span style="color: #0000ff;">DIALOGS</span> <span style="color: #ff0000;">"fold_cli1"</span>, <span style="color: #ff0000;">"fold_cli2"</span>, <span style="color: #ff0000;">"fold_cli3"</span>, <span style="color: #ff0000;">"fold_cli4"</span>;<br /><br /><br />   <span style="color: #0000ff;">REDEFINE</span> URLLINK <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> URL <span style="color: #ff0000;">"www.afip.gov.ar"</span> <span style="color: #0000ff;">of</span> oFold:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ;<br />            TOOLTIP <span style="color: #ff0000;">"Sitio oficial AFIP"</span>  <span style="color: #0000ff;">font</span> oFont1<br /><br />   oDlgCli:<span style="color: #000000;">bgotfocus</span> := <span style="color: #000000;">&#123;</span>|| oData:<span style="color: #0000ff;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:jnb4tzws] Lamentablemente no se como poder pasar el diálogo que esta en pelles a un txt. <!-- m --><a class="postlink" href="https://www.4shared.com/photo/qN8w9fApba/muestra.html">https://www.4shared.com/photo/qN8w9fApba/muestra.html</a><!-- m --> Así se ve en Windows 7 <!-- m --><a class="postlink" href="https://www.4shared.com/photo/ZnI2PcsAce/folder.html">https://www.4shared.com/photo/ZnI2PcsAce/folder.html</a><!-- m --> Así en xp <!-- m --><a class="postlink" href="https://www.4shared.com/photo/6SY2QQVAba/xp_online.html">https://www.4shared.com/photo/6SY2QQVAba/xp_online.html</a><!-- m --> Luis
urllink
File - Save As - Script (.RC) Quizas te ayude
urllink
Gracias Cristobal [code=fw:3o3vxehu]<div class="fw" id="{CB}" style="font-family: monospace;">FOLD_CLI1 <span style="color: #0000ff;">DIALOG</span> DISCARDABLE <span style="color: #000000;">110</span>, <span style="color: #000000;">49</span>, <span style="color: #000000;">247</span>, <span style="color: #000000;">251</span><br /><span style="color: #0000ff;">STYLE</span> WS_CHILD|WS_VISIBLE<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">106</span>, <span style="color: #ff0000;">"Edit"</span>, ES_RIGHT|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">11</span><br />  CONTROL <span style="color: #ff0000;">"Exterior"</span>, <span style="color: #000000;">500</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">160</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">107</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">44</span>, <span style="color: #000000;">149</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">108</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">68</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">137</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">109</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">122</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">120</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">116</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">110</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWNLIST|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">33</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">118</span>, <span style="color: #ff0000;">"Edit"</span>, ES_RIGHT|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">208</span>, <span style="color: #000000;">116</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">111</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">105</span>, <span style="color: #000000;">13</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">113</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">82</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">116</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWNLIST|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">180</span>, <span style="color: #000000;">86</span>, <span style="color: #000000;">58</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">117</span>, <span style="color: #ff0000;">"Edit"</span>, ES_RIGHT|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">40</span>, <span style="color: #000000;">196</span>, <span style="color: #000000;">31</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">128</span>, <span style="color: #ff0000;">"Edit"</span>, ES_RIGHT|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">72</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">87</span>, <span style="color: #000000;">12</span><br />  CONTROL <span style="color: #ff0000;">"Agre&gar direcciones"</span>, <span style="color: #000000;">127</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">20</span>, <span style="color: #000000;">232</span>, <span style="color: #000000;">71</span>, <span style="color: #000000;">14</span><br />  CONTROL <span style="color: #ff0000;">"Transportes"</span>, <span style="color: #000000;">121</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">132</span>, <span style="color: #000000;">232</span>, <span style="color: #000000;">67</span>, <span style="color: #000000;">13</span><br />  CONTROL <span style="color: #ff0000;">"Codigo:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">28</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Razón Social:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">29</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Domicilio FISCAL:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">64</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Localidad"</span>, <span style="color: #000000;">501</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">84</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Provincia:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Rubro:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">144</span>, <span style="color: #000000;">26</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Teléfono:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">34</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Cuit:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">164</span>, <span style="color: #000000;">17</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Condición:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">180</span>, <span style="color: #000000;">32</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Vendedor:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Atiende por T.E. :"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">59</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"C. Postal:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">172</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Consignatario"</span>, <span style="color: #000000;">112</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|BS_LEFTTEXT|WS_TABSTOP, <span style="color: #000000;">172</span>, <span style="color: #000000;">204</span>, <span style="color: #000000;">67</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">"Ganancias:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">132</span>, <span style="color: #000000;">176</span>, <span style="color: #000000;">38</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Iva:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">132</span>, <span style="color: #000000;">160</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">"Monotributo:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">128</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">200</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, WS_TABSTOP, <span style="color: #000000;">212</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">21</span>, <span style="color: #000000;">20</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">201</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, WS_TABSTOP, <span style="color: #000000;">220</span>, <span style="color: #000000;">132</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span><br />  CONTROL <span style="color: #ff0000;">"Constancias:"</span>, <span style="color: #000000;">-1</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">176</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">42</span>, <span style="color: #000000;">8</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">114</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, <span style="color: #000000;">172</span>, <span style="color: #000000;">156</span>, <span style="color: #000000;">72</span>, <span style="color: #000000;">40</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">115</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, <span style="color: #000000;">172</span>, <span style="color: #000000;">172</span>, <span style="color: #000000;">72</span>, <span style="color: #000000;">40</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">119</span>, <span style="color: #ff0000;">"ComboBox"</span>, WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, <span style="color: #000000;">172</span>, <span style="color: #000000;">188</span>, <span style="color: #000000;">72</span>, <span style="color: #000000;">40</span><br />  CONTROL <span style="color: #ff0000;">"Consulta constancia afip"</span>, <span style="color: #000000;">4001</span>, <span style="color: #ff0000;">"Static"</span>, SS_LEFTNOWORDWRAP|WS_GROUP, <span style="color: #000000;">4</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">84</span>, <span style="color: #000000;">10</span><br />  CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">400</span>, <span style="color: #ff0000;">"Static"</span>, SS_CENTER|WS_GROUP, <span style="color: #000000;">100</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">136</span>, <span style="color: #000000;">12</span><br /><span style="color: #000000;">&#125;</span></div>[/code:3o3vxehu] Luis
urllink
yes yes I am confused
urllink
[code=fw:93dcrtth]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oDlg,oUrlink,oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>,oBarOpenWithlist<br /><br /><span style="color: #00C800;">function</span> Test<span style="color: #000000;">&#40;</span> cTitle, nTop, nLeft, nBottom, nRight, cBtnTitle, nItem, lCancel, cCapCan <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cNamefile :=<span style="color: #ff0000;">"test.jpg"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont, oBtnClose1, oBtnClose2, oBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nWidth, nHeight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nBottom &nbsp; := <span style="color: #000000;">33</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRight &nbsp; &nbsp;:= <span style="color: #000000;">75.0</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTitle &nbsp; &nbsp;:= <span style="color: #ff0000;">"Test Url"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBtnTitle := <span style="color: #ff0000;">"&OK"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCapCan &nbsp; := <span style="color: #ff0000;">"&CANCEL"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nItem &nbsp; &nbsp; := &nbsp;<span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lCancel &nbsp; := .T.<br /><br />&nbsp; &nbsp;nWidth = &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nHeight = nBottom * DLG_CHARPIX_H<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush GRADIENT <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.4</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">75</span>, <span style="color: #000000;">144</span>, <span style="color: #000000;">223</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">41</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">145</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.6</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">24</span>, &nbsp;<span style="color: #000000;">61</span>, <span style="color: #000000;">118</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">95</span>, <span style="color: #000000;">158</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;SetDlgGradient<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">199</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">237</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">248</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">BRUSH</span> oBrush ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_OVERLAPPED,WS_THICKFRAME,WS_SYSMENU,WS_MAXIMIZEBOX, &nbsp; <span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lTransparent</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> &nbsp;cNamefile &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">10</span> &nbsp; <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oBarOpenWithlist:= TUrlLink<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;">100</span>, <span style="color: #000000;">20</span>, oDlg, .t., .f., oFont, <span style="color: #ff0000;">"Apri con"</span>, <span style="color: #ff0000;">"Apri con"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_WHITE, CLR_BLACK <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">nClrOver</span> = CLR_BLACK<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">&#123;</span>||Rinfresca_oDlgallegati<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lCancel<br />&nbsp; &nbsp; &nbsp; @ &nbsp;nHeight / <span style="color: #000000;">2</span> - <span style="color: #000000;">30</span>, nWidth / <span style="color: #000000;">2</span> - <span style="color: #000000;">41</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose1 <span style="color: #0000ff;">PROMPT</span> cCapCan <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">36</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>nItem := <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;@ nHeight / <span style="color: #000000;">2</span> - <span style="color: #000000;">30</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lCancel, <span style="color: #000000;">5</span>, nWidth / <span style="color: #000000;">2</span> - <span style="color: #000000;">41</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose2 <span style="color: #0000ff;">PROMPT</span> cBtnTitle <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">36</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />RETU <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">function</span> Rinfresca_oDlgallegati<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp;oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeft</span>:= <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">ntop</span>:=oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">nleft</span>:= oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+18</span><br />&nbsp; &nbsp;oBarOpenWithlist:<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 />&nbsp;</div>[/code:93dcrtth] 
urllink
can open a mmenupopup with a turl control ?
urllink
Silvio, Use oURLLink:bAction := { || ... }
urllink
Antonio, I have problem to show the control into a dialog : the control [b:3u9skoe9]there is but I cannot see it [/b:3u9skoe9] [code=fw:3u9skoe9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> oAllegati,oUrlink,oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>,oBarOpenWithlist<br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nBottom &nbsp; := <span style="color: #000000;">33</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nRight &nbsp; &nbsp;:= <span style="color: #000000;">75</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cNamefile :=<span style="color: #ff0000;">"test.jpg"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oFontNormal:= TFont<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;">"Tahoma"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span>,,.F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oAllegati &nbsp;; &nbsp; <span style="color: #B900B9;">//OF oParent</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test url"</span> &nbsp; ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> nWidth, nHeight &nbsp;TRANSPARENT <span style="color: #0000ff;">PIXEL</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oAllegati:<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;:= nOr<span style="color: #000000;">&#40;</span> WS_OVERLAPPED,WS_THICKFRAME,WS_SYSMENU,WS_MAXIMIZEBOX, &nbsp; <span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> &nbsp;cNamefile &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> oAllegati <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">10</span> &nbsp; <span style="color: #0000ff;">UPDATE</span><br /><br /><br />&nbsp; &nbsp; &nbsp;oBarOpenWithlist:= TUrlLink<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;">100</span>, <span style="color: #000000;">20</span>, oAllegati, .t., .f., oFontNormal, <span style="color: #ff0000;">"Apri con"</span>, <span style="color: #ff0000;">"Apri con"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_WHITE, CLR_BLACK <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">nClrOver</span> = CLR_BLACK<br />&nbsp; &nbsp; <br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oAllegati:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">&#123;</span>||Rinfresca_oDlgallegati<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oAllegati <span style="color: #0000ff;">CENTERED</span><br />RETU <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">function</span> Rinfresca_oDlgallegati<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeft</span>:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBarOpenWithlist:<span style="color: #000000;">ntop</span>:=oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBarOpenWithlist:<span style="color: #000000;">nleft</span>:= oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+18</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBarOpenWithlist:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3u9skoe9]
urllink
Antonio, Important... It not run on DIALOG but only on Window because the Turllink class need [b:2u6a8z8a]SetWndDefault( Self ) [/b:2u6a8z8a] to add on New method !!!! now I see the control ....
urllink
Silvio, function SetWndDefault() is to be used with classes whose controls contains another controls.
urllink
Sorry, I make a mistake not run on dialog also the urlink control there is but I not see it How I can resolve it ?
urllink
Antonio, Perhaps I found the error when the dialog have the clausole [b:15antjwq]TRASPARENT [/b:15antjwq] the url control link not run how I can resolve it ? (I need to have trasparent clausole on Dialog )
urllink
Complete, please. [code=fw:2ldkn81m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">Static</span> oDlg,oUrlink,oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>,oBarOpenWithlist<br /><br /><br /><span style="color: #00C800;">function</span> Test<span style="color: #000000;">&#40;</span> cTitle, nTop, nLeft, nBottom, nRight, cBtnTitle, nItem, lCancel, cCapCan <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cNamefile :=<span style="color: #ff0000;">"test.jpg"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont, oBtnClose1, oBtnClose2<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nWidth, nHeight<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nBottom &nbsp; := <span style="color: #000000;">33</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRight &nbsp; &nbsp;:= <span style="color: #000000;">75.0</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTitle &nbsp; &nbsp;:= <span style="color: #ff0000;">"Test Url"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBtnTitle := <span style="color: #ff0000;">"&OK"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCapCan &nbsp; := <span style="color: #ff0000;">"&CANCEL"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nItem &nbsp; &nbsp; := &nbsp;<span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lCancel &nbsp; := .T.<br /><br />&nbsp; &nbsp;nWidth = &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nHeight = nBottom * DLG_CHARPIX_H<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_OVERLAPPED,WS_THICKFRAME,WS_SYSMENU,WS_MAXIMIZEBOX, &nbsp; <span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lTransparent</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> &nbsp;cNamefile &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">10</span> &nbsp; <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;oBarOpenWithlist:= TUrlLink<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;">100</span>, <span style="color: #000000;">20</span>, oDlg, .t., .f., oFont, <span style="color: #ff0000;">"Apri con"</span>, <span style="color: #ff0000;">"Apri con"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_WHITE, CLR_BLACK <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">nClrOver</span> = CLR_BLACK<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">&#123;</span>||Rinfresca_oDlgallegati<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lCancel<br />&nbsp; &nbsp; &nbsp; @ &nbsp;nHeight / <span style="color: #000000;">2</span> - <span style="color: #000000;">30</span>, nWidth / <span style="color: #000000;">2</span> - <span style="color: #000000;">41</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose1 <span style="color: #0000ff;">PROMPT</span> cCapCan <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">36</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>nItem := <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;@ nHeight / <span style="color: #000000;">2</span> - <span style="color: #000000;">30</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lCancel, <span style="color: #000000;">5</span>, nWidth / <span style="color: #000000;">2</span> - <span style="color: #000000;">41</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">BUTTON</span> oBtnClose2 <span style="color: #0000ff;">PROMPT</span> cBtnTitle <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">36</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />RETU <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">function</span> Rinfresca_oDlgallegati<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp;oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeft</span>:= <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">ntop</span>:=oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span><br />&nbsp; &nbsp;oBarOpenWithlist:<span style="color: #000000;">nleft</span>:= oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+18</span><br />&nbsp; &nbsp;oBarOpenWithlist:<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 />&nbsp;</div>[/code:2ldkn81m] 
urllink
Kariha, Why I must not make the dialog Trasparent with GRADIENT ? I found a strange solution : rem the Paint and Default methods from Turllink class and then it run also on dialog transparent with gradients ( this idea was sent from AntoninoP)
urllink
[quote="Silvio.Falconi":2pq5cly9]Kariha, Why I must not make the dialog Trasparent with GRADIENT ? I found a strange solution : rem the Paint and Default methods from Turllink class and then it run also on dialog transparent with gradients ( this idea was sent from AntoninoP)[/quote:2pq5cly9] Paint and Display!! <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
usando CDOSYS marca error mail
saludos Usando el ejemplo que expuso Manuel Mercado con el uso de envio de mail me funciona perfecto en mi pc, pero en otras pc's con la misma version de windows no funciona, y me manda el aviso "NO SE PUDO ENVIAR EL MAIL" Alguien podria indicarme que debo instalar en las pc's donde no funciona o que deberia configurar. LAS FUNCIONES SON ESTAS // --- Envio de correo electronico Function SendEmail(cFrom,cTo,cBCC,cAttach,cSubject,cBody,cUser,cPass) Local oDlg, aCtl[ 22 ], oFont Local cMailServer := PadR( "smtp.gmail.com", 60 ) // servidor de correo local nPort:=465 // puerto usado por el servidor de correo local WS_3DLOOK:=4 local CLR_HBROWN:=RGB( 205, 192, 176 ) local CLR_NBLUE :=RGB( 142, 171, 194 ) default cFrom := PadR( "[email protected]", 60 ) // remitente default cTo := PadR( "[email protected]", 180 ) // destinatario (uno o varios separados con comas) default cBCC := Space( 180 ) // copias ocultas a (uno o varios separados con comas) default cAttach := Space(180) // archivo anexo (uno o varios separados con comas) default cSubject := Space( 60 ) // asunto default cBody := Space( 500 ) // cuerpo del mensaje default cUser := Space( 60 ) // nombre de usuario para autenticación default cPass := Space( 30 ) // contraseña para autenticación DEFINE FONT oFont NAME "Arial" SIZE 0, -16 DEFINE DIALOG oDlg FROM 0, 0 TO 455, 703 PIXEL ; COLORS COLOR_AZUL, CLR_HBROWN ; TITLE "Envio de Mail" ; STYLE nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, WS_3DLOOK ) @ 10, 5 SAYFWH aCtl[ 1 ] PROMPT "Servidor de Correo" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 70, 11 PIXEL @ 10, 80 GETFWH aCtl[ 2 ] VAR cMailServer OF oDlg ; FONT oFont UPDATE PICTURE "@K" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 206, 11 READONLY PIXEL @ 10,294 SAYFWH aCtl[ 3 ] PROMPT "Puerto" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 30, 11 PIXEL @ 10,320 GETFWH aCtl[ 4 ] VAR nPort OF oDlg ; FONT oFont UPDATE PICTURE "@K ####" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 24, 11 READONLY PIXEL @ 24, 5 SAYFWH aCtl[ 5 ] PROMPT "Remitente" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 70, 11 PIXEL @ 24, 80 GETFWH aCtl[ 6 ] VAR cFrom OF oDlg ; FONT oFont UPDATE PICTURE "@K" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 264, 11 PIXEL @ 39, 5 SAYFWH aCtl[ 7 ] PROMPT "Destinatario" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 70, 11 PIXEL @ 39, 80 GETFWH aCtl[ 8 ] VAR cTo OF oDlg ; FONT oFont UPDATE PICTURE "@K" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 264, 11 PIXEL @ 54, 5 SAYFWH aCtl[ 9 ] PROMPT "Copia para" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 70, 11 PIXEL @ 54, 80 GETFWH aCtl[ 10 ] VAR cBCC OF oDlg ; FONT oFont UPDATE PICTURE "@K" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 264, 11 PIXEL @ 69, 5 SAYFWH aCtl[ 11 ] PROMPT "Adjuntar" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 70, 11 PIXEL @ 69, 80 GETFWH aCtl[ 12 ] VAR cAttach OF oDlg PICTURE "@K" ; FONT oFont UPDATE ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 264, 11 PIXEL; ACTION fAddAttach( aCtl[ 12 ] ) @ 84, 5 SAYFWH aCtl[ 13 ] PROMPT "Asunto" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 70, 11 PIXEL @ 84, 80 GETFWH aCtl[ 14 ] VAR cSubject OF oDlg ; FONT oFont UPDATE PICTURE "@K" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 264, 11 PIXEL @ 99, 5 SAYFWH aCtl[ 15 ] PROMPT "Autenticación: Usuario" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 80, 11 PIXEL @ 99, 87 GETFWH aCtl[ 16 ] VAR cUser OF oDlg ; FONT oFont UPDATE PICTURE "@K" ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 118, 11 PIXEL @ 99,213 SAYFWH aCtl[ 17 ] PROMPT "Contraseña" OF oDlg ; FONT oFont UPDATE ; COLORS COLOR_AZUL, CLR_HBROWN SIZE 44, 11 PIXEL @ 99,259 GETFWH aCtl[ 18 ] VAR cPass OF oDlg PASSWORD ; FONT oFont UPDATE PICTURE "@K"; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 85, 11 PIXEL @117.5,6 SAYFWH aCtl[ 19 ] PROMPT "Cuerpo del mensaje" OF oDlg ; SIZE 100, 11 PIXEL ; FONT oFont COLORS COLOR_AZUL, CLR_HBROWN @ 7,1.5 GET aCtl[ 20 ] VAR cBody OF oDlg ; FONT oFont MULTILINE UPDATE ; COLORS COLOR_AZUL, COLOR_BLANCO SIZE 42, 4.3 @11.5,5 BUTTON aCtl[ 21 ] PROMPT "&Enviar" OF oDlg ; FONT oFont SIZE 53, 16 PIXEL ; ACTION fSendMail( cMailServer, cFrom, cTo, cSubject, cBody, cAttach, cBCC, cUser, cPass, nPort ) @11.5,20 BUTTON aCtl[ 22 ] PROMPT "&Salir" OF oDlg ; FONT oFont SIZE 53, 16 PIXEL ACTION oDlg:End() ACTIVATE DIALOG oDlg CENTERED ; VALID ( oFont:End(), .T. ) Return Nil // --- Enviar un mail Function fSendMail( cMailServer, cFrom, cTo, cSubject, cBody, cAttach, cBCC, cUser, cPass, nPort ) Local oCfg, oMsg, oError, nEle, cToken, bMens,; lAuth := ! Empty( cUser ) .and. ! Empty( cPass ), ; nSendOpt := 2 // send using: 1 = pickup folder 2 = port memvar aAttach Default nPort := 25, ; cSubject := "", ; cBody := "" if !IsInternet() aviso({'ATENCION','No existe conección a internet','Intente más tarde o verifique su problema'}) return .t. endif If "GMAIL.COM" $ Upper( cMailServer ) .and. ( Empty( cUser ) .or. Empty( cPass ) ) MsgStop( "Con GMail son requeridos nombre de usuario y contraseña", "Atención" ) Return .t. EndIf CursorWait() bMens:=Mensaje('Para: '+cTo,'Espere, enviando un Mail') aAttach:={} if !Empty(cAttach) cAttach:='{"'+StrTran(cAttach,',','","')+'"}' aAttach:=cAttach aAttach:=&(aAttach) endif nEle := 1 Try oCfg := CreateObject( "CDO.Configuration" ) With Object oCfg:Fields :Item( cdoSMTPServer ):Value := Trim( cMailServer ) :Item( cdoSMTPServerPort ):Value := nPort :Item( cdoSendUsing ):Value := nSendOpt If lAuth :Item( cdoSMTPAuthenticate ):Value := 1 :Item( cdoSendUserName ):Value := Trim( cUser ) :Item( cdoSendPassword ):Value := Trim( cPass ) :Item( cdoSMTPUseSSL ):Value := 1 EndIf :Update() End With oMsg := CreateObject( "CDO.Message" ) With Object oMsg :Configuration := oCfg :From := Trim( cFrom ) :To := Trim( cTo ) :Subject := Trim( cSubject ) :TextBody := Trim( cBody ) For nEle := 1 To Len( aAttach ) :AddAttachment := AllTrim( aAttach[ nEle ] ) Next If ! Empty( cBCC ) :BCC := Trim( cBCC ) EndIf :Send() End With Catch oError CursorArrow() Eval(bMens) MsgStop( "No se pudo enviar el e-mail") oCfg := Nil oMsg := Nil Return .t. End Try oCfg := Nil oMsg := Nil SndPlaySound( GetWinDir() + "\media\Tada.wav", 0 ) CursorArrow() Eval(bMens) Return .t.
usando CDOSYS marca error mail
Amigo, quita el Try Catch y veras el error a detalle..., algunas veces es el correo mal escrito, o las configuraciones o el archivo a adjuntar no existe... Y nos dices...
usando CDOSYS marca error mail
Bien, lo hare, y estamos en contacto.
usando CDOSYS marca error mail
Noe, mira ypega el siguiente código para que veas el tipo de error: [code=fw:1xht7lyu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CATCH oError<br />&nbsp;Error_Envio <span style="color: #000000;">&#40;</span> oError, <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">Return</span> <span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />* -------------------------------------------------------------------------------------------------------------- *<br /><br />* -------------------------------------------------------------------------------------------------------------- *<br /><span style="color: #00C800;">Function</span> Error_Envio <span style="color: #000000;">&#40;</span> oError, cViene <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #0000ff;">MsgInfo</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error envio de EMail! "</span> + cViene &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Error: "</span> &nbsp; &nbsp; + TRANSFORM <span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">GenCode</span>, &nbsp; <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SubC: "</span> &nbsp; &nbsp; &nbsp;+ TRANSFORM <span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">SubCode</span>, &nbsp; <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"OSCode: "</span> &nbsp; &nbsp;+ TRANSFORM <span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">OsCode</span>, &nbsp; &nbsp;<span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM <span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Mensaje: "</span> &nbsp; + oError:<span style="color: #000000;">Description</span>, <span style="color: #ff0000;">"Atención"</span> <span style="color: #000000;">&#41;</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 />* -------------------------------------------------------------------------------------------------------------- *<br />&nbsp;</div>[/code:1xht7lyu] y nos cuentas Saludos....
usando CDOSYS marca error mail
Hola Amigos Para que el ejemplo de CDOSYS mail, funcione correctamente se debe corregir una linea del codigo que esta mal escrita esto es lo que dicce en el PRG: For nEle := 1 To Len( aAttach ) :AddAttachment := AllTrim( aAttach[ nEle ] ) Next el error se produce al tratar de adjuntar archivos porque esta mal escrito el argumento de :AddAttachment() DEBE DECIR: [color=#FF0000:qr02d0wy]For nEle := 1 To Len( aAttach ) :AddAttachment( AllTrim( aAttach[ nEle ] )) Next[/color:qr02d0wy] un saludo a todos.
usando DLL
Buenos días al foro tengo una aplicación que me han solicitado entregarlo como DLL Ya lo he compilado y funciona, lo invoco de esta forma y carga la aplicación Function TestDll() HbDLLEntry( "MAIN" ) return nil DLL FUNCTION HBDLLENTRY( cProc AS LPSTR ) AS LONG PASCAL LIB "psmweb.dll" Mi pregunta es hay alguna forma de instanciar la clase de una DLL y poder ejecutar los métodos a elección. algo asi obj := CreateObject("psmweb.main") obj:mostar() Atte. Francisco
usando DLL
Francisco, Tienes que crear una DLL de pcode. Revisa estos ejemplos de FWH/samples: testdllp.prg y pcodedll.prg
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
Buenas noches Estoy usando la clase TTxFile() y necesito crear un archivo texto de varias líneas pero debe ser con formato: UTF8- NO BOM Como se puede hacer con esta clase o de que otro modo se puede crear usando Harbour Gracias Lubin
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
Buen dia con todos Alguna idea como crear este archivo texto con formato UTF8-SIN BOM, por favor, Quizas creando el archivo y luego convertirlo, ?' o usando alguna función Gracias por el salvavidas que puedan lanzar... Lubin
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
haga una busqueda por TXTFILE. [url:aofylu1q]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=31456&p=182756&hilit=TXTFILE#p182756[/url:aofylu1q] Saludos.
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
Gracias Karinha. Si manejo el TXTFILE pero necesito que al generar el archivo, debe ser grabado en formato UTF8-NO BOM para enviarlo a una webservice de lo contario me lo rechaza. la verdad no tengo ni idea como lograrlo en FW [quote="karinha":2zt10bse]haga una busqueda por TXTFILE. [url:2zt10bse]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=31456&p=182756&hilit=TXTFILE#p182756[/url:2zt10bse] Saludos.[/quote:2zt10bse]
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
UTF8 - BOM(Byte order mark) no lo sé. Saludos.
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
Hola Lubin, Has probado con la funcion de Harbour hb_strToUTF8() Yo lo hago de esta forma: [code=fw:19vi51by]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   cXml := hb_strToUTF8<span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />   cArchivo = 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: #ff0000;">"Xmls<span style="color: #000000;">\a</span>rchivo"</span>+<span style="color: #ff0000;">".xml"</span><br />   Ferase<span style="color: #000000;">&#40;</span>cArchivo<span style="color: #000000;">&#41;</span><br />   oFile := TFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span>cArchivo<span style="color: #000000;">&#41;</span><br />   oFile:<span style="color: #000000;">PutStr</span><span style="color: #000000;">&#40;</span> cXml <span style="color: #000000;">&#41;</span><br />   oFile:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:19vi51by] Espero te sirva. Carlos.
usando TTxtFile() como crear archivo Texto UTF8 SIN BOM
Carlos Utilice el StrToutf8 pero no grabe asi el archivo, Voy a probarlo hoy, espero que salga bien Gracias por el tip!!!! Lubin
usando la Tecla F1 para otras funciones
estimados compañeros ¿ Se le puede asignar a la tecla F1 otra función que no sea la de ayuda ? Probé con SetKey( VK_F1, { || (mifuncion()) }) pero no me dio resultado... ¿ Que otra solución tendría ? mil gracias. LORENZO.
usando la Tecla F1 para otras funciones
recuerda incluir el inkey.ch sino pensaras que no lo tomo, me ha pasado
usando la Tecla F1 para otras funciones
Saludos Loren: Yo lo hago así: 1.- Busca en la carpeta de tu fivewin: FWH\source\winapi\ el archivo HELP32.prg, pon comentarios las lineas donde dice: MsgStop( "No Help file available", " Attention" ) ya que por defecto al presionar la tecla F1 busca un archivo de ayuda definido por el usuario y si no esta muestra el mensaje de error, son 4 lineas a comentar (41,64,81 y 96, puede estar en otras lineas), una vez modificado el archivo agregalo a tu proyecto con tu generador de aplicaciones. 2.- En tu programa principal la cabecera #Include "VKEY.CH", agrega esta linea despues de la funcion main() SET Key VK_F1 TO Ayuda() en este caso hace referencia al modulo ayuda, el cual puede ser cualquier funcion: //-------------------------------------------------------------// FUNCTION Ayuda() msginfo("¡¡ NO HAY AYUDA !!"+CRLF+CRLF+"En Construcción" ,"Prueba de Ayuda") RETURN NIL Compila tu aplicacion y prueba presionando la tecla.. A mi me funciona y tengo mi módulo de ayuda independiente de la aplicacion, solo haces referencia a ella con las modificaciones que te indico. Si tienes dudas no dudes en contactarme y con gusto te ayudo: <!-- w --><a class="postlink" href="http://www.sisa.unlugar,com">www.sisa.unlugar,com</a><!-- w --> <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> Saludos... <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> [/b]
usando listbox
tengo un dialogo con un listbox y necesito cambiar su tamaño de dibujado dinamicamente, he estado probando nleft, nwidth , ntop etc.. y ninguna forma de cambiar sus dimensiones parece funcionarme, el codigo que lo declara es este y luegoo no encuentro la forma de cambiar sus dimensiones, aqui esta el ejemplo de codigo @110,160 listbox oBrw3 FIELDS ARR_3_P[NITEM3,7] ,ARR_3_P[NITEM3,2] , ARR_3_P[NITEM3,3], ARR_3_P[NITEM3,4], ARR_3_P[NITEM3,5], ARR_3_P[NITEM3,6]; HEADERS "Ref","Descripcion producto","Unid.","Precio","Total","Desc" ; FIELDSIZES 70,325, 80,100,100,100 ; FONT oFont1; size 690,350 PIXEL ; ON RIGHT CLICK ShowPop2( BROWSE_TAB3 , nRow, nCol ) on change ( car_mal(),ver_imag() ) VALID .T. WHEN .T. UPDATE COLOR CLR_WHITE,NRGB(255,128,64) ; OF ownd_ticket Espero alguien pueda orientarme estooy perdido
usando listbox
Holá, mejor és usar xBrowse() de mister Nages. Saludos.
usando listbox
en la carpeta samples hay algún ejemplo de xbrowse?
usando listbox
Claro que si, hay muchos textxrbw.prg testxbr2.prg ... testxbr6.prg xbalpha.prg ... xbxlsel.prg
usando servicios Generador de codigo QR
Aqui os dejo un generador de codigo QR que usa servicios en la red. Espero que os guste . [code=fw:1967ka59]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><br /># <span style="color: #0000ff;">define</span> HTTPREQUEST_PROXYSETTING_PROXY  <span style="color: #000000;">2</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />  <span style="color: #00C800;">local</span> obmp ,cBmp <br />  <span style="color: #00C800;">local</span> oDlg, oIco <br />  <span style="color: #00C800;">local</span> ofont<br />   <span style="color: #00C800;">local</span> cCode:= space<span style="color: #000000;">&#40;</span><span style="color: #000000;">180</span><span style="color: #000000;">&#41;</span><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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span> <br />    <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Qrcode Generator"</span> ;<br />      <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">440</span><br /><br />   @ <span style="color: #000000;">30</span>,<span style="color: #000000;">24</span>  <span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">128</span>,<span style="color: #000000;">128</span> <span style="color: #0000ff;">pixel</span> NOBORDER <br />     <br />     oBmp:<span style="color: #000000;">lTransparent</span> := .t.<br />     <br />   <span style="color: #B900B9;">//  cargaBmp( "hola",oBmp )</span><br />       <br /> <br />     @ <span style="color: #000000;">160</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce el codigo a generar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />                        <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br />     <br />     @ <span style="color: #000000;">170</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cCode <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg <br /><br />     @ <span style="color: #000000;">205</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />              <span style="color: #0000ff;">FONT</span> oFont ; <br />              <span style="color: #0000ff;">ACTION</span> cargaBmp<span style="color: #000000;">&#40;</span> alltrim<span style="color: #000000;">&#40;</span> cCode<span style="color: #000000;">&#41;</span> ,oBmp <span style="color: #000000;">&#41;</span><br /><br />     @ <span style="color: #000000;">205</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />               <span style="color: #0000ff;">FONT</span> oFont ; <br />               <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span>  DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">"  Generador de Qrcode"</span>,<span style="color: #ff0000;">""</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span>  ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <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 /><br /><span style="color: #00C800;">Function</span> cargaBmp<span style="color: #000000;">&#40;</span> cCode, oImage <span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">local</span> cResp<br /> <span style="color: #00C800;">local</span> nZeroZeroClr<br /> <span style="color: #00C800;">local</span> ogbmp := GdiBmp<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 /> <span style="color: #00C800;">local</span> nHeight := <span style="color: #000000;">248</span><br /> <span style="color: #00C800;">local</span> nWidth  := <span style="color: #000000;">248</span><br /> <span style="color: #00C800;">local</span> cUrl  := <span style="color: #ff0000;">"http://api.qrserver.com/v1/create-qr-code/?data="</span><br /> <br />  cUrl += GetSafeURL<span style="color: #000000;">&#40;</span>hb_strtoutf8<span style="color: #000000;">&#40;</span> cCode <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />  cUrl += <span style="color: #ff0000;">"&size="</span> + alltrim<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span> nWidth <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  + <span style="color: #ff0000;">"x"</span> + alltrim<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br /> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span> <br /> <br />    oGbmp:<span style="color: #000000;">hbmp</span> := GDIPLUSIMAGELOADPNGFROMSTR<span style="color: #000000;">&#40;</span> cResp,len<span style="color: #000000;">&#40;</span>cResp<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />   <br />    oImage:<span style="color: #000000;">hBitmap</span> := oGBmp:<span style="color: #000000;">GetGDIHbitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oImage:<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">if</span> msgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" ¨ quiere grabar el codigo QR a Disco ?"</span><span style="color: #000000;">&#41;</span><br />       oGBmp:<span style="color: #000000;">save</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".<span style="color: #000000;">\q</span>rcode.png"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span>  <br />    oGbmp:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <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: #00C800;">Static</span> <span style="color: #00C800;">Function</span> GetSafeURL<span style="color: #000000;">&#40;</span>  cUrl <span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">local</span> cAsc<br />   <span style="color: #00C800;">local</span> nChr<br />   <span style="color: #00C800;">local</span> sHex<br />   <span style="color: #00C800;">local</span> i<br />   <span style="color: #00C800;">local</span> cGetSafeURL := <span style="color: #ff0000;">""</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> cUrl <span style="color: #000000;">&#41;</span><br />        cASC := <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> cUrl, i, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />        nChr := <span style="color: #0000ff;">Asc</span><span style="color: #000000;">&#40;</span> cASC <span style="color: #000000;">&#41;</span><br />        <br />        <span style="color: #00C800;">If</span> <span style="color: #000000;">&#40;</span> nChr > <span style="color: #000000;">47</span> .and. nChr < <span style="color: #000000;">58</span> <span style="color: #000000;">&#41;</span> .Or. <span style="color: #000000;">&#40;</span> nChr > <span style="color: #000000;">64</span> .And. nChr < <span style="color: #000000;">91</span> <span style="color: #000000;">&#41;</span> .Or. <span style="color: #000000;">&#40;</span> nChr > <span style="color: #000000;">96</span> .And. nChr < <span style="color: #000000;">123</span> <span style="color: #000000;">&#41;</span> <br />            cGetSafeURL += cASC<br />        <span style="color: #00C800;">Else</span><br />            sHex :=  hb_NumtoHex<span style="color: #000000;">&#40;</span> nChr <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">If</span> Len<span style="color: #000000;">&#40;</span> sHex <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">1</span> <br />                cGetSafeURL += <span style="color: #ff0000;">"%0"</span> + sHex<br />            <span style="color: #00C800;">Else</span><br />                cGetSafeURL += <span style="color: #ff0000;">"%"</span>  + sHex<br />            End <span style="color: #00C800;">If</span><br />        End <span style="color: #00C800;">If</span><br />    <span style="color: #00C800;">Next</span><br /><br /><span style="color: #00C800;">Return</span> cGetSafeURL <br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />   <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />         <br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />          <br />   Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br />  <br /><span style="color: #00C800;">Return</span> cResp<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor     := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight  := <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec  := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor   := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />   GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><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;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oFont<br />   <span style="color: #00C800;">LOCAL</span> oTitle<br />   <span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />   <span style="color: #00C800;">LOCAL</span> nRowImg  := <span style="color: #000000;">0</span><br />   <br /><br />   <span style="color: #00C800;">DEFAULT</span> cTitle  := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />   <span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />      nColText := <span style="color: #000000;">60</span><br />      nRowImg  := <span style="color: #000000;">12</span><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">ELSE</span><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">endif</span><br /><br />    @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span>  <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br />   <br />   @  nRowImg,  <span style="color: #000000;">10</span>  TITLEIMG  <span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />          TRANSPARENT<br />   <br />    @  nRowImg<span style="color: #000000;">-2</span> ,  nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><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>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />    oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />    oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br />    <br />      <br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br /> </div>[/code:1967ka59]
usando servicios Generador de codigo QR
Gracias Manuel