topic
stringlengths
1
63
text
stringlengths
1
577k
xBrowse: how to retrieve field names...
Mr Rao, yes it is in my version. I try example with for/loop and :cHeader returns legal string array but :cExpr return "nil" [code=fw:f3z649vy]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />        oCol:=oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />        var1:=oCol:<span style="color: #000000;">cExpr</span>                      <span style="color: #B900B9;">// returns"nil"</span><br />        var2:=oCol:<span style="color: #000000;">cHeader</span>                  <span style="color: #B900B9;">// returns string array with headers...</span><br /><span style="color: #00C800;">next</span><br /> </div>[/code:f3z649vy] I will tray to check why... Best regards
xBrowse: how to retrieve field names...
[quote="bosibila":2ha64i6h]Mr Rao, yes it is in my version. I try example with for/loop and :cHeader returns legal string array but :cExpr return "nil" [code=fw:2ha64i6h]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />        oCol:=oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />        var1:=oCol:<span style="color: #000000;">cExpr</span>                      <span style="color: #B900B9;">// returns"nil"</span><br />        var2:=oCol:<span style="color: #000000;">cHeader</span>                  <span style="color: #B900B9;">// returns string array with headers...</span><br /><span style="color: #00C800;">next</span><br /> </div>[/code:2ha64i6h] I will tray to check why... Best regards[/quote:2ha64i6h] No point wasting your time. I think the initial implementation was working only for RDDs. So I suggest you do in your code what we do inside the library in the recent versions: [code=fw:2ha64i6h]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd OBJECT oQry COLUMNS aFields HEADERS aHead LINES CELL FASTEDIT<br /><br />oBrw:<span style="color: #000000;">cExprs</span> := aFields &nbsp;<span style="color: #B900B9;">// Add this line after your XBROWSE command.</span><br />&nbsp;</div>[/code:2ha64i6h] You can query for the column name with oCol:cExpr When you upgrade the current versions, you can omit the extra line of code I suggested. Even if you do not omit it does not create any problem
xBrowse: how to retrieve field names...
Thanks Rao, Best regards
xBrowse: problema con Copy/Paste
Al equipo de FiveWin: Al copiar celdas en xBrowse todo Ok, salvo cuando son DATE. Ejemplo: si copio '31/01/2013' al pegar este dato a otra [b:11r55ojd]celda tipo DATE[/b:11r55ojd] aparentemente no copia nada. El problema esta en el siguiente codigo: [code=fw:11r55ojd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> ClpText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br />:<br />:<br />      elseif ::<span style="color: #000000;">cDataType</span> == <span style="color: #ff0000;">'D'</span><br /><br />         cDtFmt    := Set<span style="color: #000000;">&#40;</span> _SET_DATEFORMAT <span style="color: #000000;">&#41;</span><br />         Set<span style="color: #000000;">&#40;</span> _SET_DATEFORMAT, <span style="color: #ff0000;">"YYYY-MM-DD"</span> <span style="color: #000000;">&#41;</span><br />         RetVal   := DTOC<span style="color: #000000;">&#40;</span> RetVal <span style="color: #000000;">&#41;</span><br />         Set<span style="color: #000000;">&#40;</span>_SET_DATEFORMAT, cDtFmt <span style="color: #000000;">&#41;</span><br />:<br />:<br /><span style="color: #00C800;">return</span> RetVal<br /> </div>[/code:11r55ojd] ejemplo: '31/01/2013' lo convierte a: '2013-01-31' y al hacer el pegado (PASTE), [b:11r55ojd]uCharToVal( '2013-01-31', @cType )[/b:11r55ojd] devuelve vacio (" / / "). [code=fw:11r55ojd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Paste<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">cDataType</span> $  <span style="color: #ff0000;">'CM'</span><br />      :<br />   <span style="color: #00C800;">else</span><br />      uNew        := uCharToVal<span style="color: #000000;">&#40;</span> cText, @cType <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:11r55ojd] Esto se debe a que [b:11r55ojd]uCharToVal( )[/b:11r55ojd] hace la conversion por medio de [b:11r55ojd]dCharToDate( cDate )[/b:11r55ojd] y [b:11r55ojd]dCharToDate( )[/b:11r55ojd] tiene este codigo: [code=fw:11r55ojd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> dCharToDate<span style="color: #000000;">&#40;</span> cDate <span style="color: #000000;">&#41;</span><br />:<br />:<br />      Set<span style="color: #000000;">&#40;</span> _SET_DATEFORMAT, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> cc == <span style="color: #ff0000;">'dd'</span>, <span style="color: #ff0000;">'mm/dd/yy'</span>, <span style="color: #ff0000;">'dd/mm/yy'</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      dDate := CToD<span style="color: #000000;">&#40;</span> cDate <span style="color: #000000;">&#41;</span><br />:<br />:<br /><span style="color: #00C800;">return</span> dDate<br /> </div>[/code:11r55ojd] [b:11r55ojd]"YYYY-MM-DD"[/b:11r55ojd] y [b:11r55ojd]If( cc == 'dd', 'mm/dd/yy', 'dd/mm/yy' )[/b:11r55ojd] son formatos de fechas incompatibles. es decir CToD( "2013-01-31" ) -> ' / / ' Para corregir el problema, se podria cambiar el metodo PASTE [code=fw:11r55ojd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Paste<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br /><br />   <span style="color: #00C800;">local</span> uNew, cType<br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">cDataType</span> $  <span style="color: #ff0000;">'CM'</span><br />      <span style="color: #00C800;">if</span> Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bLock</span> <span style="color: #000000;">&#41;</span><br />         ::<span style="color: #000000;">Value</span>     := Trim<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />         Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bUnLock</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   elseif ::<span style="color: #000000;">cDataType</span> $  <span style="color: #ff0000;">'D'</span>                     <span style="color: #B900B9;">//<--- aca el cambio ....</span><br />      uNew        := STOD<span style="color: #000000;">&#40;</span>strtran<span style="color: #000000;">&#40;</span> cText, <span style="color: #ff0000;">"-"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">if</span> EVal<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bLock</span> <span style="color: #000000;">&#41;</span><br />               ::<span style="color: #000000;">Value</span>  := uNew<br />               Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bUnlock</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">endif</span>                                <span style="color: #B900B9;">//....hasta aca.</span><br />   <span style="color: #00C800;">else</span><br />      uNew        := uCharToVal<span style="color: #000000;">&#40;</span> cText, @cType <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> uNew != <span style="color: #00C800;">nil</span><br />         <span style="color: #00C800;">if</span> ::<span style="color: #000000;">cDataType</span> == <span style="color: #00C800;">nil</span> .or. ::<span style="color: #000000;">cDataType</span> == cType<br />            <span style="color: #00C800;">if</span> EVal<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bLock</span> <span style="color: #000000;">&#41;</span><br />               ::<span style="color: #000000;">Value</span>  := uNew<br />               Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bUnlock</span> <span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:11r55ojd] Espero su opinion. Atentamente, Rolando Cochabamba - Bolivia FWH 1109 - xHarbour 1.1.0 (SimpLex) - BCC58
xBrowse: problema con Copy/Paste
uCharToVal( '2013-01-31' ) returns correct date in the present versions.
xBrowse: problems with column SORT
Hi, there is a problem browsing an array using the SORT command and non progressive elements. In this self-contained sample I have a 6 elements array and I want to browse only elements 1 and 6. As you can see if you try to change the order of the date column then the order is not correct. See <!-- w --><a class="postlink" href="http://www.softwarexp.co.uk/beta/image1.png">www.softwarexp.co.uk/beta/image1.png</a><!-- w --> to see an image of the problem Any ideas ? Thanks in advance #include "FiveWin.ch" #include "xbrowse.ch" function Main() local oDlg, oBrw, aArray set date french set epoch to 1920 aArray:={} aadd(aArray,{"Marc","Nil1","Nil2","Nil3","Nil4",ctod("31/12/2003")}) aadd(aArray,{"Luc","Nil1","Nil2","Nil3","Nil4",ctod("30/05/2004")}) aadd(aArray,{"George","Nil1","Nil2","Nil3","Nil4",ctod("31/12/2004")}) aadd(aArray,{"Simon","Nil1","Nil2","Nil3","Nil4",ctod("31/12/2005")}) aadd(aArray,{"Janie","Nil1","Nil2","Nil3","Nil4",ctod("31/12/2006")}) aadd(aArray,{"Robert","Nil1","Nil2","Nil3","Nil4",ctod("31/12/2007")}) aadd(aArray,{"Melanie","Nil1","Nil2","Nil3","Nil4",ctod("31/12/2008")}) DEFINE DIALOG oDlg SIZE 300, 200 @0,0 XBROWSE oBrw OF oDlg array aarray oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW oBrw:lRecordSelector := .f. ADD COLUMN oCol TO XBROWSE oBrw DATA ARRAY ELEM 1; HEADER "Name" SIZE 100 ORDER 1 ADD COLUMN oCol TO XBROWSE oBrw DATA ARRAY ELEM 6; HEADER "Date" SIZE 80 ORDER 2 oBrw:CreateFromCode() ACTIVATE DIALOG oDlg CENTER return nil
xBrowse: problems with column SORT
ADD COLUMN oCol TO XBROWSE oBrw DATA ARRAY ELEM 6; HEADER "Date" SIZE 80 ORDER 6 // not 2
xBrowse: problems with column SORT
Hi, using ORDER 6 isn't possible to change the order for that column. See source and executable sample on <!-- w --><a class="postlink" href="http://www.softwarex.co.uk/beta/sample.zip">www.softwarex.co.uk/beta/sample.zip</a><!-- w -->
xBrowse: problems with column SORT
Mr Marco You are right. Please apply this fix to xbrowse.prg Line 8708 ( Version 9.04 ) in Method SortArrayData Existing code: [code=fw:17z7v0mc]<div class="fw" id="{CB}" style="font-family: monospace;">         <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> nAt <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'N'</span> .and. nAt > <span style="color: #000000;">0</span> .and. nAt <= nLen</div>[/code:17z7v0mc] Change this line as : [code=fw:17z7v0mc]<div class="fw" id="{CB}" style="font-family: monospace;">         <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> nAt <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'N'</span> .and. nAt > <span style="color: #000000;">0</span> .and. nAt <= Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">aArrayData</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></div>[/code:17z7v0mc] Your sample is working fine with this fix in xbrowse.prg. You have to write ORDER 6 ( not 2 ) in your code. Request Mr Antonio to examine the fix and incorporate if he considers correct.
xBrowse: problems with column SORT
All runs fine now. Thanks for your quick support.
xBrowse:MakeTotals()
Hello, When doing an xBrowse refresh() or update(), why maketotals are not updated?. Thanks.
xBrowse:MakeTotals()
[code=fw:1ylccoo1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;oBrw:<span style="color: #000000;">MakeTotal</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1ylccoo1]
xBrowse:MakeTotals()
Yes, in order to fix it I call oBrowse:MakeTotals() But why it is not done automatically?. Thanks.
xBrowse:MakeTotals()
To not slow down the refresh method, I suppose. EMG
xBrowse:MakeTotals()
Mr EMG is right. MakeTotals() is a handy method to avoid complex coding but is not optimized for speed. Instead this method is coded to provide highest degree of flexibility. While this is suitable for tables in memory ( arrays, recordsets ) and small and medium tables, it is not suitable for large tables and in particular tables on networks. In such cases the programmer has to adopt his own ways to optimize recomputation of aggregates in the footers. Also, once MakeTotals() is called in the beginning, it is not necessary to call this method for every refresh. Any inline editing of the values in the table automatically update the aggregates ( without retotalling ) and refresh the footer. Normally there should be no need to call the method again. If the programmer intends to substitute the value of a column, he may use oCol:VarPut( nNewValue ). This will suitably adjust the aggregate and refresh the footer. Exceptions: Add a row, delete a row or re-read the entire data. While adding or deleting a row, the programmer may choose between updating the totals programatically or by calling maketotals() method again, considering the performance issues. All said and done, by experience we find MakeTotals() is still very useful and we never notice any performance sluggishness in a majority of cases. Best use of this method is while handling complex aggregates like STDEV, etc which otherwise require lots of coding. So, whether to use the method MakeTotals() or not either in the beginning or while refreshing is left to the best judgment of the programmer.
xBrowse:MakeTotals()
Thanks a lot. it is working fine as it is not a big table. xBrowse is so much powerful <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
xBrowse:ToExcel() crash in Win7 x86
Dear Mr. RAO, Also tried with sample "testxbr3.prg" when exporting to excel but failed or apps hangup. Installed is MS Office 2003 STD in Win7 Pro x86. I think the problem is the call "oExcel := ExcelObj()" found in xbrowse.prg (FWH v11.05) Kind Regards,
xBrowse:ToExcel() crash in Win7 x86
Dear All, I found the problem... I am using xHarbour v1.21.9376 when this problem was first encountered.. When all things considered and seems no alternative solution.. I WENT BACK to xHarbour v1.21.6714.. The problem was solved.
xBrowse:ToExcel() crash in Win7 x86
We had this problem with some versions of xharbour. I am using xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9381) This is the build provided by FiveWin. This version is working well. You may try this version, instead of going back to an older version.
xBrowse:ToExcel() crash in Win7 x86
[quote="nageswaragunupudi":3rl23waj]We had this problem with some versions of xharbour. I am using xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9381) This is the build provided by FiveWin. This version is working well. You may try this version, instead of going back to an older version.[/quote:3rl23waj] Dear Mr. RAO, I have rev.9381 that was downloaded some weeks ago.. but still crashing my app and 'testxbr3.prg.. the datestamp on harbour.exe of rev.9381 is 07/03/2011 03:18am do you have a quick link to latest xharbour build?
xBrowse:ToExcel() crash in Win7 x86
By-the-Way, Im using ADS RDD.. With xharbour 1.21.9381 does not include these files "ace32.lib" and "rddads.lib".. so I used either the rev.6714 or rev.9376 This could be the problem... ace32.lib and rddads.lib should be updated and included with rev.9381..
xBrowse:ToExcel() crash in Win7 x86
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=21875">viewtopic.php?f=17&t=21875</a><!-- l --> We need to build our own rddads
xBrowse:ToExcel() crash in Win7 x86
[quote="nageswaragunupudi":229lky7r]http://forums.fivetechsupport.com/viewtopic.php?f=17&t=21875 We need to build our own rddads[/quote:229lky7r] Can you post the steps please..
xBrowse:ToExcel() crash in Win7 x86
Yes, on some win7 with problems.for example: excelObj() vs oExcel := GetOleObject( "Excel.Application" ) calls toleauto() class,but harbour 3.0 comes better win_oleauto class, I do not find the source file getoleobject() to replace it win_oleauto class. Regards! Shuming Wang
xBrowse:ToExcel() crash in Win7 x86
Mr Wang If you get this crash, please do this: In \fwh\samples\olefuncs.prg modify function FWGetOleObject() as [code=fw:2bnap4ey]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> FWGetOleObject<span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oObj<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; oObj &nbsp;:= TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">return</span> oObj<br />&nbsp;</div>[/code:2bnap4ey]
xBrowse:ToExcel() crash in Win7 x86
[quote="ShumingWang":umeb36vz]Yes, on some win7 with problems.for example: excelObj() vs oExcel := GetOleObject( "Excel.Application" ) calls toleauto() class,but harbour 3.0 comes better win_oleauto class, I do not find the source file getoleobject() to replace it win_oleauto class. Regards! Shuming Wang[/quote:umeb36vz] May I know which version of FWH are you using? Please change the function name GetOleObject in olefuncs.prg as FWGetOleObject and in all its references. GetOleObject name in olefuncs.prg was clashing with function of the same name in xHarbour
xBrowse:ToExcel() crash in Win7 x86
[quote="nageswaragunupudi":30wumw4m][quote="ShumingWang":30wumw4m]Yes, on some win7 with problems.for example: excelObj() vs oExcel := GetOleObject( "Excel.Application" ) calls toleauto() class,but harbour 3.0 comes better win_oleauto class, I do not find the source file getoleobject() to replace it win_oleauto class. Regards! Shuming Wang[/quote:30wumw4m] May I know which version of FWH are you using? Please change the function name GetOleObject in olefuncs.prg as FWGetOleObject and in all its references. GetOleObject name in olefuncs.prg was clashing with function of the same name in xHarbour[/quote:30wumw4m] I'm using FWH v11.05 I will try your suggestion and will post here results.. Thanks again!
xBrowse:ToExcel() crash in Win7 x86
Dear Mr. RAO, I tried this: [code=fw:1ut4pskk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> ExcelObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> lInstalled<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> oExcel<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !<span style="color: #000000;">&#40;</span> lInstalled == .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lInstalled &nbsp;:= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oExcel := FWGetOleObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> oExcel<br />&nbsp;</div>[/code:1ut4pskk] But apps still crashed in win7 x86.. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
xBrowse:ToExcel() crash in Win7 x86
Dear Mr. RAO, I modified this: [code=fw:2zjdfcr8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> FWGetOleObject<span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oObj<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; oObj &nbsp;:= TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//from GetActiveObject( cApp )</span><br />&nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oObj &nbsp;:= TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">return</span> oObj<br />&nbsp;</div>[/code:2zjdfcr8] NOW WORKS WITH xHB1.21.9381 [b:2zjdfcr8]WITHOUT CRASHING...[/b:2zjdfcr8] <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xBrowse:ToExcel() crash in Win7 x86
I modified this: no action nor error alert. Code: function FWGetOleObject( cApp ) local oObj TRY oObj :=WIN_OleAuto():New( cApp ) //from GetActiveObject( cApp ) , call harbour win_oleauto class (hbwin.lib) CATCH TRY oObj := WIN_OleAuto():New( cApp ) CATCH END END return oObj Shuming Wang
xBrowse:ToExcel() crash in Win7 x86
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22330">viewtopic.php?f=3&t=22330</a><!-- l -->
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Estimados, sigo molestando con xBrowse. Tengo un xBrowse: oBrSaldo:nDataLines := 33, aquí coloco el saldo por día de una cuenta bancaria, dependiendo si es sabado o domingo, no aparece el saldo. Pregunta: Se puede colorear las línea de sabado o Domingo de un color diferente? La base de Datos tiene 32 campos, cada uno representa el dia de un mes y la muestro asi-> Saldo(1)+CRLF+Saldo(2).... hasta 31 o fin del mes. Dejo una imagen de como se ve, muchas gracias. <!-- m --><a class="postlink" href="http://img841.imageshack.us/img841/6438/saldos.jpg">http://img841.imageshack.us/img841/6438/saldos.jpg</a><!-- m --> Muchas gracias, saludos. Ruben Fernandez
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Lo puedes hacer asi [code=fw:fb7skpz5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />oBrow::<span style="color: #000000;">bClrStd</span>      := <span style="color: #000000;">&#123;</span>||  iif<span style="color: #000000;">&#40;</span>  dia = <span style="color: #ff0000;">"Domingo"</span> .or. dia = <span style="color: #ff0000;">"Sabado"</span> ,aqui los colores ,  <span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:fb7skpz5] Espero te ayude
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Lo pruebo y aviso, muchas gracias. Saludos Ruben Fernandez
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Javier: lamentablemente no funciona. Tengo una BD de 33 Campos que los muestro en una columna sola con CAMPO1+CRLF+CAMPO2+CRLF...hasta 32. A cada uno de esos renglones es qie quier asignarle un color. Quizás no sea posible, seguiré investigando. Muchas gracias Saludos Ruben Fernandez
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Ruben, La Clase XBrowse te permite el pintado "personalizado" de las celdas, con lo que puedes mostrar en ellas lo que desees. Tienes un ejemplo en: FWH/samples/metro2.prg en concreto revisa: oBrw:aCols[ 1 ]:bPaintText = { | oCol, hDC, cText, aCoors, aColors, lHighlight | DrawRow( oCol, hDC, cText, aCoors, oFont ) } En ese codeblock se implementa el pintado de una celda del browse. Ahora lo siguiente es ver como programar el pintado que tu quieres <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Entiendo que tienes x lineas de texto y quieres que cada una se muestre de un color. Podrias hacer: [code=fw:n5qem63a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> DrawRow<span style="color: #000000;">&#40;</span> oCol, hDC, cText, aCoors, oFont <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br /><br />&nbsp; &nbsp;oFont:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> MLCount<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> n % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, CLR_GRAY <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// SetTextColor( hDC, CLR_... ) </span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, CLR_CYAN <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// SetTextColor( hDC, CLR_... )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> hDC, MemoLine<span style="color: #000000;">&#40;</span> cText,, n <span style="color: #000000;">&#41;</span>, aCoors <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; aCoors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> += <span style="color: #000000;">25</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">DeActivate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:n5qem63a]
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Antonio: Muchas gracias, lo pruebo y aviso. Saludos Ruben Fernandez
xBrowse:nDataLines := 33 Colorear SOLUCIONADO
Gracias Antonio se solucionó con su fórmula function DrawRow( oCol, hDC, cText, aCoors, oFont ) Local n oFont:Activate( hDC ) for n = 1 to MLCount( cText ) if StrCharCount(MemoLine(cText, ,n ), ">" ) > 0 SetTextColor( hDC, CLR_HRED ) Else SetTextColor( hDC, CLR_BLACK ) Endif DrawText( hDC, MemoLine( cText,, n ), aCoors ) aCoors[ 1 ] += 12 next oFont:DeActivate( hDC ) return nil El caracter ">" fue el que use para diferenciar los dias de la semana con los sábados y domingos. Muchas gracias Saludos Ruben Fernandez
xBrowser
Thank you Antonio. My first xBrowser is implemented and substituting the TWbrowse. It is all in bmp, diverse fonts per row and column, vertical font on header, 2007 look [img:kbovvh42]http&#58;//www&#46;atzwanger&#46;com/fw/rg&#46;jpg[/img:kbovvh42]
xBrowser
Otto, Very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xBrowser
I feel xbrowse the best looking browses of all and the most powerful. I have almost all my browses in xbrowse. If only two improvements are done (1) make edit safe and reliable and (2) provide super (group) headers, xbrowse will be the best.
xBrowser
Hello Mr. NageswaraRao, I see you are very active on xBrowser and in this newsgroup. Have you seen my initial work to start a design tool for xBrowser. Maybe you want join this work. Is it possible to contact you via private email? Here is my email: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> Regards, Otto
xBrowser
Otto, ich habe bei Xbrowse das Problem mit picture "@E ###.##" bei der Anzeige eines Betrages. Wenn ich die Daten mit transform(..) und picture wie oben formatiere, kann ich nicht mehr richtig editieren, da ja der numerische Charakter verloren geht. Sehe gerade, daß du es nicht verwendest. Weißt du eine Lösung? Grüße aus Kärnten.
xBrowser
XBrowse depends on Harbour or xHarbour for Transforms and Gets. If the picture works in normal Harbour and xHarbour, it should also work with xBrowse. If there is a problem, it is not with xbrowse.
xBrowser
Hallo Günther, vorerst die besten Grüße aus Osttirol. Habe gar nicht gewusst, dass es in der Nachbarschaft FIVEWIN User gibt. Ich verwende xBrowser erst seit kurzem und habe mit dem Editieren keine Erfahrung. Vielleicht können wir uns mal im „GERMAN FORUM“ unterhalten. Liebe Grüße Otto
xBrowser
Does xBrowser work on the Ipaq? Thanks in advance Otto
xBrowser
Otto, We have not tested it yet, but it should work <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xBrowser
have you an sample with xbrowse with ttabs ( on bottom) into ppc ? How I can make to insert on a dialog an xbrowse and 4/5 buttons into footer of palm Is there an method or I am bad to create it ? I found serious problems to create it Also to create dialog because I have many fields to insert
xBrowser
Silvio, We have not ported TXBrowse to FWPPC yet We plan to do it soon,
xBrowser
Hello Antonio,Are there some news about xbrowser and FWPPC.Thanks in advanceOtto
xBrowser
Hello Guys, good afternoon! I would like to know if it is possible that a browse does not have color on the selected line. Put an image in the background, and I would like that when walking on the browse, I would not modify the background image or the colors of the words. It's possible? Thanks in advance! Oliveiros Junior
xBrowser
To avoid highlighting any cell, use [code=fw:2vtaca4y]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_NOMARQUEE  <span style="color: #B900B9;">// 0</span></div>[/code:2vtaca4y] For fixed background image, use this clause while creating the browse. [code=fw:2vtaca4y]<div class="fw" id="{CB}" style="font-family: monospace;">BACKGROUND <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span> FILL  <span style="color: #B900B9;">// FILL or STRETCH or TILED</span></div>[/code:2vtaca4y] Try this sample [code=fw:2vtaca4y]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><br />   USE CUSTOMER <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</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;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">600</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />   @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #0000ff;">AUTOCOLS</span> LINES NOBORDER ;<br />      BACKGROUND <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span> FILL<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_NOMARQUEE  <span style="color: #B900B9;">// 0</span><br />      :<span style="color: #000000;">bClrStd</span>       := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BLACK <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">lContrastClr</span>  := .f.<br />      <span style="color: #B900B9;">//</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<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;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2vtaca4y] [url=https&#58;//imageshack&#46;com/i/pnsfxEX3p:2vtaca4y][img:2vtaca4y]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/sfxEX3&#46;png[/img:2vtaca4y][/url:2vtaca4y]
xBrowser
Mr Rao, Thank you Att., Oliveiros Junior
xBrowser
Maybe a focused cell or row with border and any linestyle <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> defined color pensize transp level normal or glowing square or round corners border painted with cellsize or outside or inside of a cell [img:1beyz410]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/border11&#46;jpg[/img:1beyz410] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
xBrowser
Mr Uwe, Thanks for the suggestion. Att., Oliveiros Junior
xBrowser
[quote="ukoenig":ce2euu3f]Maybe a focused cell or row with border and any linestyle <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> defined color pensize transp level normal or glowing square or round corners border painted with cellsize or outside or inside of a cell [img:ce2euu3f]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/border11&#46;jpg[/img:ce2euu3f] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:ce2euu3f] Uwe, How do you code look like for this ?
xBrowser
Marc, here are just some more options what is possible the design of each cell can be different like You can see I still need a little bit time to complete the tool. It is small and easy to understand. [img:2lakmgz7]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/border12&#46;jpg[/img:2lakmgz7] [b:2lakmgz7]On top the style of each cell is defined[/b:2lakmgz7] the styles / settings of the 13 customer.dbf fields : [code=fw:2lakmgz7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// enable / disable borderpainting of cells</span><br /><span style="color: #00C800;">LOCAL</span> aShowBord := <span style="color: #000000;">&#123;</span> .F., .T., .T., .T., .T., .F., .T., .T., .T., .T.,  .F., .T., .T. <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// defined pensize</span><br /><span style="color: #00C800;">LOCAL</span> aPensize      :=  <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>.,<span style="color: #000000;">4</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span>        <br /><span style="color: #B900B9;">// border-colors</span><br /><span style="color: #00C800;">LOCAL</span> aRGBColor := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">16777215</span>, <span style="color: #000000;">65535</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">4259584</span>, <span style="color: #000000;">65535</span>, <span style="color: #000000;">65535</span>, <span style="color: #000000;">16711935</span>, ;<br />                       <span style="color: #000000;">16777215</span>, <span style="color: #000000;">16777215</span>, <span style="color: #000000;">255</span>., <span style="color: #000000;">255</span>, <span style="color: #000000;">16777215</span>, <span style="color: #000000;">16777215</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// no transparent = 255  transp = 100 to 255</span><br /><span style="color: #00C800;">LOCAL</span> aTranpL       := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>., <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#125;</span>  <br /><span style="color: #B900B9;">// round corners</span><br /><span style="color: #00C800;">LOCAL</span> aRound        := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>.,<span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span>    <br /><span style="color: #B900B9;">// 1 = outside, 2 = cell-line, 3 = inside, 4 = glow </span><br /><span style="color: #00C800;">LOCAL</span> aBordStyle        := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>.,<span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:2lakmgz7] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xBrowser
Marc, I'm still busy working on the tool some amazing things are possible with xBrowse I created a colorpicker on a xBrowse-cell <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> The cell is showing the selected border and colovalue Each column can have a sifferent cellborder six values can be defined for each border. The folderpages 3, 4 and 5 including the generated source of a full working sample. [img:1bkpyvv3]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/cBorder7&#46;jpg[/img:1bkpyvv3] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xBrowser
You are changing the source of Xbrowse for this ?
xBrowser
Marc, [b:1e0n4fir]nothing [/b:1e0n4fir] has to be changed <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> I'm just working on a solution to UPDATE the xBrowse-background on folderpage 1 with a selected image from folderpage 2 at runtime because the selected image can be a image ( FILL ) or brush related to the selection I habe to change the < xBrowse-BkMode > as well on folderpage 1 the border-results selected on folderpage 2 are visible on pagechange as well like the background on folderpage 1 @ 10, 10 XBROWSE oBrw1 SIZE 850, 525 PIXEL OF oFld:aDialogs[ 1 ] ; COLSIZES 40, 110, 110, 200, 150, 70, 100, 100, 100, 80, 60, 120, 160 ; DATASOURCE oCustomer AUTOCOLS LINES NOBORDER ; BACKGROUND [color=#0000FF:1e0n4fir]cBackImg[/color:1e0n4fir] FILL <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> the var [color=#FF0000:1e0n4fir]cBackImg[/color:1e0n4fir] is new defined on folderpage 2 oBrw1:SetBackGround( cBackImg, BCK_FILL ), ; works as a background-change on folderpage 1 oBrw1 is defined as STATIC [img:1e0n4fir]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/cBorder8&#46;jpg[/img:1e0n4fir] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xBrowser
Guys, good morning! I have two situations in xBrowser and I wanted to know if you have already experienced this and if you were able to resolve it: a) when using a larger font, for example: "Arial" -20, xBrowser starts showing the line, columns with different colors; b) when setting the size of the columns, it does not display the browser; I clarify that the browser does not have a header, lines and vertical and horizontal scrolling, it looks like a form. Below is the browser code [code=fw:yfhiyk13]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBrowser &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">-20</span> &nbsp; BOLD<br /><br />&nbsp; @ nLinha, nColuna <span style="color: #0000ff;">XBROWSE</span> oBrowser <span style="color: #0000ff;">SIZE</span> nLargura, nAltura &nbsp;;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oDialog</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp;COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">7</span> &nbsp; &nbsp; &nbsp; &nbsp;; <span style="color: #B900B9;">//, 8 &nbsp; &nbsp; ;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontBrowser &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp;NOBORDER <span style="color: #0000ff;">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp;DATASOURCE oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aArray</span><br />&nbsp; <br />&nbsp; WITH OBJECT oBrowser<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; &nbsp;:= MARQSTYLE_NOMARQUEE<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nColDividerStyle</span> &nbsp; &nbsp; := LINESTYLE_NOLINES <span style="color: #B900B9;">//LINESTYLE_BLACK &nbsp; </span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nRowDividerStyle</span> &nbsp; &nbsp; := LINESTYLE_NOLINES &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nHeadDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_NOLINES<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lColDividerComplete</span> &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lUpdate</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lHScroll</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lVScroll</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lHeader</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">l2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lFlatStyle</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lRecordSelector</span> &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lDrawBorder</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= STRETCHCOL_WIDEST<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bLDblClick</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || oBrowser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrowser:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oGet:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bRClickData</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || oBrowser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrowser:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oGet:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bLClicked</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |r,c,f,o| oBrowser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrowser:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oGet:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrSel</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrSelFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</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; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aColunaBrowser</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aColunaBrowser</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aColunaBrowser</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aColunaBrowser</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aColunaBrowser</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">aColunaBrowser</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//:nWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= oApp():aColunaBrowser[ 7 ]</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">".<span style="color: #000000;">\i</span>magens<span style="color: #000000;">\f</span>undo.png"</span>, BCK_FILL <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; END<br />&nbsp;</div>[/code:yfhiyk13] Note that to show the columns, I had to inhibit the measurements of the last column. Thank you very much in advance Att. Oliveiros Junior
xBrowser
Please provide a sample that we can build and test at our end.
xBrowser
Mr Rao, Goodnight! In the following example, although we have 7 columns, when placing the 7th element in the array the program does not execute. That's why there are 6 elements in the array. I think the color change occurs when the content becomes larger than the space defined for the column. [code=fw:3256okzk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*------------------------------------------------------------------------------<br /><br />Sample <br /><br />-------------------------------------------------------------------------------*/</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;">"Constant.ch"</span><br /><br />*-------------------------------------------------------------------------------*<br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Local</span> oDialog, oBrowser, oFontBrowser, aArray, aColunaBrowser<br />&nbsp; <br />&nbsp; aColunaBrowser &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> <span style="color: #000000;">&#125;</span><br />&nbsp; aArray &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"01"</span>, <span style="color: #ff0000;">"XXXXXXXX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"02"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; <br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBrowser &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-20</span> &nbsp;BOLD<br /><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDialog <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1366</span>, <span style="color: #000000;">768</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_CHILD, WS_POPUP <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_BLACK TRUEPIXEL<br /><br />&nbsp; SetDlgGradient<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.9</span>, CLR_WHITE, CLR_WHITE <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.1</span>, CLR_BLACK, CLR_BLACK <span style="color: #000000;">&#125;</span>, .F. <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; @ <span style="color: #000000;">317.200</span>, <span style="color: #000000;">409.800</span> <span style="color: #0000ff;">XBROWSE</span> oBrowser <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">737.640</span>, <span style="color: #000000;">383.200</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDialog &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp;COLUMNS <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">7</span> &nbsp; &nbsp; &nbsp; &nbsp;; <br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFontBrowser &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp;NOBORDER <span style="color: #0000ff;">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp;DATASOURCE aArray<br /><br />&nbsp; WITH OBJECT oBrowser<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; &nbsp;:= MARQSTYLE_NOMARQUEE<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nColDividerStyle</span> &nbsp; &nbsp; := LINESTYLE_NOLINES <span style="color: #B900B9;">//LINESTYLE_BLACK &nbsp; </span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nRowDividerStyle</span> &nbsp; &nbsp; := LINESTYLE_NOLINES &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nHeadDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_NOLINES<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lColDividerComplete</span> &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lUpdate</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lHScroll</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lVScroll</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lHeader</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">l2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lFlatStyle</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lRecordSelector</span> &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">lDrawBorder</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= STRETCHCOL_WIDEST<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bLDblClick</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || oBrowser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrowser:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bRClickData</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || oBrowser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrowser:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bLClicked</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |r,c,f,o| oBrowser:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrowser:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrSel</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bClrSelFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</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; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//:nWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= aColunaBrowser[ 7 ]</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataStrAlign</span> &nbsp; := AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga2.jpg"</span>, BCK_FILL <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; END<br />&nbsp; <br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDialog <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br />*-------------------------------------------------------------------------------*<br />&nbsp;</div>[/code:3256okzk] Att., Oliveiros Junior
xBrowser
Estimado Oliveiros Junior Utilice la pestaña Code para colocar su código [code=fw:20jm5giv]<div class="fw" id="{CB}" style="font-family: monospace;">Aquí coloque su código</div>[/code:20jm5giv]
xBrowser
First step: Please try this and see. It is working for me here. Please confirm if it is working for you also there. [code=fw:2ukk1j6v]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oDlg, oBrw, oFont, aArray<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aWidths := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aArray := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"01"</span>, <span style="color: #ff0000;">"XXXXXXXX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"77"</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"02"</span>, <span style="color: #ff0000;">"XX"</span>, &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"XX"</span>, <span style="color: #ff0000;">"77"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<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;">0</span>,<span style="color: #000000;">-20</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1366</span>,<span style="color: #000000;">768</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;@ <span style="color: #000000;">317</span>,<span style="color: #000000;">410</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">734</span>,<span style="color: #000000;">383</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE aArray <span style="color: #0000ff;">AUTOCOLS</span> ;<br />&nbsp; &nbsp; &nbsp; COLSIZES aWidths ;<br />&nbsp; &nbsp; &nbsp; JUSTIFY AL_LEFT, AL_RIGHT, AL_LEFT, AL_RIGHT, AL_LEFT, AL_RIGHT, AL_RIGHT ;<br />&nbsp; &nbsp; &nbsp; NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lHScroll</span> := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lVScroll</span> := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lHeader</span> := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lRecordSelector</span> := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_WIDEST<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>lga1.jpg"</span>, BCK_FILL <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2ukk1j6v]
xBrowser
Olá Adhemar, Obrigado pela orientação. Vou segui-la na próxima postagem. Att., Oliveiros Junior
xBrowser
Mr Rao, Yes it works. Showed the 7 columns. Att., Oliveiros Junior
xBrowser
Now, whatever extra features you want, keep adding one line at a time and test. You will know which line is giving you the problem.
xBrowser
thanks mister Rao
xBrowser + RTF
Has someone tried to use a RICHEDIT in the datapaint method of xBrowser. I would like to have the same outlook in xBrowser as the sample. [img:1q3dyy9t]http&#58;//www&#46;atzwanger&#46;com/fw/rtfgrid&#46;jpg[/img:1q3dyy9t]
xBrowser + RTF
Maybe someone can help - Does "IsRTF()" work? I saw the function in fget class. - What does TRichEdit need as a container? Regards, Otto method paintdata ... if IsRTF( cdata ) ??? define a window without frame from {nRow, nCol, nRow + nHeight, Min( nCol + nWidth, ::oBrw:BrwWidth() - 5 ) } cRtf:= cdata oRTF := TRichEdit():New( nRow, 0, { | u | If( PCount()==0, cRTF, cRTF:= u ) },oWndTest ,,,, .F.,, .F., .F.,,,, .F., .F., "TestRTF.RTF",, .F., .F., ) ACTIVATE WINDOW oWndRTF else oFont:Activate( hDC ) SetTextColor( hDC, aColors[ 1 ] ) SetBkColor( hDC, aColors[ 2 ] ) DrawTextEx( hDC, cData,; {nRow, nCol, nRow + nHeight, Min( nCol + nWidth, ::oBrw:BrwWidth() - 5 ) },; ::nDataStyle ) oFont:Deactivate( hDC ) ENDIF endif
xBrowser + RTF
Antonio, is there some news about RTF support for xBrowser? Regards, Otto
xBrowser + RTF
The function IsRTF() works. Seems you have already done displaying RTF in xbrowse cell. Is it the same code you are using? Can you post your full code for display of rtf ?
xBrowser + RTF
NageswaraRao, no I am sorry. I used ComponentOne’s FlexGrid with VB.NET for the demo screen. But I think it is very similar what we have in our xBrowser. Regards, Otto Dim _rtf As New RTF Private Sub _flex_OwnerDrawCell(ByVal sender As Object, ByVal e As C1.Win.C1FlexGrid.OwnerDrawCellEventArgs) Handles _flex.OwnerDrawCell ' check whether the cell contains RTF Dim rtfText As String = _flex.GetDataDisplay(e.Row, e.Col) If (rtfText.StartsWith("{\rtf")) Then ' _flex.Rows(e.Row).Height = GetDisplayHeight(_flex(e.Row, 3), _flex.Cols(3).WidthDisplay) ' it does, so draw background e.DrawCell(DrawCellFlags.Background) ' draw the RTF text _rtf.Rtf = rtfText _rtf.ForeColor = e.Style.ForeColor _rtf.BackColor = e.Style.BackColor _rtf.RenderTo(e.Graphics, e.Bounds) ' and draw border last e.DrawCell(DrawCellFlags.Border) ' we're done with this cell e.Handled = True Else End If End Sub
xBrowser + RTF
Otto, It is not a simple task: The richedit control has to paint "itself" so we need to have a richedit control for each visible cell that wants to show formatted text. So if you have a column that shows 20 rows and each cell shows RTF text, then we need to have 20 richedit controls, childs of the xbrowse. We can not create a richedit control everytime we paint a cell, as you tried in your code, or the application will collapse. We need to create a certain amount of richedit controls only, and change their contents as the browse scrolls up or down.
xBrowser + RTF
I agree with you Mr Antonio, if we create Richedit controls in each cell. > _rtf.RenderTo(e.Graphics, e.Bounds) But there seems to be a way of just rendering richtext content within a rectangle.
xBrowser + RTF
We could start defining a new DATA in the Class TXBrwColumn: DATA aRichEdits that will hold an array of richedit controls, one by each visible cell of that column. When the browse is resized, then we have to redimension the array with more or less richedit controls. When we scroll up or down, then we should change the richedits text with the next cell text. We should test how fast (or slow) this will be.
xBrowser + RTF
Antonio, I think ComponentOne’s FlexGrid does create every time you address a column a new Dim _rtf As New RTF. I don’t have the working code on my HomePC. But in real use I think you don’t have more than 20 RTF-cells opened at the same time. Regards, Otto
xBrowser + RTF
Nageswararao, > But there seems to be a way of just rendering richtext content within a rectangle. That would be the perfect solution, but we need to find how to do that. Thinking about it... if we provide a different hDC to the richedit when it is going to be painted, that could do the trick
xBrowser + RTF
Otto I haven't used flex grid. Please tell me does this flex grid scrolls up and down like our browses or does it paint in pages and should we flip the pages
xBrowser + RTF
Mr. NageswaraRao, I uploaded a small video. Regards, Otto [url:1jso8tjc]http&#58;//www&#46;atzwanger&#46;com/flexGrid//flexGrid&#46;html[/url:1jso8tjc]
xBrowser + RTF
The link is not working please
xBrowser + RTF
Now it is. First you see the mdb-database then the grid. There are only 3 rows in it. Regards, Otto
xBrowser - FW_SayTextHilite
Mr Rao, When using the command FW_SayTextHilite the column alignment automatically switches to the left. Would it be possible to maintain the original definition? Yours sincerely, Oliveiros Junior
xBrowser - FW_SayTextHilite
This is possible with left alignment only.
xBrowser - FW_SayTextHilite
Thank Mr Rao.
xBrowser - SetGroupHeader
Good afternoon everybody! I would like to know if it is possible to put an image in a SetGroupHeader of the xBrowser. Att., Oliveiros Junior
xBrowser - SetGroupHeader
oCol:nGrpBmpNo
xBrowser - SetGroupHeader
Mr Rao, Thanks. Att., Oliveiros Junior
xBrowser - header - vertical Font alignment
I have the feeling, that alignment left if you have a vertical font starts at the middle of the row-height. How can I reach that the a vertical font is displayed correctly? Regards, Otto [img:3dkdol28]http&#58;//www&#46;atzwanger&#46;com/fw/vertfont&#46;jpg[/img:3dkdol28]
xBrowser - header - vertical Font alignment
I found a solution: if oFont:nEscapement()= 900 ... [img:fcv7mddi]http&#58;//www&#46;atzwanger&#46;com/fw/vertfontok&#46;jpg[/img:fcv7mddi]
xBrowser - height of the line flexible
Dear Mr. Rao, In xBrowser is it possible to leave the height of the line flexible? that is, according to the contents of the record the row may vary in size. I appreciate the help. Att., Oliveiros Junior
xBrowser - height of the line flexible
No. We have it on our TO-DO list.
xBrowser - height of the line flexible
Mr Rao, thank you. Att., Oliveiros Junior
xBrowser - maybe an error
Hello Antonio,Maybe there is an error in the paintdata method.The 8.06 version does not work if you pass a numeric value.Regards,OttoPAINTDATA method if ::bStrData != nil cData := Eval( ::bStrData ) msginfo( cData) if ! Empty( ::nDataStrAlign ) cData := AllTrim( cData ) endifApplication=========== Path and name: C:\xWinhotel\xWINHOTEL.exe (32 bits) Size: 2,951,168 bytes Time from start: 0 hours 0 mins 40 secs Error occurred at: 04.07.2008, 17:28:20 Error description: Error BASE/2022 Argument error: ALLTRIM Args: [ 1] = N 14534Stack Calls=========== Called from: => ALLTRIM(0) Called from: .\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA(5574) Called from: .\XBROWSE.PRG => TXBROWSE:PAINT(1018) Called from: .\XBROWSE.PRG => TXBROWSE:DISPLAY(804) Called from: CONTROL.PRG => TXBROWSE:HANDLEEVENT(0) Called from: WINDOW.PRG => _FWH(0) Called from: => MSGINFO(0) Called from: .\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA(5567) Called from: .\XBROWSE.PRG => TXBROWSE:PAINT(1018) Called from: .\XBROWSE.PRG => TXBROWSE:DISPLAY(804)
xBrowser - maybe an error
Hello Otto,it seems, you try a alltrim on a numeric-field ?Best regardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
xBrowser - maybe an error
Uwe,this is original code from xBrowse.Regards,Otto
xBrowser - maybe an error
Hello Otto,I found the part in xBrowse.prgIt seems, the var-type is not checked.What happens, when you use val-types < D > and < L > ?( in the moment, i'm still working with 8.05 on the main-computer. 8.06 is on the 2. computer for testing. ) found in xBrowse.prg Vers. 8.06( maybe VALTYPE must be added ? )[code:1a8djxcl] if &#58;&#58;bStrData != nil cData &#58;= Eval&#40; &#58;&#58;bStrData &#41; if ! Empty&#40; &#58;&#58;nDataStrAlign &#41; &#46;and&#46; VALTYPE&#40; cData &#41; = "C" cData &#58;= AllTrim&#40; cData &#41; // line 5596 !!! endif if isrtf&#40; cData &#41; cData &#58;= "<RichText>" endif else cData &#58;= "" endif &#46;&#46;&#46; &#46;&#46;&#46; [/code:1a8djxcl]RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
xBrowser - maybe an error
This is not a bug. This is the intended behaviour.If you directly assign a value to bStrData, the codeblock should compulsarily evaluate to a character value only. From the time xbrowse was first published, bStrData is supposed to evaluate to a character value only and that will remain like that in future also. It is intentional that if the codeblock evaluates to any other datatype, it results in a runtime error, pointing out the programming mistake. This is so with all the browses.It is only xbrowse that gives the flexibility to use codeblocks evaluating to any datatype, but that is by assigining the codeblock to bEditValue, but not bStrData. XBrowse altuomatically creates bStrData codeblock, converting the result to a character value, using cEditPicture, if given.As already documented in the earlier versions, direct use of bStrData is deprecated. You may use bEditValue and optionally also cEditPicture and leave the bStrData uninitialized. XBrowse automatically creates a codeblock for bStrData using the bEditValue and cEditPicture.However, if you prefer the old style, you can sitll assign a codeblock returning character value to bStrData. That option will always be there with full backward compatibility.We also encourage use of the new command syntax, which greatly simplifies a lot coding and avoids any uninteded bugs / mistakes in the code. But still the option is yours.
xBrowser - maybe an error
Hello Antonio,thank you for your explanation. I didn’t knew that.Although I had these mistake inside my code 8.03 somehow managed it.Now I changed my code from oCol: bStrData := { || …} to oCol:bEditValue := { || …}.And all is working.Thanks again,Otto