topic
stringlengths
1
63
text
stringlengths
1
577k
ways to save report to a file and easily open
[quote="Richard Chidiak":22lr63et] I guess you should be very careful about licensing if you are distributing software. None of the above stated programs is "free for commercial use". You need a license for all of them. I have spent quite a time on the subject and emailed all the authors including cutepdf, pdf95 ...etc and many others. If you use inhouse, no problem. But we all sell "commercial software" outside Richard[/quote:22lr63et] Richard, I never distribute software I have no license to do it. If you can download from internet, the users can download itself, if they need it. These additional tools are just mentioned in the docs and the users can decide what they want to do. Stefan
ways to save report to a file and easily open
Evans, [quote:3jnc8qgi]There is also another tool provided by PDF995. It's called "pdf995 Standard Encryption.exe". This accepts parameters to open any file, encrypt it with password, 64-128 bit algorithm, set properties for printing, copying, where to save the encrypted file and even under what filename, etc., all by passing parameters through our xHB/FWH program![/quote:3jnc8qgi] Would you be so kind to post an example how to use pdf995 Standard Encryption.exe. Thank in advance Otto
ways to save report to a file and easily open
I found out how it works: [code=fw:11nvlaaa]<div class="fw" id="{CB}" style="font-family: monospace;"> winexec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>rogram Files<span style="color: #000000;">\p</span>df995<span style="color: #000000;">\r</span>es<span style="color: #000000;">\u</span>tilities<span style="color: #000000;">\s</span>ignature995<span style="color: #000000;">\P</span>df995 Standard Encryption.exe &nbsp;C:<span style="color: #000000;">\p</span>dftest<span style="color: #000000;">\o</span>n@aon_at.pdf C:<span style="color: #000000;">\p</span>dftest<span style="color: #000000;">\o</span>n@aon_at.pdf &nbsp;hotel hotel 10100000 128"</span><span style="color: #000000;">&#41;</span></div>[/code:11nvlaaa] Best regards, Otto
ways to save report to a file and easily open
Hi, I suggest you to take a look at FastReport <!-- m --><a class="postlink" href="http://www.paritetsoft.ru/frh.htm">http://www.paritetsoft.ru/frh.htm</a><!-- m --> It is easly integrable in a FWH app and supports a lot of export formats - excel, word, openoffice write, openoffice calc also. It runs with a SINGLE self.contained dll. I previously used - as you - different components toghether to manage the reports and provide all features to my customers (Easypreview for the preview, Amyuni for the .doc export, irfanview for some graphics formats not supported by Easypreview) but it became difficult to manage and upgrade all components (We have about 5,500 customers). Using FastReport I replaced all of this with just a dll !! It is also a report used from a lot of delphi programmers and this is a warranty for us about the future release - see <!-- m --><a class="postlink" href="http://www.fast-report.com">http://www.fast-report.com</a><!-- m --> Hope this can help you. However on the paritetsoft website there are a lot of FWH samples and a trial report version. [quote="ShumingWang":3jhoc1t9]Hi, One of our customers asked me if fwh app can offer a way to save a report to a file, email it to his customers and his customers can open the file and print it in a easily way. Now they print out then send a fax to his customer, but fax not 100% reliable. Best regard! Shuming Wang[/quote:3jhoc1t9]
ways to save report to a file and easily open
Hello Marco, thank you for your advice and suggestion. Do I need fast-report to create and design the reports? Best regards, Otto
ways to save report to a file and easily open
Hello Marco, I had had a look at demofrh.exe. This designer tool looks good. Maybe fastreport could provide an export or convert of the fr3 files to vrd files. Best regards, Otto
ways to save report to a file and easily open
The designer is included into the FastReport self-contained dll. You can activate the designer with a simply fwh call. In my opinion this designer is really good as you can check but a bit compicated for the end-user. [quote="Otto":3ud1gwhs]Hello Marco, thank you for your advice and suggestion. Do I need fast-report to create and design the reports? Best regards, Otto[/quote:3ud1gwhs]
ways to save report to a file and easily open
As I know there isn't a feature to convert a fr3 (Fast Report file) into a vrd (ReportDesigner Report file), but you can ask to Timm about this. [quote="Otto":8m9njsdy]Hello Marco, I had had a look at demofrh.exe. This designer tool looks good. Maybe fastreport could provide an export or convert of the fr3 files to vrd files. Best regards, Otto[/quote:8m9njsdy]
ways to save report to a file and easily open
Hello Marco, thank you for your answer. Best regards, Otto
wbrose duda urgente
alguien sabe donde se colorea la celda seleccionada del browse, en que funcion, o alguien tiene una funcion para cambiar el estilo de los bordes cuando toma la celda el focus gracias
wbrose duda urgente
Hola Checa este link, creo que es lo que necesitas <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=4377">http://fivetechsoft.com/forums/viewtopic.php?t=4377</a><!-- m --> Saludos
wbrowse
Hi All I have a two dimension array but I dont know how to get the data into the browsers bLine ie oLbx:bLine := I have an array of employees which can have eight tasks assigned for a day and I am trying to display this in a browse - the size of the employee array can change as new staff is hired or they leave. Any ideas greatly appreciated. Cheers Colin
wbrowse
Is it the number of rows or the number of columns that change?
wbrowse
The number of columns change - the columns depend on the array of employees. cheers Colin
wbrowse
Have a look at the sample code below. I am assuming you browsing a 2-dimensional array. In the sample each array element represents a line in the browse while each subarray represents a column, eg. aArrayData[nRow][nCol] First thing to do is create a dummy browse using @ 0,0 LISTBOX oBrw FIELDS "" HEADERS "" COLSIZES 10 ... Later use oBrw:SetArray() to browse the correct array - presumably you will refresh the array from a button or menu option (in the sample below I use a menu - you can do this before ACTIVATE WINDOW also) The important thing to remember is that before you call :refresh() you must set :aHeaders to the correct number of columns and also :bLine and :aColSizes must be set at this point also. :bLine must be set to a codeblock that returns an array. The generic function DispVals() generates a suitable codeblock for any size of 2-dimensional array. It converts data of any datatype to character using cValToChar() - you might prefer to use a different method. Hope this helps. [code=fw:32ezlbmx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #B900B9;">// ------------------------------------------------------------------------ //</span><br /><br /><span style="color: #00C800;">FUNCTION</span> main<br /><br /><span style="color: #00C800;">LOCAL</span> oWnd,oBrw,oCol<br /><span style="color: #00C800;">LOCAL</span> aEmploy<br /><br />SET DATE BRITISH<br />SET CENTURY <span style="color: #0000ff;">ON</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">480</span>,<span style="color: #000000;">640</span> <span style="color: #0000ff;">PIXEL</span><br />oWnd:<span style="color: #0000ff;">center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// create a dummy browse</span><br />@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">LISTBOX</span> oBrw FIELDS <span style="color: #ff0000;">""</span> HEADERS <span style="color: #ff0000;">""</span> COLSIZES <span style="color: #000000;">10</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">630</span>,<span style="color: #000000;">470</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />SET <span style="color: #0000ff;">MENU</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> MainMenu<span style="color: #000000;">&#40;</span>oWnd,oBrw<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ------------------------------------------------------------------------ //</span><br /><br /><span style="color: #00C800;">FUNCTION</span> mainmenu<span style="color: #000000;">&#40;</span>oWnd,oBrw<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> oMenu<br /><br /><span style="color: #0000ff;">MENU</span> oMenu<br />&nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&File"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Refresh Browse &1"</span> <span style="color: #0000ff;">ACTION</span> Refresh1<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Refresh Browse &2"</span> <span style="color: #0000ff;">ACTION</span> Refresh2<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&xit"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span> oMenu<br /><br /><span style="color: #B900B9;">// ------------------------------------------------------------------------ //</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Refresh1<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #B900B9;">// { { cName, cJobTitle, lIsFullTime, nAge, dJoinedFirm }, ... }</span><br /><span style="color: #00C800;">LOCAL</span> aArrayData := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Smith"</span>, <span style="color: #ff0000;">"Sales Executive"</span>, &nbsp; &nbsp;.T., <span style="color: #000000;">40</span>, CToD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"16/06/2000"</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; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Jones"</span>, <span style="color: #ff0000;">"Sales Assistant"</span>, .F., <span style="color: #000000;">25</span>, CToD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"21/10/2009"</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; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Brown"</span>, <span style="color: #ff0000;">"Head of Research & Development"</span>, .T., <span style="color: #000000;">45</span>, CToD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"12/10/2001"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />oBrw:<span style="color: #000000;">SetArray</span><span style="color: #000000;">&#40;</span>aArrayData<span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">bLine</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |o| DispVals<span style="color: #000000;">&#40;</span>aArrayData,o<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />oBrw:<span style="color: #000000;">aHeaders</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Name"</span>,<span style="color: #ff0000;">"Job Title"</span>,<span style="color: #ff0000;">"Fultime?"</span>,<span style="color: #ff0000;">"Age"</span>,<span style="color: #ff0000;">"Date joined firm"</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// MUST have the same number of elements as value returned by :bLine</span><br />oBrw:<span style="color: #000000;">aColSizes</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">30</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// MUST be specified here otherwise program falls over!!!</span><br />oBrw:<span style="color: #000000;">aJustify</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> .F., .F., .F., .T., .F. <span style="color: #000000;">&#125;</span><br /><br />oBrw:<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 /><br /><span style="color: #B900B9;">// ------------------------------------------------------------------------ //</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Refresh2<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #B900B9;">// { { cName, nAge, dJoinedFirm }, ... }</span><br /><span style="color: #00C800;">LOCAL</span> aArrayData := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Smith"</span>, <span style="color: #000000;">40</span>, CToD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"16/06/2000"</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; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Jones"</span>, <span style="color: #000000;">25</span>, CToD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"21/10/2009"</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; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Brown"</span>, <span style="color: #000000;">45</span>, CToD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"12/10/2001"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />oBrw:<span style="color: #000000;">SetArray</span><span style="color: #000000;">&#40;</span>aArrayData<span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">bLine</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |o| DispVals<span style="color: #000000;">&#40;</span>aArrayData,o<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />oBrw:<span style="color: #000000;">aHeaders</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Name"</span>,<span style="color: #ff0000;">"Age"</span>,<span style="color: #ff0000;">"Date joined firm"</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// MUST have the same number of elements as value returned by :bLine</span><br />oBrw:<span style="color: #000000;">aColSizes</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// MUST be specified here otherwise program falls over!!!</span><br />oBrw:<span style="color: #000000;">aJustify</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> .F., .T., .F. <span style="color: #000000;">&#125;</span><br /><br />oBrw:<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 /><br /><br />******************************************************************************<br />* DispVals<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>: <span style="color: #000000;">returns</span> an array with the current row <span style="color: #0000ff;">of</span> browse converted <span style="color: #0000ff;">to</span><br />* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; character values<br />******************************************************************************<br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> DispVals<span style="color: #000000;">&#40;</span>aArrayData,oBrw<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> aDisplay<br /><span style="color: #00C800;">LOCAL</span> nRowCount := oBrw:<span style="color: #000000;">nAt</span>, ;<br />&nbsp; &nbsp; &nbsp; nColCount, nColMax<br /><br />nColMax := len<span style="color: #000000;">&#40;</span>aArrayData<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />aDisplay := array<span style="color: #000000;">&#40;</span>nColMax<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FOR</span> nColCount := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nColMax<br />&nbsp; &nbsp; aDisplay<span style="color: #000000;">&#91;</span>nColCount<span style="color: #000000;">&#93;</span> := cValToChar<span style="color: #000000;">&#40;</span>aArrayData<span style="color: #000000;">&#91;</span>nRowCount<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>nColCount<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// convert to character datatype</span><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> aDisplay<br />&nbsp;</div>[/code:32ezlbmx]
wbrowse
Hi kenedyv Thank you - your sample works exactly the way I want my app to work - I am building dynamic arrays and must be doing something wrong , but at least I have some good code to follow. Your help is greatly appreciated. Cheers Colin
wbrowse
Hi Kennedyv I get an error when calling DispVals MsgInfo(oLbx2:nAt) // returns 1 oLbx2:bLine := { |o| DispVals(aTasks,o) } olbx2:nAt // causes error in DispVals function I presume {|o| is the browse object being passed to the dispvals function. Cheers Colin
wbrowse
Can you send me the Application and Stack Calls sections from your error.log file. At a guess, it sounds like this may be a parameter passing issue. In the meantime, a few pointers which might help: - DispVals() assumes a 2-dimensional array as follows: aArrayData[nRow][nCol] - :aColSizes must be set between :SetArray() and :refresh() - the size of :aColSizes and :aHeaders should be equal to the number of cols in browse - The :nAt data of TWBrowse returns NIL after the browse is created until the first call to :SetArray() is made, at which point :nAt is set to 1 - in the sample code |o| is the browse object itself Vincent
wbrowse
Hi Vincent ( it feels much more polite to address you properly ) I think I have the two dimensional array correct - but I am going to strip my program right back and try build on your code. Cheers Coiln
wbrowse
Hi Colin OK. Let me know how things go. I've done a lot of work with arrays in TWBrowse - it can be tricky. Vincent
wbrowse
Hi Vincent I found why I cant get your code to work in my app {|0| DispVals(aData,0) } works fine with the fivewin wbrowse but I use a modified wbrowse ( Hernans) and the browse object is not getting passed down. This is the error I get Error BASE/1004 Class: 'NIL' has no exported method: NAT I have checked the code for the fivewin browse eval(::bLine, Self) , the browse I use eval(:: bLine) - so I modified the code in my wbrowse but still the same error. Cheers Colin
wbrowse
DispVals() is not receiving the oBrw parameter In the sample program replace oBrw:bLine := { |o| DispVals(aArrayData,o) } with oBrw:bLine := { |o| DispVals(aArrayData,oBrw) } Also, ensure that oBrw has been created and is passed t the function in which this line appears. Vincent
wbrowse
Hi Vincent I have my app all working now - thats for all your assistance. Cheers Colin
wbrowse
Thanks kennedyv was looking the same as Colling, and I could not solve with my code. Luis Sáenz (surGom)
wbrowse ----> xbrowse
With Wbrowse( ceccarelli) I used a function to use user functions [code:t3uhqcbu] oBlistbox&#58;bKeyDown&#58;=&#123;|nKey| Val_nKey&#40;nKey&#41;&#125; [/code:t3uhqcbu] and then this function …. [code:t3uhqcbu] STAT FUNC Val_nKey&#40;nKey&#41; DO CASE CASE nKey==VK_INSERT &#46;AND&#46; lABC KeyToggle&#40;VK_INSERT&#41; Captura&#40;&#46;T&#46;&#41; CASE nKey==VK_DELETE &#46;AND&#46; lABC Sup_Movs&#40;&#41; CASE nKey==VK_RETURN &#46;AND&#46; lABC Captura&#40;&#46;F&#46;&#41; CASE nKey==VK_F9 Sel_Pict&#40;&#41; CASE nKey==Asc&#40;'I'&#41; &#46;AND&#46; GetKeyState&#40;VK_CONTROL&#41; Imprimir&#40;&#46;F&#46;&#41; CASE nKey==Asc&#40;'P'&#41; &#46;AND&#46; GetKeyState&#40;VK_CONTROL&#41; Imprimir&#40;&#46;T&#46;&#41; ENDCASE RETURN &#40;NIL&#41; [/code:t3uhqcbu] on Xbrowse How I can make it ? regards
wbrowse ----> xbrowse
The same way silvio. Regards
wbrowse ----> xbrowse
Dear Jcso , the same not run ok ...
wbrowse ----> xbrowse
[quote="Silvio":1ma8wy9z]Dear Jcso , the same not run ok ...[/quote:1ma8wy9z] Check your code, it must run ok.
wbrowse conversion to xbrowse
which is the function of xbrowse equal to :olbx:HposBottom olbx:hposTop
wbrowse conversion to xbrowse
Silvio,FWH browses don't provide those DATAs:HposBottom, hposTopwhat browse is it ?
wbrowse conversion to xbrowse
sorry but it is an old 16 bit wbrowse of hernan perhaps
wbrowse de FWH
Hay algun motivo por el cual la funcion wbrwline usada por la clase twbrowse no sea la escrita en lenguaje C? Porque en el caso de Clipper se usa esa funcion en C. Luego de hacer varias pruebas, vi que es la funcion que demora mas tiempo cuando se hace uso intensivo de wbrowse, y usando el mismo programa, pero compilado con clipper, la visualizacion del browse es muchisimo mas rapida, sobretodo cuando se usa con varios terminales trabajando en red. Saludos
wbrowse de FWH
Pedro, Cuando se diseñó wbrwline() los ordenadores que había en uso eran mucho menos potentes que ahora y necesitabamos el código más rápido. Hoy en día podemos usar esa función implementada en PRG. De todas formas si necesitas la máxima velocidad, entonces si podrías usar la versión en lenguaje C
wbrowse de FWH
Antonio, hay alguna diferencia aparte de la velocidad? En mi caso la velocidad es importante, porque como dije antes, cuando uso las bases de datos, sea en un servidor windows o linux, si accedo desde un unico pc, el browse vuela, pero cuando accedo desde 2 o mas pc's, se enlentece muchisimo, es posible que sea un problema en la dbfcdx... Hasta hace un par de semanas usaba el browse de Hernán, lo cambié por el browse de FW porque el de FW es mas rapido, y lo unico que puedo hacer son los footers, y la multiseleccion, pero lo demas sin problemas. Noté que el browse a 16 bits funciona mas rapido que el de 32, pero como dije antes, podría ser un problema de la DBFCDX. Probaré entonces la wbrwline en C a ver que resultados obtengo. Saludos y gracias.
wbrowse de FWH
Antonio, No me resultó tan facil usar la wbrwline contenida en wbrwline.c Pensé que bastaba poner #ifndef __CLIPPER__ donde tiene #ifdef y en wbrowse.prg al reves... pero al compilar me da estos errores: [code:3nydjuzg] Progetto&#58; WP32, Ambiente&#58; BorlandWin&#58; &#91;1&#93;&#58;Harbour&#46;Exe wbrowse&#46;prg /m /n0 /w1 /es2 /ic&#58;\ut\fwh0705\include /iC&#58;\XHXFW0~1\Include /p /oObj\wbrowse&#46;c xHarbour Compiler build 0&#46;99&#46;71 &#40;SimpLex&#41; Copyright 1999-2007, http&#58;//www&#46;xharbour&#46;org http&#58;//www&#46;harbour-project&#46;org/ Compiling 'wbrowse&#46;prg' and generating preprocessed output to 'wbrowse&#46;ppo'&#46;&#46;&#46; Lines 2565, Functions/Procedures 52 Generating C source output to 'Obj\wbrowse&#46;c'&#46;&#46;&#46; Done&#46; &#91;1&#93;&#58;Bcc32&#46;Exe -M -c -O2 -tW -v- -X -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -DHB_OS_WIN_32 -Ic&#58;\ut\fwh0705\include -IC&#58;\BCC55\Include;C&#58;\XHXFW0~1\Include -nObj Obj\wbrowse&#46;c Borland C++ 5&#46;5&#46;1 for Win32 Copyright &#40;c&#41; 1993, 2000 Borland Obj\WBROWSE&#46;c&#58; &#91;1&#93;&#58;Bcc32&#46;Exe -M -c -O2 -tW -v- -X -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -DHB_OS_WIN_32 -Ic&#58;\ut\fwh0705\include -IC&#58;\BCC55\Include;C&#58;\XHXFW0~1\Include -nObj -D__HARBOUR__ wbrwline&#46;c Borland C++ 5&#46;5&#46;1 for Win32 Copyright &#40;c&#41; 1993, 2000 Borland wbrwline&#46;c&#58; Warning W8065 wbrwline&#46;c 181&#58; Call to function '_VARRAYLEN' with no prototype in function PaintTheLine Error E2451 wbrwline&#46;c 183&#58; Undefined symbol 'CLV_WORD' in function PaintTheLine Error E2379 wbrwline&#46;c 183&#58; Statement missing ; in function PaintTheLine Error E2140 wbrwline&#46;c 184&#58; Declaration is not allowed here in function PaintTheLine Error E2140 wbrwline&#46;c 185&#58; Declaration is not allowed here in function PaintTheLine Error E2140 wbrwline&#46;c 186&#58; Declaration is not allowed here in function PaintTheLine Error E2140 wbrwline&#46;c 187&#58; Declaration is not allowed here in function PaintTheLine Error E2451 wbrwline&#46;c 204&#58; Undefined symbol '_tos' in function PaintTheLine Warning W8065 wbrwline&#46;c 204&#58; Call to function '_cAt' with no prototype in function PaintTheLine Error E2451 wbrwline&#46;c 219&#58; Undefined symbol 'S_ANYNUM' in function PaintTheLine Warning W8065 wbrwline&#46;c 255&#58; Call to function '_VARRAYLEN' with no prototype in function PaintTheLine Error E2451 wbrwline&#46;c 257&#58; Undefined symbol 'lJustify' in function PaintTheLine Warning W8065 wbrwline&#46;c 257&#58; Call to function '_cAt' with no prototype in function PaintTheLine Error E2451 wbrwline&#46;c 262&#58; Undefined symbol 'S_CHAR' in function PaintTheLine Warning W8065 wbrwline&#46;c 262&#58; Call to function '_VSTR' with no prototype in function PaintTheLine Warning W8069 wbrwline&#46;c 262&#58; Nonportable pointer conversion in function PaintTheLine Warning W8065 wbrwline&#46;c 269&#58; Call to function '_VSTR' with no prototype in function PaintTheLine Warning W8069 wbrwline&#46;c 269&#58; Nonportable pointer conversion in function PaintTheLine Warning W8065 wbrwline&#46;c 277&#58; Call to function '_VSTR' with no prototype in function PaintTheLine Warning W8069 wbrwline&#46;c 277&#58; Nonportable pointer conversion in function PaintTheLine Warning W8065 wbrwline&#46;c 282&#58; Call to function '_VSTR' with no prototype in function PaintTheLine Warning W8069 wbrwline&#46;c 282&#58; Nonportable pointer conversion in function PaintTheLine Warning W8065 wbrwline&#46;c 491&#58; Call to function '_cEval0' with no prototype in function WBRWLINE Warning W8065 wbrwline&#46;c 503&#58; Call to function '_cEval0' with no prototype in function WBRWLINE Warning W8004 wbrwline&#46;c 685&#58; 'paSizes' is assigned a value that is never used in function ABRWPOSRECT *** 10 errors in Compile *** [/code:3nydjuzg] que me falta hacer? Gracias
wbrowse de FWH
Pedro, No es tan simple ya que ese código está diseñado para Clipper y no para Harbour Se podría adaptar para Harbour pero no son cambios inmediatos y sencillos
wbrowse de FWH
Antonio, Entiendo.
wbrowse de Hernan da error cuando bajo VScroll con mouse
Me da este error, no se a que se debe: [code:1t1v30hl] Error description&#58; Error BASE/1001 Undefined function&#58; ORDKEYGOTO Args&#58; &#91; 1&#93; = N 1480 Stack Calls =========== Called from&#58; => ORDKEYGOTO&#40;0&#41; Called from&#58; => &#40;b&#41;SETFILTER&#40;2677&#41; Called from&#58; => &#40;b&#41;SETFILTER&#40;2678&#41; Called from&#58; => TWINDOW&#58;VSCROLL&#40;2220&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; => TWINDOW&#58;HANDLEEVENT&#40;0&#41; Called from&#58; => _FWH&#40;0&#41; Called from&#58; => DIALOGBOX&#40;0&#41; Called from&#58; => TDIALOG&#58;ACTIVATE&#40;0&#41; Called from&#58; &#46;manprod&#46;prg => MANPROD&#40;372&#41; [/code:1t1v30hl] Busque la funcion ORDKEYGOTO en los Help's y encontre que pertenece a la clase TXBrowse la cual, no uso. Si alguien me puede ayudar, de antemanos gracias, Gonzalo FW27
wbrowse de Hernan da error cuando bajo VScroll con mouse
Agrega: EXTERNAL OrdKeyCount, OrdKeyGoTo, OrdKeyNo Y seguirá siendo tan estable como siempre.
wbrowse de Hernan da error cuando bajo VScroll con mouse
Gracias Alfredo Saludos Gonzalo
wbrowse edicion de columnas
pues viendo el fracaso del xbrowse, decidi volver al wbrowse, en este caso para la edicion de columnas con arreglos, 1. cuando se le especifica una font al browse y luego editas, el tamaño de la font te la hace mas pequeña, pero si no le especificas font, respeta el tamaño, al menos paso en mi caso. Estuve viendo la clase y en el metodo lEditCol encontre donde elije la fuente para el dialogo: if ::oFont != nil oFont = TFont():New( ::oFont:cFaceName, ::oFont:nWidth,; ::oFont:nHeight, .f., ::oFont:lBold ) endif aqui el valor se cambia cambio aun cuando yo le especifique la font al browse, la hace mas pequeña, ej: yo defini "arial" 0,-12 y el sistema me arroja "arial" 5.78,-12 por eso se ve mas pequeña, aki ya no supe como hacerle, pero cada control se le especifica la FONT definida mas no en el dialogo 2. para la edicion en combobox cambie unos datos a la clase para que se viera mas estetico cupiera el control en la celda, pero importante hay que definirle la altura de 20 a la fila que creo es la estandar para el control combobox, aki tengo un problema que no supe como arreglar, al abrir el combobox y tratar de usar las flechas arriba y/o abajo me saca del combobox y me envia a la siguiente columna, entonces lo malo es que hay que usar siempre el raton o la primer letra del combo anexo imagenes de las pruebas que hice con xbrowse y wbrowse <!-- m --><a class="postlink" href="http://img503.imageshack.us/my.php?image=browseoh0.jpg">http://img503.imageshack.us/my.php?image=browseoh0.jpg</a><!-- m --> espero me haya explicado. salu2 paco
wbrowse edicion de columnas
A mi me paso lo mismo con un ComboBox dentro de un Wbrowse, asi que lo tuve que dejar asi no mas, osea funciona solo con el Mouse y no con Teclas, porque si uso teclas se pasa al siguiente columna <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Jaime
wbrowse edicion de columnas
ya esta arreglado lo del combobox con las flechas ya no se brinca al siguiente control.. ahorita me estoy dando un tiro para que me abra el combobox en automatico... salu2 paco
wbrowse en harbour
Hola como tengo un poco de tiempo estoy pasando una aplicación de xharbour a harbour, con respecto al wbrowse de Hernán, hace un tiempo había bajado unas fuentes que tendrían que funcionar en harbour, cree las librerías y me daban error en la ejecución. Les dejo un enlace para el que lo necesite baje la pequeña modificación para poder enlazarla sin problemas y funcione. también la lib con harbour 3.2 <!-- m --><a class="postlink" href="https://drive.google.com/file/d/0B8UT409V4x1mUDNGZnB3Vll6b2M/edit?usp=sharing">https://drive.google.com/file/d/0B8UT40 ... sp=sharing</a><!-- m --> Luis
wbrowse en pellesc
hola foro, nuevamente con el pellesc, tengo el custom control twbrowse, pero no me aparecen las barras de scroll, ya las active desde codigo y nada, oBrw:lHScroll:=.T., alguna sugerencia de como hacer que se muestren? o como usar twbrowse en el pellesc? gracias Paco
wbrowse en pellesc
Hola Francisco, En la definición del custom indica lo siguiente en "Style" 0x50810000, en lugar de tener 0x50000000 que es lo que da por defecto.
wbrowse en pellesc
FRANCISCO STYLE 0x50B10000 Saludos Patricio
wbrowse en pellesc
Gracias a ambos, funciono...
wbrowse scopes...
wbrowse (el original de FW) en un dialogo dentro de un folder en determinadas situaciones que explicaré a continuación, me quita los scopes. Abro el dialogo y muestro los datos con el scope sin problemas, me muevo con la rueda del mouse arriba y abajo, con las teclas, sin problemas. Cuando pongo una ventana adelante y luego me muevo con la rueda del mouse me doy cuenta que me quitó el scope. O cuando hago click para redimensionar la columna y luego me muevo con la rueda del mouse el scope no está mas definido, y no depende de mis funciones, visto que no quito el scope en ningun momento (solo cuando cierro el dialogo). puse este codigo para cuando pierde el focus para resolver el asunto [code:2iwwnwhq] oLBXPrzAlt&#58;bGotFocus &#58;= &#123;|| prz_alt->&#40; ordSetFocus&#40;4&#41; &#41;,; prz_alt->&#40; ordScope&#40; TOPSCOPE, cCodCpc &#41; &#41;,; prz_alt->&#40; ordScope&#40; BOTTOMSCOPE, cCodCpc &#41; &#41;,; prz_alt->&#40; dbGoTop&#40;&#41; &#41; &#125; [/code:2iwwnwhq] pero me es util solo cuando pierde el focus y luego lo retoma, no cuando redimensiono la columna y luego me muevo con la ruedita del mouse... A alguien le pasa? Buscando en la wbrowse no veo en ninguna parte que elimine el scope, asi que estará en algunas de las funciones en C, que no las entiendo... Saludos
wbrowse scopes...
Sorry... wrong language...
wbrowse scopes...
wbrowse (el original de FW) en un dialogo dentro de un folder en determinadas situaciones que explicaré a continuación, me quita los scopes. Abro el dialogo y muestro los datos con el scope sin problemas, me muevo con la rueda del mouse arriba y abajo, con las teclas, sin problemas. Cuando pongo una ventana adelante y luego me muevo con la rueda del mouse me doy cuenta que me quitó el scope. O cuando hago click para redimensionar la columna y luego me muevo con la rueda del mouse el scope no está mas definido, y no depende de mis funciones, visto que no quito el scope en ningun momento (solo cuando cierro el dialogo). puse este codigo para cuando pierde el focus para resolver el asunto Código: oLBXPrzAlt:bGotFocus := {|| prz_alt->( ordSetFocus(4) ),; prz_alt->( ordScope( TOPSCOPE, cCodCpc ) ),; prz_alt->( ordScope( BOTTOMSCOPE, cCodCpc ) ),; prz_alt->( dbGoTop() ) } pero me es util solo cuando pierde el focus y luego lo retoma, no cuando redimensiono la columna y luego me muevo con la ruedita del mouse... A alguien le pasa? Buscando en la wbrowse no veo en ninguna parte que elimine el scope, asi que estará en algunas de las funciones en C, que no las entiendo... Saludos
wbrowse scopes...
Pedro, Try also setting bLogicLen: oLBXPrzAlt:bLogicLen := prz_alt->( ordKeyCount() ) Also make sure you are specifying the alias when you build the browse. Why are you setting the scope when getting focus? This is very unusual. Regards, James
wbrowse scopes...
[quote="James Bott":oo3jjjw8]Try also setting bLogicLen: oLBXPrzAlt:bLogicLen := prz_alt->( ordKeyCount() )[/quote:oo3jjjw8] You missed the codeblock. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
wbrowse scopes...
James, Is very unusual... but the problem is that twbrowse lost the scopes. Not always, but when dialog lost the focus and press the mouse in the adjust column, the scope say good bye... not all the time... this is my code for the browse: [code:39diu9y0] oV&#58;cScopeCliente1 &#58;= cCodCpc oV&#58;cScopeCliente2 &#58;= cCodCpc prz_alt->&#40; ordSetFocus&#40;4&#41; &#41; // codice cliente prz_alt->&#40; ordScope&#40; TOPSCOPE, oV&#58;cScopeCliente1 &#41; &#41; prz_alt->&#40; ordScope&#40; BOTTOMSCOPE, oV&#58;cScopeCliente1 &#41; &#41; prz_alt->&#40; dbGoTop&#40;&#41; &#41; REDEFINE LISTBOX oLBXPrzAlt FIELDS IIF&#40; !EMPTY&#40; prz_alt->cat_cod &#41; &#46;OR&#46; !EMPTY&#40; prz_alt->codfor &#41;, IIF&#40; EMPTY&#40; prz_alt->codfor &#41;, NameCateg&#40; prz_alt->cat_cod &#41;, &#40; ALLTRIM&#40; NameCateg&#40; prz_alt->cat_cod &#41; &#41; + "-" + NameCLF&#40; prz_alt->codfor &#41; &#41; &#41;, NameArt&#40; prz_alt->cod_art &#41; &#41;,; TRANSFORM&#40; prz_alt->prezzo, "@e 999,999&#46;99"&#41;,; TRANSFORM&#40; prz_alt->sc1, "@e 999&#46;99"&#41;,; TRANSFORM&#40; prz_alt->sc2, "@e 999&#46;99"&#41;,; TRANSFORM&#40; prz_alt->sc3, "@e 999&#46;99"&#41;,; TRANSFORM&#40; prz_alt->netto, "@e 999,999&#46;99"&#41;,; TRANSFORM&#40; prz_alt->data, "@d" &#41;; ALIAS "prz_alt"; HEADERS "Articolo/Categoria/Forn&#46;", "Prezzo", "SC1", "SC2", "SC3", "Netto", "Data"; ON LEFT DBLCLICK NewPrzAlt&#40; oLBXPrzAlt, &#46;F&#46; &#41;; ID 201; OF oFld&#58;aDialogs&#91;4&#93; // this is to solve &#40;temporaly&#41; the problem oLBXPrzAlt&#58;bGotFocus &#58;= &#123;|| prz_alt->&#40; ordSetFocus&#40;4&#41; &#41;,; prz_alt->&#40; ordScope&#40; TOPSCOPE, cCodCpc &#41; &#41;,; prz_alt->&#40; ordScope&#40; BOTTOMSCOPE, cCodCpc &#41; &#41;,; prz_alt->&#40; dbGoTop&#40;&#41; &#41;,; oLBXPrzAlt&#58;refresh&#40;&#46;T&#46;&#41; &#125; // this is for test oLBXPrzAlt&#58;bRClicked &#58;= &#123;|| msginfo&#40; PADR&#40; prz_alt->&#40; ordSetFocus&#40;&#41; &#41;, 20 &#41; + CRLF +; PADR&#40; prz_alt->&#40; dbOrderInfo&#40; DBOI_SCOPEBOTTOM &#41; &#41;, 20 &#41; + CRLF +; PADR&#40; prz_alt->&#40; dbOrderInfo&#40; DBOI_SCOPETOP &#41; &#41;, 20 &#41; + CRLF + ; PADR&#40; prz_alt->&#40; recno&#40;&#41; &#41;, 20 &#41; &#41; &#125; [/code:39diu9y0] Thank you for your time.
wbrowse scopes...
Pedro, OK, you using bGotFocus just as a workaround for the problem. So let's try to find the problem. I suggest commenting out your bGotFocus and putting in this line: oLBXPrzAlt:bLogicLen := {|| prz_alt->( ordKeyCount() ) } (as Enrico pointed out it needs to be a codeblock). Also try commenting out this line: ON LEFT DBLCLICK NewPrzAlt( oLBXPrzAlt, .F. ); I don't know what is going on in NewPrzAlt() but you are passing the browse object so let's eliminate that as a source of the problem. If the problem still is there, perhaps you can build us a small sample that we can use to recreate the problem? Regards, James
wbrowse scopes...
James, <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> It's my fault... I have a timer that import data from a database every 45 seconds... and save and retrieves the work areas... recno, focus, selected... the class twbrowse don't lost the scopes... Thank you again. Regards
wbrowse scopes...
Pedro, Glad you found the problem. > have a timer that import data from a database every 45 seconds... and save and retrieves the work areas... recno, focus, selected... I just open a new copy of the database rather than trying to save and restore the state. Unlike the old days when memory was a real issue, today it isn't. You may want to consider using a database class--they are so much easier to program. FW has one and I have one that is more advanced. My TData class automatically opens a database in a new area so you never have to deal with areas. More info here: [url:plp23b4s]http&#58;//ourworld&#46;compuserve&#46;com/homepages/jbott/program&#46;htm[/url:plp23b4s] >the class twbrowse don't lost the scopes... I'm glad to hear that too. Regards, James
wbrowse scopes...
James, I'll try to open a copy of the database with diferent aliases to solve the problem. I will try to use a database class. Thanks again Regards,
wbrowse scopes...
Pedro, >I will try to use a database class. Even if you don't use my database class, there are some articles about using database classes on my website that may help you understand them. Regards, James
wbrowse suma de columas
Amigos: Es posible con el browse de HDC sumar una columna y colocar el resultado en el footer?, que cambie segun se inserta o borran registros Muchas gracias Saludos Ruben Fernandez
wbrowse suma de columas
Ruben, por supuesto que se puede, mira aqui no es captura, pero se hace igual.. <!-- m --><a class="postlink" href="http://hyperupload.com/download/02c9dddc70/tot_footers.JPG.html">http://hyperupload.com/download/02c9ddd ... s.JPG.html</a><!-- m --> salu2 paco
wbrowse suma de columas
Gracias Paco: El asunto es como se hace... Saludos y Gracias Ruben Fernandez.,
wbrowse suma de columas
Es muy simple: Un "footer" es un arreglo de cadenas de caracteres: oBrw:aFooters := {"Sumas",TRANSFORM(suma(),"99999"), .....} La magia consiste en recalcular los footers cada vez que haces una insercion o un borrado en la tabla. La cosa sale mas rapido si haces bloques de codigo en lo footers: [code:2ilgm61c]oLbx2&#58;aFooters &#58;= &#123;"Sumas&#58;",; Transform&#40;EVAL&#40;&#123;|| SumaSal&#40;aSaldos,2,oLbx2&#41;&#125;&#41;,"999,999,999&#46;99"&#41;,; Transform&#40;EVAL&#40;&#123;|| SumaSal&#40;aSaldos,3,oLbx2&#41;&#125;&#41;,"999,999,999&#46;99"&#41;,; Transform&#40;EVAL&#40;&#123;|| SumaSal&#40;aSaldos,4,oLbx2&#41;&#125;&#41;,"999,999,999&#46;99"&#41;,; Transform&#40;EVAL&#40;&#123;|| SumaSal&#40;aSaldos,5,oLbx2&#41;&#125;&#41;,"999,999,999&#46;99"&#41;&#125;[/code:2ilgm61c] y la funcion SumaSal(): [code:2ilgm61c]FUNCTION SumaSal&#40;aArreglo,nCol,oBrw&#41; LOCAL nSuma &#58;= 0 AEVAL&#40;aArreglo,&#123;|x,y| nSuma += EVAL&#40;x&#91;nCol&#93;&#41;&#125;,1,oBrw&#58;nAt&#41; RETURN &#40;nSuma&#41; [/code:2ilgm61c] Y listo, mas simple ni hacer limonada
wbrowse suma de columas
Gracias Maestro Rene Saludos Ruben Fernandez.
wbrowse urgente
alguien sabe por que no me pone los titulos en el browse de Rossine y cuando empiezo a utilizar las diferentes propiedades que tiene la classe me descuadra todo el browse, alguien tiene la version actual o estable les dejo una imagen con el defecto y tambien me pasa con los Footers [/url]http://img294.imageshack.us/my.php?image=wbrowseed6.png[url][/url]
wbrowse y dolphin
Hola como puedo cargar un objeto obtenido de un query en un Wbrowse con tdolphin? Gracias por su atención Luis
wbrowse y dolphin
Saludos ! Revisa el Method SetDolphin(), de la clase TXBrowse Un pequeño ejemplo [code=fw:250699vo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />oQry := TDolphinQry<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;">"SELECT * FROM scg_cuentas"</span>, oConex <span style="color: #000000;">&#41;</span><br /><br />oBrow := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWndCtas <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; WITH OBJECT oBrow<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">SetDolphin</span><span style="color: #000000;">&#40;</span> cQry, .T., .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lColDividerComplete</span> := .T.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;:= MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_BLACK<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp;:= STRETCHCOL_LAST<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nHeaderHeight</span> &nbsp; &nbsp;:= <span style="color: #000000;">30</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lRecordSelector</span> &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">oFont</span> &nbsp; := oFont<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">203</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">l2007</span> &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lFooter</span> := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> cQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;% <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span>CLR_BLACK, CLR_WHITE<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">226</span>,<span style="color: #000000;">226</span>,<span style="color: #000000;">226</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bChange</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| MuestraRegis<span style="color: #000000;">&#40;</span> cQryCond, cMsg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; END WITH<br /><br />&nbsp;</div>[/code:250699vo]
wbrowse y dolphin
Lo que necesito es para cargar un browse, el xbrowse lo había resuelto. Gracias Luis
wbrowse y dolphin
OK ! Debes convertir el query en un array usando el Method FillArray( bOnFillArray, aColumns ), para luego usarlo con TWbrowse Saludos
wbrowse y dolphin
Gracias compañero
wbrowse y xbrowse
1. Regenere la libreria wbrowse 17 de hernan con la nueva version de fwh704 y al cargar el browse me muestra un error en el metodo NEW con la variable nElements que no existe, alguna solucion? 2. como hacer una busqueda incremental con xbrowse, con wbrowse funciona perfecto, y como ejecutar una accion con xbrowse cuando se da click en una cabecera. salu2 Paco
wbrowse y xbrowse
Paco: Para ejecutar una acción al clicar en la cabecera de una columna prueba: oCol:bLClickHeader := {|r,c,f,o| MiAccion()} Saludos, Rafael
wbrowse y xbrowse
ok, rafael probare descargue la wbrowse que modifio alfredo arteaga, y ese codigo no lo trae, asi que ya quedo. Alfredo, como hago para activar el id de la primer columna?, ya puse lFirst a .T., y por cierto que version de wbrowse modificaste? ya que segun yo tengo la 17, pero en la tuya no esta el IF de nElements en el metodo NEW. asi esta mi codigo: @ 0,0 LISTBOX oBCos ; FIELDS STR((oDCos)->Codigo,4),; (oDCos)->Descri ; HEADER "Codigo", "D E S C R I P C I O N" ; SIZES 90,350 ; WHEN !(dbEmpty(oDCos)) OF oWndHija salu2 Paco
wbrowse.prg function nwrows returning huge no
Hi Antonio I have a situation where wbrowse.prg method nRowCount is returning 53000 rows! This causes one of my browses on a dbf (which has +- 160,000 records in it) to take ages to open. nRowCount calls nwrows which calls GetWindowRows (extracted below) nRowCount should obviously never return more than the no of rows a browse could theoretically display with its font - say 100 It only happens on the 1st call to nRowCount (in our case from upstable), which causes UpStable to skip through 53000 records. Thereafter it returns the correct no of rows (39) The font object in Wbrowse has a valid handle and seems fine. Can you comment on what might be causing this ? Thanks Peter ********************************* WORD GetWindowRows( HWND hWnd, HDC hDC, HFONT hFont ) { TEXTMETRIC tm; RECT rct; WORD wRows; BOOL bDCDestroy = FALSE; HFONT hOldFont; if( ! hDC ) { bDCDestroy = TRUE; hDC = GetDC( hWnd ); } if( hFont ) hOldFont = ( HFONT ) SelectObject( hDC, hFont ); GetTextMetrics( hDC, &tm ); tm.tmHeight += 1; GetClientRect( hWnd, &rct ); wRows = ( rct.bottom - rct.top ) / tm.tmHeight; if( hFont ) SelectObject( hDC, hOldFont ); if( bDCDestroy ) ReleaseDC( hWnd, hDC ); return wRows; } //----------------------------------------------------------------------------// CLIPPER NWROWS( PARAMS ) // hWnd, hDC, hFont { _retni( GetWindowRows( ( HWND ) _parnl( 1 ), ( HDC ) _parnl( 2 ), ( HFONT ) _parnl( 3 ) ) ); }
wbrowse.prg function nwrows returning huge no
Peter, Are you calling the UpStable method before the browse is created by Windows ? (oBrw:hWnd != 0 ) Is it placed on a dialog ? If so, please call UpStable from here: ACTIVATE DIALOG oDlg ON INIT oBrw:UpStable()
wbrowse.prg function nwrows returning huge no
Antonio Yes you are correct! I am calling upstable while the Brw ::hWnd is 0 May I suggest you change wBrowse nRowCount method as follows to prevent other users wasting time on the same issue METHOD nRowCount() INLINE ; if(::hWnd > 0, nWRows( ::hWnd, 0, If( ::oFont != nil, ::oFont:hFont, 0 ) ) - 1, 0) Thanks for the assistance Peter
wbrowse.prg function nwrows returning huge no
Peter, Changed, thanks. Please use ::hWnd != 0 instead of ::hWnd > 0
wbrwline.c del browse de Hernan para FWH 2.7 Febrero
<!-- m --><a class="postlink" href="http://hyperupload.com/download/79488f53/WBRWLINE.C.html">http://hyperupload.com/download/79488f5 ... INE.C.html</a><!-- m -->
wbrwline.c del browse de Hernan para FWH 2.7 Febrero
[quote="Antonio Linares":rwstvglv]http://hyperupload.com/download/79488f53/WBRWLINE.C.html[/quote:rwstvglv] Oops <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> veo que ya implementaste los cambios de C, ahora cuando vuelva a la tarde le hecho una miradita para ver que es lo que cambio para aprender estas ultimas modificaciones de Harbour que comentas mas arriba. Hernan <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
wbrwline.c del browse de Hernan para FWH 2.7 Febrero
Hernan, when the new wbrowse ? Regards
wdbu a like
Please I need program like dbu forwwindows or even wdbu full version . Where can I find such a program ?
wdbu a like
You may download Prometheus from: <!-- m --><a class="postlink" href="http://www.vikthor.com.mx/fivewin/files/version/dbwsetup.exe">http://www.vikthor.com.mx/fivewin/files ... wsetup.exe</a><!-- m -->
wdbu a like
May you describe an English one pls
wdbu a like
<!-- m --><a class="postlink" href="http://www.xharbour.com/xhc/index.asp?page=xhc_download_detail.asp&type=dl&id=78&action=download&show_i=7&show_sub=2">http://www.xharbour.com/xhc/index.asp?p ... show_sub=2</a><!-- m --> Developed with FWH <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
wdbu on 64 bit
wdbu not run on windows seven wich prg we can use to have the same features of wdbu ?
wdbu on 64 bit
Silvio, the new CDBF-View from WhiteTown with WIN7 - Support. Everything You need is included. Export to any Format like : SQL, CSV, XML, HTML, TXT .... [img:6ionuhpz]http&#58;//www&#46;pflegeplus&#46;com/pictures/DBFVIEW&#46;jpg[/img:6ionuhpz] Maybe it is something, You are looking for. Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
wdbu on 64 bit
where I can load it ?
wdbu on 64 bit
Download from : <!-- m --><a class="postlink" href="http://www.whitetown.com">http://www.whitetown.com</a><!-- m --> Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
wdbu on 64 bit
not free ?
wdbu on 64 bit
Hello Silvio, It is not free ( 38 Dollar ). I still found another one ( free ), but doesn't offer all the Functions of CDBF-View. DBF-View-Plus from : <!-- m --><a class="postlink" href="http://www.alexnolan.net">http://www.alexnolan.net</a><!-- m --> Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
wdbu on 64 bit
i TRY TO RECOMPILE WDBU SOURCES BUT i NEED MANY FUNCTIONS
web GUI from FWH apps using webview
Here you have an example how to build a FWH app that uses the web as the GUI: webviewlogin.prg [code=fw:1r493k5r]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Please install <!-- m --><a class="postlink" href="https://developer.microsoft.com/en-us/microsoft-edge/webview2/">https://developer.microsoft.com/en-us/m ... /webview2/</a><!-- m --> x86 version before using it</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWebView := TWebView<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 /><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">SetHtml</span><span style="color: #000000;">&#40;</span> Html<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">SetTitle</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Please identify with your credentials"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">SetSize</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1200</span>, <span style="color: #000000;">800</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">SetUserAgent</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Mobile Safari/537.36"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">Bind</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SendToFWH"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">bOnBind</span> = <span style="color: #000000;">&#123;</span> | cJson, cCalls | Login<span style="color: #000000;">&#40;</span> cJson, cCalls, oWebView <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">sleep</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">300</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">Run</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWebView:<span style="color: #000000;">Destroy</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 /><br /><span style="color: #00C800;">function</span> Login<span style="color: #000000;">&#40;</span> cJson, cCalls, oWebView <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hData<br /><br />&nbsp; &nbsp;hb_jsonDecode<span style="color: #000000;">&#40;</span> cJson, @hData <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> hData<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"username"</span> <span style="color: #000000;">&#93;</span> != <span style="color: #ff0000;">"Antonio"</span> .or. hData<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"password"</span> <span style="color: #000000;">&#93;</span> != <span style="color: #ff0000;">"1234"</span><br />&nbsp; &nbsp; &nbsp; oWebView:<span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cCalls, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"{ 'result': 'incorrect values' }"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span> <br />&nbsp; &nbsp; &nbsp; oWebView:<span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> cCalls, <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"{ 'result': 'correct!' }"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br /><br /><span style="color: #00C800;">function</span> Html<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cHtml<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">TEXT</span> INTO cHtml<br />&nbsp; &nbsp;<!DOCTYPE html><br />&nbsp; &nbsp;<html><br />&nbsp; &nbsp;<head><br />&nbsp; &nbsp; &nbsp;<title>Identify</title><br />&nbsp; &nbsp; &nbsp;<style><br />&nbsp; &nbsp; &nbsp;body <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">display</span>: <span style="color: #000000;">flex</span>;<br />&nbsp; &nbsp; &nbsp; align-<span style="color: #0000ff;">items</span>: <span style="color: #0000ff;">center</span>;<br />&nbsp; &nbsp; &nbsp; justify-content: <span style="color: #0000ff;">center</span>;<br />&nbsp; &nbsp; &nbsp; height: 100vh;<br />&nbsp; &nbsp; &nbsp; background-<span style="color: #0000ff;">color</span>: #F2F2F2;<br />&nbsp; &nbsp; &nbsp; font-family: <span style="color: #000000;">Arial</span>, sans-serif;<br />&nbsp; &nbsp; &nbsp; margin: <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp;padding: <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; .container <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max-width: 400px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin: <span style="color: #000000;">0</span> auto;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;padding: 40px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #FFFFFF;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;border-radius: 5px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">display</span>: <span style="color: #000000;">flex</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flex-direction: <span style="color: #000000;">column</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;align-<span style="color: #0000ff;">items</span>: <span style="color: #0000ff;">center</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box-shadow: 0px 0px 44px rgba<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;">0.7</span><span style="color: #000000;">&#41;</span> !important;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;overflow:<span style="color: #000000;">none</span> !important;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.logo <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin-bottom: 40px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">display</span>: <span style="color: #000000;">flex</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;align-<span style="color: #0000ff;">items</span>: <span style="color: #0000ff;">center</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.logo img <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max-width: <span style="color: #000000;">100</span>%;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height: <span style="color: #000000;">auto</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.btn <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">display</span>: <span style="color: #000000;">inline</span>-block;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;padding: 12px 24px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #4CAF50;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span>: #FFFFFF;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;font-<span style="color: #0000ff;">size</span>: 16px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;text-decoration: <span style="color: #000000;">none</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;border-radius: 5px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;transition: <span style="color: #000000;">background</span>-<span style="color: #0000ff;">color</span> <span style="color: #000000;">0</span>.3s ease;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.btn:<span style="color: #000000;">hover</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #45A049;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;.form-group <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin-bottom: 20px;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.form-group label <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">display</span>: <span style="color: #000000;">block</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;font-<span style="color: #0000ff;">size</span>: 16px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;font-weight: <span style="color: #000000;">bold</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin-bottom: 5px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span>: #<span style="color: #000000;">333333</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.form-group input <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width: <span style="color: #000000;">100</span>%;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;padding: 12px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;font-<span style="color: #0000ff;">size</span>: 16px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;border-radius: 5px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;border: 1px solid #CCCCCC;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.btn <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">display</span>: <span style="color: #000000;">inline</span>-block;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;padding: 12px 24px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #4CAF50;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span>: #FFFFFF;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;font-<span style="color: #0000ff;">size</span>: 16px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;text-decoration: <span style="color: #000000;">none</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;border-radius: 5px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;transition: <span style="color: #000000;">background</span>-<span style="color: #0000ff;">color</span> <span style="color: #000000;">0</span>.3s ease;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.btn:<span style="color: #000000;">hover</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #45A049;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;body <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #3498db;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.btn <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #2980b9;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;.btn:<span style="color: #000000;">hover</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background-<span style="color: #0000ff;">color</span>: #1a5276;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; .logo <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;margin-bottom: 40px;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.logo img <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max-width: <span style="color: #000000;">100</span>%;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height: <span style="color: #000000;">auto</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;.myinput <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;width: <span style="color: #000000;">auto</span> !important;&nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;.mybtn <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;text-align:<span style="color: #0000ff;">center</span>;<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;</style><br />&nbsp; &nbsp;</head><br />&nbsp; &nbsp;<body><br />&nbsp; &nbsp; &nbsp;<div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"container"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp;<div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"logo"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src=<span style="color: #ff0000;">"https://fivetechsupport.com/forums/styles/prosilver/imageset/site_logo.gif"</span> alt=<span style="color: #ff0000;">"Logo"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp;</div><br />&nbsp; &nbsp; &nbsp; &nbsp;<form <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"login-form"</span> <span style="color: #0000ff;">action</span>=<span style="color: #ff0000;">"#"</span> <span style="color: #00C800;">method</span>=<span style="color: #ff0000;">"POST"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-group"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<label <span style="color: #00C800;">for</span>=<span style="color: #ff0000;">"username"</span>>Username:</label><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type=<span style="color: #ff0000;">"text"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"username"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"username"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"myinput"</span> required><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-group"</span>><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<label <span style="color: #00C800;">for</span>=<span style="color: #ff0000;">"password"</span>>Password:</label><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type=<span style="color: #ff0000;">"password"</span> <span style="color: #0000ff;">id</span>=<span style="color: #ff0000;">"password"</span> <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"password"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"myinput"</span> required><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><br />&nbsp; &nbsp; &nbsp; &nbsp;<div <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"form-group mybtn"</span> ><br />&nbsp; &nbsp; &nbsp; &nbsp;<button type=<span style="color: #ff0000;">"submit"</span> <span style="color: #00C800;">class</span>=<span style="color: #ff0000;">"btn"</span>>Iniciar sesión</button><br />&nbsp; &nbsp; &nbsp; &nbsp;</div><br />&nbsp; &nbsp; &nbsp; &nbsp;</form><br />&nbsp; &nbsp; &nbsp;</div><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<script><br />&nbsp; &nbsp; &nbsp; &nbsp;document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'login-form'</span><span style="color: #000000;">&#41;</span>.addEventListener<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'submit'</span>, <span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span>event<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;event.preventDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">var</span> username = document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'username'</span><span style="color: #000000;">&#41;</span>.value;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">var</span> password = document.getElementById<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'password'</span><span style="color: #000000;">&#41;</span>.value;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">var</span> <span style="color: #00C800;">data</span> = <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;username: <span style="color: #000000;">username</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;password: <span style="color: #000000;">password</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">var</span> s = SendToFWH<span style="color: #000000;">&#40;</span><span style="color: #00C800;">data</span><span style="color: #000000;">&#41;</span>.then<span style="color: #000000;">&#40;</span> s => <span style="color: #000000;">&#123;</span> alert<span style="color: #000000;">&#40;</span>s.result<span style="color: #000000;">&#41;</span>; <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp;</script><br />&nbsp; &nbsp;</body><br />&nbsp; &nbsp;</html><br />&nbsp; &nbsp;ENDTEXT<br /><br /><span style="color: #00C800;">return</span> cHtml</div>[/code:1r493k5r] [img:1r493k5r]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/weg_gui1&#46;png?raw=true[/img:1r493k5r]
web GUI from FWH apps using webview
Que buen ejemplo: Creo que webview es nuestro nuevo camino jejejejeje. Como lo dije anteriormente, toca empezar.
web appication
is possible to create web application with FWH ?
web appication
FWH is a GUI library for the desktop, not for the web.You can use Harbour/xHarbour to create CGI applications, that will run from a web server.
web appication
same samples
web appication
Kajot,What web server do you plan to use ? Windows ? Linux ?
web appication
Microsoft SERVER IIS
web appication
or Apache
web appication
Antonio ,Also I should like to make a small cgi application i have windows and i not found samples on mine cdsinstallation package.