topic
stringlengths
1
63
text
stringlengths
1
577k
xBrowse - LDblClicked ??
Thanks for reply.. in the case, i want to display dialog for help and get a value from other dialog. but the dialog can not display if i using LDblClicked, this dialog returning value from record on the top of table. my code like this: #include "fivewin.ch" #include "xbrowse.ch" static txtKode, oResAcct . . other function to receive a value from tbl_header function . static function tbl_header( txtKode ) local oDlg, oBrw, oCol, oFont4, cSql, oErr local nWidth := GetSysMetrics( 0 ) local nHeight := GetSysMetrics( 1 ) oResAcct:MoveFirst() DEFINE FONT oFont4 NAME "Segoe UI Light" SIZE 0, -14 DEFINE DIALOG oDlg ; FROM 300, 400; // 100, -6 TO 700, nWidth - 30 ; PIXEL ; STYLE nOr( DS_MODALFRAME, WS_POPUP ) ; COLOR CLR_BLUE, CLR_WHITE ; FONT oFont4 @0, 0 XBROWSE oBrw ; RECORDSET oResAcct ; COLUMNS "KODE", "KET", "LVL", "GRP", "REFF" ; COLSIZES 100 , 450 , 50, 50, 100 ; HEADERS "KODE", "PERKIRAAN", "LEVEL", "GROUP", "REFF" ; size 480, 200 ; FONT oFont4 NOBORDER AUTOSORT AUTOCOLS OF oDlg ADD TO oBrw AT 1 DATA oBrw:KeyNo() HEADER 'No' PICTURE '9999999' ADD oCol TO oBrw AT 6 DATA {|x| x := txt_gd(oResAcct:Fields("gd"):Value) }; HEADER "G/D" size 60 ADD oCol TO oBrw AT 7 DATA {|x| x := txt_dk(oResAcct:Fields("dk"):Value) }; HEADER "D/K" size 60 WITH OBJECT oBrw:REFF :bStrData := { || If( empty(oResAcct:Fields("reff"):Value), space(20), oResAcct:Fields("reff"):Value ) } END oBrw:lRecordSelector = .F. oBrw:nMarqueeStyle := 4 oBrw:lHScroll = .T. oBrw:lVScroll = .T. oBrw:bClrStd = { || { if( oResAcct:Fields("gd"):Value == "G" , CLR_RED , CLR_BLACK ) , CLR_WHITE } } oBrw:bClrSelFocus = { || { CLR_WHITE, RGB( 34, 177, 76 ) } } oBrw:SetColor( CLR_BLUE, CLR_WHITE ) //---> if I use oBrw:lDblClicked, the dialog did not dispay and returning a value from record number 1 in the table. // // oBrw:LDblClicked := {|| txtKode := oResAcct:Fields("kode"):Value, oDlg:end() } // // than I use bKeyDown, but must be press Enter key to returning a value.. practice use mouse double klik // oBrw:bKeyDown := {|nKey| if( nKey == VK_RETURN, ( txtKode := oResAcct:Fields("kode"):Value, oDlg:end() ), nil ) } oBrw:bChange := {|| txtKode := oResAcct:Fields("kode"):Value } oBrw:CreateFromCode() oBrw:SetFocus() ACTIVATE DIALOG oDlg on init oBrw:SetFocus() return nil maybe have a solution ..? Mulyadi
xBrowse - LDblClicked ??
Dear Mulyadi, Try this way : [code=fw:1tybo5bq]<div class="fw" id="{CB}" style="font-family: monospace;">@<span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />RECORDSET oResAcct ;<br />COLUMNS <span style="color: #ff0000;">"KODE"</span>, <span style="color: #ff0000;">"KET"</span>, <span style="color: #ff0000;">"LVL"</span>, <span style="color: #ff0000;">"GRP"</span>, <span style="color: #ff0000;">"REFF"</span> ;<br />COLSIZES <span style="color: #000000;">100</span> , <span style="color: #000000;">450</span> , <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">100</span> ;<br />HEADERS <span style="color: #ff0000;">"KODE"</span>, <span style="color: #ff0000;">"PERKIRAAN"</span>, <span style="color: #ff0000;">"LEVEL"</span>, <span style="color: #ff0000;">"GROUP"</span>, <span style="color: #ff0000;">"REFF"</span> ;<br /><span style="color: #0000ff;">size</span> <span style="color: #000000;">480</span>, <span style="color: #000000;">200</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont4 NOBORDER AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ON</span> DBLCLICK <span style="color: #000000;">&#40;</span> txtKode := oResAcct:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"kode"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:1tybo5bq] regards, kok
xBrowse - LDblClicked ??
Mulyadi, You refer LDblClicked, and I've posted[color=#FF0040:23ep97ph] bLDblClick[/color:23ep97ph]. Have you tried it? Regards.
xBrowse - LDblClicked ??
Hi All, Thanks for your suggestion. I try [color=#0000BF:mi86v2w3]bLDblClick[/color:mi86v2w3] and the result same as [color=#0000BF:mi86v2w3]LDblClicked[/color:mi86v2w3], the dialog can not display. solution from Mr. Kok Joek Hoa to use ON DBLCLICK method is true. It work fine. maybe this method is compatible with my logical issue in all aplication. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Mulyadi
xBrowse - Multiline
Hi! is there a builtin function/shortcut to switch from a single line to a multiline xBrowse? Background: When I was working with my datas, I unintentional switched to a multiline Browse, very nice! But I don't remember the shortcut, thats make me crazy <!-- s:evil: --><img src="{SMILIES_PATH}/icon_evil.gif" alt=":evil:" title="Evil or Very Mad" /><!-- s:evil: -->
xBrowse - Multiline
Hi, here a Mr. Rao sample: [code=fw:33c7z6xa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> MultiLineCells<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> aData    := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> n,i,j<br /><br />   n  := <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">4</span><br />      <span style="color: #00C800;">for</span> j := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span> step <span style="color: #000000;">3</span><br />        <span style="color: #B900B9;">// aData[ i, j ] := NToCDOW( ( n - 1 ) % 7 + 1 )</span><br />         aData<span style="color: #000000;">&#91;</span> i, j <span style="color: #000000;">&#93;</span> := SpaNumDay<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">7</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />         aData<span style="color: #000000;">&#91;</span> i, j + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> := n<br />         aData<span style="color: #000000;">&#91;</span> i, j + <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"Algún texto que puede tomar mas de una linea."</span><br />         n++<br />      <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">next</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <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;">-16</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"IMPACT"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-34</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TIMES ROMAN"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span> ITALIC<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg DATASOURCE aData <span style="color: #0000ff;">AUTOCOLS</span> ;<br />      LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nWidths</span>    := <span style="color: #000000;">150</span><br />      :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">100</span><br />      <span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span> STEP <span style="color: #000000;">3</span><br />         WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">oDataFont</span>     := aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br />         END<br />         WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">oDataFont</span>     := aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">nDataStrAlign</span> := AL_CENTER<br />            :<span style="color: #000000;">bClrStd</span>       := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_HRED, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />         END<br />         WITH OBJECT :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i + <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">oDataFont</span>     := aFont<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">nDataLines</span>    := <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//HERE THE TRICK</span><br />         END<br />         :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetColsAsRows</span><span style="color: #000000;">&#40;</span> i, i + <span style="color: #000000;">1</span>, i + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">next</span><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 />   AEval<span style="color: #000000;">&#40;</span> aFont, <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:33c7z6xa]
xBrowse - Multiline
Also 1) For any browse, if you increase oBrw:nRowHeight, any text that does not fit in the present width flow as multi-line text. 2) Even at runtime, if text exceeds the width of any column, the user can increase the row height by dragging the line separator (like Excel) and automatically, the text is displayed as multi-line text.
xBrowse - Multiline
[quote="nageswaragunupudi":ieyqfkcu]Sorry, no.[/quote:ieyqfkcu] Ok. [quote:ieyqfkcu]Not yet[/quote:ieyqfkcu] Any chance in the near future ? [[]] Maurício Faria
xBrowse - Multiline
Hi ! Is it possible that each row dynamically have its own height based on its content ? Like this: [img:36dr1we6]http&#58;//farmacia&#46;com&#46;br/PDP/MultiBrowse&#46;jpg[/img:36dr1we6] Regards.
xBrowse - Multiline
Sorry, no. Not yet
xBrowse - Multiline
[quote:uk5s74sf]Any chance in the near future ? [/quote:uk5s74sf] Yes, but this may not be very soon unless there is demand from many users.
xBrowse - Multiline
[quote="concentra":230l44ga]Hi ! Is it possible that each row dynamically have its own height based on its content ? Like this: [img:230l44ga]http&#58;//farmacia&#46;com&#46;br/PDP/MultiBrowse&#46;jpg[/img:230l44ga] Regards.[/quote:230l44ga] +1
xBrowse - Multiline
+1 TIA
xBrowse - Multiline
testxbr6.prg [img:2yawyreg]https&#58;//hymplus&#46;com/forofw/mutilinea&#46;png[/img:2yawyreg]
xBrowse - Multiline
Leandro, creo que se está hablando de que las líneas puedan tener distintas alturas, no siempre la misma. I think it's talking about the lines having different heights, not always the same.
xBrowse - Multiline
hi, [quote="concentra":1s3mtmq3] Is it possible that each row dynamically have its own height based on its content ? [/quote:1s3mtmq3] as i can say you need Ownerdraw to get different hight as "calculation" is done by MeasureItem. the Trick is like FranciscoA say : switch Font when "calculate" let say you default Font are "Arial" with 10 Points. now you have 3 Lines -> 30 Point so when WM_MEASUREITEM is fired set big Font before calculate with GetTextExtentPoint32 at WM_DRAWITEM now DRAWITEMSTRUCT->rcItem have place for 3 x Lines "10.Arial" <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/bb775802%28v=VS.85%29.aspx">http://msdn.microsoft.com/en-us/library ... 85%29.aspx</a><!-- m --> p.s. perhaps it is better to use NM_CUSTOMDRAW than WM_MEASUREITEM / WM_DRAWITEM
xBrowse - Multiline
We will provide this soon.
xBrowse - No entiendo el error (Mr. Rao)
Estimados; Tengo el siguiente código donde pretendo usar SetCheck() [code=fw:3kbids5a]<div class="fw" id="{CB}" style="font-family: monospace;">  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrwPer <span style="color: #0000ff;">ID</span> <span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />           COLUMNS <span style="color: #ff0000;">"DESCRIP"</span>,  <span style="color: #ff0000;">"PERMISO"</span>  ;<br />           HEADERS <span style="color: #ff0000;">"Permisos"</span>, <span style="color: #ff0000;">"Chk"</span>      ;<br />           <span style="color: #0000ff;">ALIAS</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   WITH Object oBrwPer<br />      :<span style="color: #000000;">nMarqueeStyle</span>      := MARQSTYLE_DOTEDCELL      <span style="color: #B900B9;">// barra señaladora</span><br />      :<span style="color: #000000;">nColDividerStyle</span>   := LINESTYLE_BLACK          <span style="color: #B900B9;">// Linea Tipo</span><br />      :<span style="color: #000000;">lColDividerComplete</span>:= <span style="color: #00C800;">TRUE</span>                     <span style="color: #B900B9;">// Linea de columna hasta final de Brw</span><br />      :<span style="color: #000000;">nStretchCol</span>        := STRETCHCOL_LAST          <span style="color: #B900B9;">// Ajustar ultima col, al margen derecho</span><br />      :<span style="color: #000000;">l2007</span>              := <span style="color: #00C800;">TRUE</span><br />      :<span style="color: #000000;">lAllowColHiding</span>    := <span style="color: #00C800;">FALSE</span>                    <span style="color: #B900B9;">// Anular menu pop Ocultar/Mostrar columna</span><br />      :<span style="color: #000000;">nRowHeight</span>         := <span style="color: #000000;">38</span><br />      :<span style="color: #000000;">nMoveType</span>          := MOVE_DOWN<br />      :<span style="color: #000000;">lVScroll</span>           := <span style="color: #00C800;">TRUE</span><br />      :<span style="color: #000000;">nColSel</span>:= <span style="color: #000000;">2</span><br /><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> aGrad <span style="color: #000000;">&#41;</span><br /><br />      :<span style="color: #000000;">bGotFocus</span>:= <span style="color: #000000;">&#123;</span>|| ::<span style="color: #000000;">oDBPermi</span>:<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 />   END<br />   <span style="color: #B900B9;">// Columnas</span><br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Permisos</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">320</span><br />      :<span style="color: #000000;">bPaintText</span>:= <span style="color: #000000;">&#123;</span> |oCol, hDC, cText, aCoord| ::<span style="color: #000000;">DrawCol</span><span style="color: #000000;">&#40;</span> oCol, hDC, cText, aCoord <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   END<br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Chk</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                                         ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span>:= v, ;<br />                                         ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   END<br /> </div>[/code:3kbids5a] El problema se dá con SetCheck(), ya que si lo comento, el browse se muestra sin problemas. Bajo esta condición se produce el siguiente error: [list:3kbids5a]Descripción de Error generado: ___________________________________________________ Error BASE/1004 Class: 'LOGICAL' has no exported method: EVAL Args: [ 1] = L .F. Llamadas al Stack: ___________________________________________________ Llamado desde: EVAL(0) Llamado desde: .\source\classes\XBROWSE.PRG TXBRWCOLUMN:PAINTCELL(9609) Llamado desde: .\source\classes\XBROWSE.PRG TXBRWCOLUMN:PAINTDATA(9561) Llamado desde: .\source\classes\XBROWSE.PRG TXBROWSE:PAINT(1434) Llamado desde: .\source\classes\XBROWSE.PRG TXBROWSE:DISPLAY(1253) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TCONTROL:HANDLEEVENT(1666) Llamado desde: .\source\classes\XBROWSE.PRG TXBROWSE:HANDLEEVENT(11632) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: DIALOGBOX(0) Llamado desde: .\source\classes\DIALOG.PRG TDIALOG:ACTIVATE(270) Llamado desde: D:\MixHarb\Temege\Sources\TCtrlAcc.prg TCTRLACC:CREAUSUARIOS(317) Llamado desde: D:\MixHarb\Temege\Sources\mgCfgSys.prg (b)TCFGSYS:CFGSYS(428) Llamado desde: .\source\classes\TGET.PRG TGET:LVALID(1184) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TGET:FWLOSTFOCUS(1110) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TCONTROL:HANDLEEVENT(1675) Llamado desde: .\source\classes\TGET.PRG TGET:HANDLEEVENT(579) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: SYSREFRESH(0) Llamado desde: .\source\classes\BTNBMP.PRG TBTNBMP:LBUTTONDOWN(584) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TCONTROL:HANDLEEVENT(1687) Llamado desde: .\source\classes\BTNBMP.PRG TBTNBMP:HANDLEEVENT(1408) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: DIALOGBOX(0) Llamado desde: .\source\classes\DIALOG.PRG TDIALOG:ACTIVATE(270) Llamado desde: D:\MixHarb\Temege\Sources\mgCfgSys.prg TCFGSYS:CFGSYS(467) Llamado desde: D:\Fuen32\SiGeCo2\CA32\Source\CA_MAIN.PRG (b)BUILDMENU(167) Llamado desde: .\source\classes\MENU.PRG TMENU:COMMAND(461) Llamado desde: .\source\classes\WINDOW.PRG TWINDOW:COMMAND(1027) Llamado desde: TWINDOW:HANDLEEVENT(0) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: WINRUN(0) Llamado desde: .\source\classes\WINDOW.PRG TWINDOW:ACTIVATE(980) Llamado desde: D:\Fuen32\SiGeCo2\CA32\Source\CA_MAIN.PRG CA_MAIN(88) [/list:u:3kbids5a] Que es lo que no veo en este error, para corregirlo?
xBrowse - No entiendo el error (Mr. Rao)
Intenta asi: [code=fw:3n113cx1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">" &nbsp;"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span> := v, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3n113cx1] Salu2 
xBrowse - No entiendo el error (Mr. Rao)
Karina; gracias por responder NO es la solución, el error se repite
xBrowse - No entiendo el error (Mr. Rao)
Miara el method PaintCell() Se está asi: [code=fw:27db1cvl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cData &nbsp; &nbsp;:= AllTrim<span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">StrData</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:27db1cvl] Cambia para: [code=fw:27db1cvl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;cData &nbsp; &nbsp;:= AllTrim<span style="color: #000000;">&#40;</span> cValToChar<span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">StrData</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:27db1cvl] salu2
xBrowse - No entiendo el error (Mr. Rao)
[url:1b1hoozr]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=25686&p=140352&hilit=PAINTCELL#p140352[/url:1b1hoozr]
xBrowse - No entiendo el error (Mr. Rao)
[quote="karinha":93p2i5jx]Miara el method PaintCell() Se está asi: [code=fw:93p2i5jx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cData    := AllTrim<span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">StrData</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:93p2i5jx] Cambia para: [code=fw:93p2i5jx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cData    := AllTrim<span style="color: #000000;">&#40;</span> cValToChar<span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">StrData</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:93p2i5jx] salu2[/quote:93p2i5jx] Karinha: Gracias por tu tiempo Prefiero no tocar los fuentes. Uso FWH 12.04. Está corregido en versiones posteriores? He leido el enlace del siguiente post; no es mi caso: [code=fw:93p2i5jx]<div class="fw" id="{CB}" style="font-family: monospace;">...<br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Chk</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span> := v, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   END<br />   oBrwPer:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oBrwPer:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:93p2i5jx] En otra app estoy usando esta forma de llamar a SetCheck(), con la salvedad de que el browse es de array. Es un bugs en la version 12.04?
xBrowse - No entiendo el error (Mr. Rao)
Mr. Rao Can you see this?. It's Karinha's solution the unique way many thanks
xBrowse - No entiendo el error (Mr. Rao)
En FWH13.06 esta asi. Compara con tu version. [code=fw:2f9oytuw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> PaintCell<span style="color: #000000;">&#40;</span> nRow, nCol, nHeight, lHighLite, lSelected, nOrder, nPaintRow <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrwColumn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hDC, oBrush, hBrush, nOldColor, hBmp<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrush1, oBrush2, hBrush1, hBrush2, aColor2, nWidth1<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aColors, aBitmap, aBmpPal<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cData, nTxtHeight, aRect<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nWidth, nTop, nBottom, nBmpRow, nBmpCol, nBmpNo, nButtonRow, nButtonCol,nBtnWidth,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRectWidth, nRectCol, nStyle, nType, nIndent, nBtnBmp, nFontHeight<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lTransparent := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lStretch &nbsp; &nbsp; := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lBrush &nbsp; &nbsp; &nbsp; := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cImagen, nBmpW, nBmpH<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lHighLite := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSelected := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOrder &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;nBtnBmp := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oEditGet</span> != <span style="color: #00C800;">nil</span> .and. nPaintRow == ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">&#41;</span> .or. ::<span style="color: #000000;">oEditLbx</span> != <span style="color: #00C800;">nil</span> .or. ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nLen</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nCol != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nDisplayCol</span> := nCol<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; nCol := ::<span style="color: #000000;">nDisplayCol</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bStrData</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'B'</span><br />&nbsp; &nbsp; &nbsp; cData := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bStrData</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span> != <span style="color: #ff0000;">'C'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cData := cValToChar<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nDataStrAlign</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cData := AllTrim<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> isrtf<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cData := <span style="color: #ff0000;">"<RichText>"</span><br />&nbsp; &nbsp; &nbsp; elseif isGtf<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cData := GtfToTxt<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; cData := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">bBmpData</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; nBmpNo := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bBmpData</span>, ::<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; nBmpNo := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lHighLite<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> == GetFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> lSelected<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nOrder == ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nColSel</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aColors &nbsp;:= Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrSelFocus</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Eval( ::oBrw:bClrSelFocus )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aColors := Eval<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bClrRowFocus</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bClrRowFocus</span>, ::<span style="color: #000000;">bClrSelFocus</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aColors := Eval<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bClrRowFocus</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bClrRowFocus</span>, ::<span style="color: #000000;">bClrSelFocus</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aColors := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrSel</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; aColors := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrStd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lTransparent := IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lColTransparent</span>, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;hDC &nbsp; &nbsp; := ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont &nbsp; := ::<span style="color: #000000;">oDataFont</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"B"</span><br />&nbsp; &nbsp; &nbsp; oFont = Eval<span style="color: #000000;">&#40;</span> oFont, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;nWidth &nbsp;:= ::<span style="color: #000000;">nWidth</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> .and. Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nColDividerStyle</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nWidth &nbsp; -= COL_EXTRAWIDTH<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrush</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrush</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"B"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrush &nbsp; := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrush</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrush &nbsp; := ::<span style="color: #000000;">oBrush</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oBrush != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; hBrush &nbsp; &nbsp; &nbsp;:= oBrush:<span style="color: #000000;">hBrush</span><br />&nbsp; &nbsp; &nbsp; lBrush &nbsp; &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; lTransparent:= .f.<br /><span style="color: #B900B9;">// &nbsp; elseif ! lTransparent .and. !::lColTransparent</span><br />&nbsp; &nbsp;elseif ! IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lColTransparent</span>, lTransparent <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBrush &nbsp;:= CreateColorBrush<span style="color: #000000;">&#40;</span> aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif ::<span style="color: #000000;">lColTransparent</span> == .t.<br />&nbsp; &nbsp; &nbsp; hBrush := CreateColorBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lTransparent := .t.<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;nStyle &nbsp;:= ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nColDividerStyle</span><br />&nbsp; &nbsp;nType &nbsp; := ::<span style="color: #000000;">nEditType</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nStyle == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; nRectWidth := nWidth + <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; nRectCol &nbsp; := nCol<br />&nbsp; &nbsp;elseif nStyle < <span style="color: #000000;">5</span> .and. nOrder > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; nRectWidth := nWidth + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; nRectCol &nbsp; := nCol - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; nRectWidth := nWidth<br />&nbsp; &nbsp; &nbsp; nRectCol &nbsp; := nCol<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;nBottom &nbsp;:= nRow + nHeight<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! lTransparent<br />&nbsp; &nbsp; &nbsp; nTop &nbsp; &nbsp; &nbsp; &nbsp;:= nRow<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lMergeVert</span> .and. lHighLite .and. lSelected .and. nOrder == ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nColSel</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">MergeArea</span><span style="color: #000000;">&#40;</span> @nTop, @nBottom, nPaintRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'A'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GradientFill<span style="color: #000000;">&#40;</span> hDC, nTop, nRectCol, nBottom<span style="color: #000000;">-1</span>, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRectCol + nRectWidth, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nTop, nRectCol, nBottom, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRectCol + nRectWidth, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, hBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">bIndent</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; nIndent &nbsp;:= Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bIndent</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> nIndent <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCol &nbsp; += nIndent<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth -= nIndent<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;nCol &nbsp; &nbsp;+= <span style="color: #000000;">&#40;</span> COL_EXTRAWIDTH / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nWidth &nbsp;-= &nbsp;COL_EXTRAWIDTH<br />&nbsp; &nbsp;nRow &nbsp; &nbsp;+= <span style="color: #000000;">&#40;</span> ROW_EXTRAHEIGHT / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nHeight -= &nbsp;ROW_EXTRAHEIGHT<br /><br /><span style="color: #B900B9;">// &nbsp; if nType > 1</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp;nButtonRow := nRow</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp;nButtonCol := nCol + nWidth - 10</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp;nWidth -= 15</span><br /><span style="color: #B900B9;">// &nbsp; endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nType > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> aBitmap := ::<span style="color: #000000;">aBitmap</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nBtnBmp</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBtnWidth &nbsp; &nbsp; &nbsp;:= aBitMap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBtnWidth &nbsp; &nbsp; &nbsp;:= IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nBtnWidth</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; nButtonRow &nbsp;:= nRow<br />&nbsp; &nbsp; &nbsp; nButtonCol &nbsp;:= nCol + nWidth - nBtnWidth<br />&nbsp; &nbsp; &nbsp; nWidth &nbsp; &nbsp; &nbsp;-= <span style="color: #000000;">&#40;</span> nBtnWidth + <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lWillShowABtn</span> <span style="color: #B900B9;">// to avoid the "dancing" of column data to the left</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth -= <span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nBtnWidth</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lProgBar</span><br />&nbsp; &nbsp; &nbsp; aColor2 &nbsp;:= Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrProg</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBrush1 &nbsp;:= CreateColorBrush<span style="color: #000000;">&#40;</span> aColor2<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 />&nbsp; &nbsp; &nbsp; hBrush2 &nbsp;:= CreateColorBrush<span style="color: #000000;">&#40;</span> aColor2<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nWidth1 &nbsp;:= <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> * nWidth / ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nProgTot</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'B'</span>, Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nProgTot</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">nProgTot</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nRow, nCol, nRow + nHeight, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nCol + nWidth1, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, hBrush1 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nCol + nWidth1 < ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nRow, nCol + nWidth1 + <span style="color: #000000;">1</span>, nRow + nHeight, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nCol + nWidth, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, hBrush2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBrush1 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBrush2 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> aBitmap := ::<span style="color: #000000;">aBitmap</span><span style="color: #000000;">&#40;</span> nBmpNo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nWidth &nbsp;-= aBitmap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bStrData</span> == <span style="color: #00C800;">nil</span> .OR. ::<span style="color: #000000;">nDataBmpAlign</span> == AL_CENTER <span style="color: #B900B9;">// Align Imagen SetCheck</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol &nbsp;:= <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, nCol + nWidth / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lStretch := ::<span style="color: #000000;">lBmpStretch</span><br /><br />&nbsp; &nbsp; &nbsp; elseif ::<span style="color: #000000;">nDataBmpAlign</span> == AL_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol := nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCol &nbsp; &nbsp;+= aBitmap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span> + BMP_EXTRAWIDTH<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol := nCol + nWidth<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; nWidth &nbsp;-= BMP_EXTRAWIDTH<br />&nbsp; &nbsp; &nbsp; nBmpRow := nRow + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nHeight - aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lMergeVert</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTop &nbsp; &nbsp; := nRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBottom &nbsp;:= nRow + nHeight - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">MergeArea</span><span style="color: #000000;">&#40;</span> @nTop, @nBottom, nPaintRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpRow := nTop + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nBottom - nTop + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> - aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Paint bitmaps</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*DEFAULT*/</span> aBitmap<span style="color: #000000;">&#91;</span> BITMAP_ZEROCLR <span style="color: #000000;">&#93;</span> := GetZeroZeroClr<span style="color: #000000;">&#40;</span> hDC, aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lStretch<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SetAlpha<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. aBitmap<span style="color: #000000;">&#91;</span> BITMAP_ALPHA <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hBmp := ResizeImg<span style="color: #000000;">&#40;</span> aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRectWidth,::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nRectCol - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, nBottom - nRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ABPaint<span style="color: #000000;">&#40;</span> hDC, nRectCol, nRow, hBmp, ::<span style="color: #000000;">nAlphaLevel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOldColor &nbsp;:= SetBkColor<span style="color: #000000;">&#40;</span> hDC, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransBmp<span style="color: #000000;">&#40;</span> aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, aBitmap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span>, aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aBitmap<span style="color: #000000;">&#91;</span> BITMAP_ZEROCLR <span style="color: #000000;">&#93;</span>, hDC, nRectCol, nRow, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRectWidth,::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nRectCol - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBottom - nRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, nOldcolor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SetAlpha<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. aBitmap<span style="color: #000000;">&#91;</span> BITMAP_ALPHA <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ABPaint<span style="color: #000000;">&#40;</span> hDC, nBmpCol, nBmpRow,aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nAlphaLevel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> .or. ValType<span style="color: #000000;">&#40;</span> aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'A'</span> <span style="color: #B900B9;">// transparent bitmaps with brush</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOldColor := SetBkColor<span style="color: #000000;">&#40;</span> hDC, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransBmp<span style="color: #000000;">&#40;</span> aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, aBitmap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span>, aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap<span style="color: #000000;">&#91;</span> BITMAP_ZEROCLR <span style="color: #000000;">&#93;</span>, hDC, nBmpCol, nBmpRow, aBitmap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, nOldColor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PalBmpDraw<span style="color: #000000;">&#40;</span> hDC, nBmpRow, nBmpCol,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap<span style="color: #000000;">&#91;</span> BITMAP_PALETTE <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBitmap<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,, ::<span style="color: #000000;">lBmpTransparent</span>, aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span> .and. IsBinaryData<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IfNil<span style="color: #000000;">&#40;</span> FITypeFromMemory<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> >= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cImagen &nbsp;:= cData<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cData &nbsp; &nbsp;:= <span style="color: #ff0000;">''</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cData &nbsp; &nbsp;:= RangeRepl<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">31</span><span style="color: #000000;">&#41;</span>, cData, <span style="color: #ff0000;">'.'</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; cData &nbsp; &nbsp;:= '<binary>'</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cImagen <span style="color: #000000;">&#41;</span> .or. ::<span style="color: #000000;">cDataType</span> $ <span style="color: #ff0000;">"FP"</span> &nbsp; <span style="color: #B900B9;">// IMAGE</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cImagen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBmp &nbsp; &nbsp; := FILoadFromMemory<span style="color: #000000;">&#40;</span> cImagen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">bStrImage</span> == <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cImagen := ::<span style="color: #000000;">Value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cImagen := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bStrImage</span>, <span style="color: #00C800;">Self</span>, ::<span style="color: #000000;">oBrw</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">cDataType</span> == <span style="color: #ff0000;">'F'</span> .and. File<span style="color: #000000;">&#40;</span> cImagen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hBmp &nbsp; &nbsp; := FILoadImg<span style="color: #000000;">&#40;</span> cImagen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hBmp &nbsp; &nbsp; := FILoadFromMemory<span style="color: #000000;">&#40;</span> IfNil<span style="color: #000000;">&#40;</span> cImagen, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; aBmpPal &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> hBmp, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBmpPal := PalBmpLoad<span style="color: #000000;">&#40;</span> cImagen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Aadd<span style="color: #000000;">&#40;</span>aBmpPal, nBmpWidth<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Aadd<span style="color: #000000;">&#40;</span>aBmpPal, nBmpHeight<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Aadd<span style="color: #000000;">&#40;</span>aBmpPal, <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lBmpTransparent</span>, GetZeroZeroClr<span style="color: #000000;">&#40;</span> hDC, aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Aadd<span style="color: #000000;">&#40;</span>aBmpPal, HasAlpha<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBmpStretch</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpW &nbsp; &nbsp; &nbsp; := nWidth - <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpH &nbsp; &nbsp; &nbsp; := nBottom - nRow - <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpCol &nbsp; &nbsp; := nCol + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpRow &nbsp; &nbsp; := nRow + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpW &nbsp; &nbsp; &nbsp; := aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpH &nbsp; &nbsp; &nbsp; := aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nBmpW > <span style="color: #000000;">&#40;</span> nWidth - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpH &nbsp; &nbsp;*= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWidth - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> / nBmpW <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpW &nbsp; &nbsp;:= nWidth - <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nBmpH > <span style="color: #000000;">&#40;</span> nBottom - nRow - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpW &nbsp; &nbsp;*= <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nBottom - nRow - <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> / nBmpH <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpH &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span> nBottom - nRow <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpRow &nbsp; &nbsp; := nRow + <span style="color: #000000;">&#40;</span> nHeight - nBmpH <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> + <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpCol &nbsp; &nbsp; := nCol + <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nDataBmpAlign</span> == AL_CENTER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol &nbsp;:= nCol + <span style="color: #000000;">&#40;</span> nWidth - nBmpW <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif ::<span style="color: #000000;">nDataBmpAlign</span> == AL_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol &nbsp;:= nCol + nWidth - nBmpW<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SetAlpha<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_ALPHA <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hBmp := ResizeImg<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, nBmpW, nBmpH <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ABPaint<span style="color: #000000;">&#40;</span> hDC, nBmpCol, nBmpRow, hBmp, ::<span style="color: #000000;">nAlphaLevel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif ::<span style="color: #000000;">lBmpTransparent</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOldColor := SetBkColor<span style="color: #000000;">&#40;</span> hDC, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransBmp<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span>, aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_ZEROCLR <span style="color: #000000;">&#93;</span>, hDC, nBmpCol, nBmpRow, nBmpW, nBmpH <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, nOldColor <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nBmpW != aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_WIDTH <span style="color: #000000;">&#93;</span> .or. nBmpH != aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HEIGHT <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBmp := ResizeImg<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, nBmpW, nBmpH <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, nBmpRow, nBmpCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawBitmap<span style="color: #000000;">&#40;</span> hDC, aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span>, nBmpRow, nBmpCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span> .and. ! <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cDataType</span> $ <span style="color: #ff0000;">"PF"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//.and. nType >= 0</span><br />&nbsp; &nbsp; &nbsp; oFont:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nFontHeight := GetTextHeight<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span>, hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> .and. ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lContrastClr</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> hDC, ContrastColor<span style="color: #000000;">&#40;</span> hDC, nCol, nRow, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nWidth, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nCol <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nHeight, aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> hDC, aColors<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 />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lTransparent .or. lBrush .or. ::<span style="color: #000000;">lProgBar</span> .or. ValType<span style="color: #000000;">&#40;</span> aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'A'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBkMode<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldColor := SetBkColor<span style="color: #000000;">&#40;</span> hDC, aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; nTop &nbsp; &nbsp; := nRow<br />&nbsp; &nbsp; &nbsp; nBottom &nbsp;:= nRow + nHeight<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lMergeVert</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">MergeArea</span><span style="color: #000000;">&#40;</span> @nTop, @nBottom, nPaintRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; aRect &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> nTop, nCol, nBottom, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nCol + nWidth, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bPaintText</span> == <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle &nbsp; &nbsp; &nbsp;:= ::<span style="color: #000000;">nDataStyle</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nDataType</span> == DATATYPE_ARRAY .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nDataStrAlign</span> == AL_LEFT .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> $ <span style="color: #ff0000;">'ND'</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle &nbsp; := ::<span style="color: #000000;">DefStyle</span><span style="color: #000000;">&#40;</span> AL_RIGHT, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ::cDataType == 'M' .and. ::nDataLines == nil<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ::oBrw:nDataLines > 1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::nDataLines &nbsp; := ::oBrw:nDataLines<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif ( ::oBrw:nRowHeight >= 2 * nFontHeight + 4 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::nDataLines &nbsp; := 2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::nDataStyle &nbsp; := ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle &nbsp; &nbsp; &nbsp; &nbsp; := ::DefStyle( ::nDataStrAlign, .f. )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;endif<br />*/</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> CRLF $ cData .or. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cDataType</span> != <span style="color: #00C800;">nil</span> .and. ::<span style="color: #000000;">cDataType</span> $ <span style="color: #ff0000;">'CM'</span> .and. lAnd<span style="color: #000000;">&#40;</span> nStyle, DT_SINGLELINE <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span> > <span style="color: #000000;">2</span> * nFontHeight + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cData &nbsp; &nbsp;:= Trim<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nTxtHeight := DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, aRect, nOr<span style="color: #000000;">&#40;</span> DT_CALCRECT, DT_WORDBREAK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, aRect, nOr<span style="color: #000000;">&#40;</span> DT_CALCRECT, DT_SINGLELINE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle &nbsp; &nbsp; &nbsp;:= nOr<span style="color: #000000;">&#40;</span> nAnd<span style="color: #000000;">&#40;</span> nStyle, nNot<span style="color: #000000;">&#40;</span> DT_SINGLELINE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, DT_WORDBREAK <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> lAnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nDataStrAlign</span>, AL_TOP <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// aRect[ 1 ] &nbsp;+= 0 &nbsp;// nothing to be done.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif lAnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nDataStrAlign</span>, AL_BOTTOM <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;+= <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, Int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nHeight - nTxtHeight - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;+= <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, Int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nHeight - nTxtHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">nDataLines</span> == <span style="color: #00C800;">nil</span> .and. ::<span style="color: #000000;">cDataType</span> == <span style="color: #ff0000;">'M'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nDataLines</span> &nbsp; := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, aRect, nStyle <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPaintText</span>, <span style="color: #00C800;">Self</span>, hDC, cData, aRect, aColors, lHighLite <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nOldColor != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBkcolor<span style="color: #000000;">&#40;</span> hDC, nOldColor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldColor := <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; oFont:<span style="color: #000000;">Deactivate</span><span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; aRect &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> nRow, nCol, nRow + nHeight, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nCol + nWidth, ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bPaintText</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPaintText</span>, <span style="color: #00C800;">Self</span>, hDC, <span style="color: #ff0000;">""</span>, aRect, aColors, lHighLite <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nType > <span style="color: #000000;">1</span> .and. nType < EDIT_DATE<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lSelected<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !::<span style="color: #000000;">lBtnTransparent</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WndBoxRaised<span style="color: #000000;">&#40;</span>hDC, nButtonRow <span style="color: #000000;">-1</span> , nButtonCol - <span style="color: #000000;">1</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nButtonRow + nHeight, nButtonCol + nBtnWidth + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ButtonGet</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nType == EDIT_LISTBOX .or. nType == EDIT_GET_LISTBOX<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnElip</span>:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnList</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> nButtonRow, nButtonCol, nBtnWidth + <span style="color: #000000;">1</span>, nHeight, .f.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ButtonGet</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnList</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnList</span>:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBtnTransparent</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnList</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>,aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span>nButtonRow, nButtonCol, nButtonRow + nHeight , nButtonCol + nBtnWidth + <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span> ,; &nbsp; <span style="color: #B900B9;">// ButtonGet</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnList</span>:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnList</span>:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oBtnList</span>:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnList</span>:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> nButtonRow, nButtonCol, nBtnWidth + <span style="color: #000000;">1</span>, nHeight, .f.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ButtonGet</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBtnTransparent</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>,aColors<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span>nButtonRow, nButtonCol, nButtonRow + nHeight , nButtonCol + nBtnWidth + <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span>,; <span style="color: #B900B9;">// ButtonGet</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBtnElip</span>:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> hBrush != <span style="color: #00C800;">nil</span> .and. ! lBrush<br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> aBmpPal != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> aBmpPal<span style="color: #000000;">&#91;</span> BITMAP_HANDLE <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2f9oytuw] 
xBrowse - No entiendo el error (Mr. Rao)
Karinha Comparado con mi fuente; son iguales! Estoy muy mareado; no entiendo nada <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Probé así: [code=fw:337jhyuv]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT oBrwPer:<span style="color: #000000;">Chk</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />      <span style="color: #B900B9;">//:bStrData:= {|| "" }</span><br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">"bmp_Ok2"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// {|o, v| ( ::oDBPermi:Load(), ::oDBPermi:Permiso := v, ::oDBPermi:Save() ) }   // Agrego otro bmp</span><br />   END<br />   oBrwPer:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>       <span style="color: #B900B9;">// <- ahora al final</span><br /> </div>[/code:337jhyuv] el error se repite Y hasta así!: [code=fw:337jhyuv]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT oBrwPer:<span style="color: #000000;">Chk</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />      <span style="color: #B900B9;">//:bStrData:= {|| "" }</span><br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> , <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// la forma mas comun, como en los samples</span><br />   END<br />   oBrwPer:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:337jhyuv] tambien dá error Esto me hace suponer que algo de mi código no funciona (solo que si quito SetCheck(), funciona!) <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> . Creo que lo voy a pasar a array, que es como tambien lo uso
xBrowse - No entiendo el error (Mr. Rao)
Si compilas en \samples\testxbrw.prg, el setcheck funciona?
xBrowse - No entiendo el error (Mr. Rao)
\samples\testxbrw.prg se jecuta correctamente! <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->
xBrowse - No entiendo el error (Mr. Rao)
Intenta asi: [code=fw:25fg64av]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Ok"</span>, .T. <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span> := v, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:25fg64av]
xBrowse - No entiendo el error (Mr. Rao)
[code=fw:23c2urg7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ord.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><br />&nbsp; &nbsp;USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> CUST SHARED<br />&nbsp; &nbsp;SET ORDER <span style="color: #0000ff;">TO</span> TAG FIRST<br />&nbsp; &nbsp;GO TOP<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;">'TAHOMA'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><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;">600</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'XBrowse Totals'</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"First"</span>, <span style="color: #ff0000;">"Married"</span>, <span style="color: #ff0000;">"HireDate"</span>, <span style="color: #ff0000;">"Age"</span>, <span style="color: #ff0000;">"Salary"</span> ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"CUST"</span> ;<br />&nbsp; &nbsp; &nbsp; AUTOSORT CELL LINES FOOTERS NOBORDER FASTEDIT<br /><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Specific to columns</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">HireDate</span>:<span style="color: #000000;">cEditPicture</span> &nbsp;:= <span style="color: #ff0000;">"dd mmm yyyy"</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Age</span>:<span style="color: #000000;">nFooterType</span> &nbsp; &nbsp; &nbsp; &nbsp;:= AGGR_STD<br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Salary</span>:<span style="color: #000000;">nFooterType</span> &nbsp; &nbsp; := AGGR_SUM<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// for the entire browse</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nEditTypes</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := EDIT_GET<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= STRETCHCOL_WIDEST<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// finally</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><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;@ oDlg:<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Excel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">ToExcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ oDlg:<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> - <span style="color: #000000;">25</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Excel"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;CLOSE CUST<br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #0000ff;">init</span> procedure PrgInit<br /><br />&nbsp; &nbsp; SET DATE ITALIAN<br />&nbsp; &nbsp; SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp; SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />&nbsp; &nbsp; SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-50</span><br /><br />&nbsp; &nbsp; SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp; SET EXCLUSIVE OFF<br /><br />&nbsp; &nbsp; RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; XbrNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; SetGetColorFocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:23c2urg7] 
xBrowse - No entiendo el error (Mr. Rao)
No me quiere xBrowse <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> hice lo siguiente: [code=fw:3v8t534s]<div class="fw" id="{CB}" style="font-family: monospace;">  oPerm:<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrwPer <span style="color: #0000ff;">ID</span> <span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />           COLUMNS <span style="color: #ff0000;">"DESCRIP"</span>,  <span style="color: #ff0000;">"PERMISO"</span>  ;<br />           HEADERS <span style="color: #ff0000;">"Permisos"</span>, <span style="color: #ff0000;">"Chk"</span>      ;<br />           DATASOURCE <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />...<br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Chk</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />      <span style="color: #B900B9;">//:bStrData:= {|| "" }</span><br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//  { "bmp_Ok", "bmp_Ok2" }, {|o, v| ( ::oDBPermi:Load(), ::oDBPermi:Permiso := v, ::oDBPermi:Save() ) }</span><br />   END<br />   oBrwPer:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3v8t534s] Sin exito!
xBrowse - No entiendo el error (Mr. Rao)
Mira se estes BMP no están corruptos. Estraño.
xBrowse - No entiendo el error (Mr. Rao)
Ya lo dije... muy extraño Esto es lo último que hice: [code=fw:1hwsg21x]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH Object oBrwPer<br />      :<span style="color: #000000;">nMarqueeStyle</span>      := MARQSTYLE_DOTEDCELL      <span style="color: #B900B9;">// barra señaladora</span><br />      :<span style="color: #000000;">nColDividerStyle</span>   := LINESTYLE_BLACK          <span style="color: #B900B9;">// Linea Tipo</span><br />      :<span style="color: #000000;">lColDividerComplete</span>:= <span style="color: #00C800;">TRUE</span>                     <span style="color: #B900B9;">// Linea de columna hasta final de Brw</span><br />      :<span style="color: #000000;">nStretchCol</span>        := STRETCHCOL_LAST          <span style="color: #B900B9;">// Ajustar ultima col, al margen derecho</span><br />      :<span style="color: #000000;">l2007</span>              := <span style="color: #00C800;">TRUE</span><br />      :<span style="color: #000000;">lAllowColHiding</span>    := <span style="color: #00C800;">FALSE</span>                    <span style="color: #B900B9;">// Anular menu pop Ocultar/Mostrar columna</span><br />      :<span style="color: #000000;">nRowHeight</span>         := <span style="color: #000000;">38</span><br />      :<span style="color: #000000;">nMoveType</span>          := MOVE_DOWN<br />      :<span style="color: #000000;">lVScroll</span>           := <span style="color: #00C800;">TRUE</span><br />      :<span style="color: #000000;">nColSel</span>:= <span style="color: #000000;">2</span><br /><br />      :<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> aGrad <span style="color: #000000;">&#41;</span><br /><br />      :<span style="color: #000000;">bKeyCount</span>:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> AdsKeyCount<span style="color: #000000;">&#40;</span>,, ADS_RESPECTFILTERS <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bKeyNo</span>   := <span style="color: #000000;">&#123;</span>| n | <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_IsNil<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> AdsKeyNo<span style="color: #000000;">&#40;</span>,, ADS_RESPECTFILTERS <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                                             <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyGoto<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bGotFocus</span>:= <span style="color: #000000;">&#123;</span>|| ::<span style="color: #000000;">oDBPermi</span>:<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 /><br />      :<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Chk"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>    <span style="color: #B900B9;">// SOLO ESTA LLAMADA</span><br />   END<br />   <span style="color: #B900B9;">// Columnas</span><br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Permisos</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">320</span><br />      :<span style="color: #000000;">bPaintText</span>:= <span style="color: #000000;">&#123;</span> |oCol, hDC, cText, aCoord| ::<span style="color: #000000;">DrawCol</span><span style="color: #000000;">&#40;</span> oCol, hDC, cText, aCoord <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   END<br />   <span style="color: #B900B9;">/*<br />   WITH OBJECT oBrwPer:Chk<br />      :nWidth:= 50<br />      :nHeadStrAlign:= :nDataStrAlign:= AL_CENTER<br /><br />      //:bStrData:= {|| "" }<br />      //  { "bmp_Ok", "bmp_Ok2" }, {|o, v| ( ::oDBPermi:Load(), ::oDBPermi:Permiso := v, ::oDBPermi:Save() ) }<br />   END<br />   */</span><br />   oBrwPer:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1hwsg21x] Siempre el mismo error. Voy a cambiar a ARRAY, o bien (re)compilar con fiveh original (tengo incluido dos modificaciones errsysw.prg y alert.prg). Y por eso dije en otro post q no soy partidario de hacer cambios en los fuentes. No soy programador Guru <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Te agradezco infinitamente tu tan amable predisposición.
xBrowse - No entiendo el error (Mr. Rao)
Si estás usando TDATABASE, intenta asi: [code=fw:20y3gbge]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">" &nbsp;"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>->Permiso := v, ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:20y3gbge]
xBrowse - No entiendo el error (Mr. Rao)
Mismo error Lo que yo interpreto es que por ahí no viene el error porque intente as: :SetCheck( , .T. ) como en los samples; da errror y, asi: :SetCheck() y también da error. Voy e revisar con cuidado todo el codigo
xBrowse - No entiendo el error (Mr. Rao)
Por qué no intentas esto? [code=fw:3ducm54k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;WITH OBJECT oBrwPer:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #B900B9;">// <----------</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span>:= v, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br />&nbsp;</div>[/code:3ducm54k] Y si falla esto otro: [code=fw:3ducm54k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// <---------------------- </span><br />&nbsp; &nbsp;WITH OBJECT oBrwPer:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #B900B9;">// <----------</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span>:= v, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br />&nbsp;</div>[/code:3ducm54k]
xBrowse - No entiendo el error (Mr. Rao)
Karinha, Manuel Gracias por vuestras ayudas Finalmente se solucionó el problema. Es un poco amplio de explicar, pero sintetizando: Como en mis proyectos cada .prg es una clase; y en este caso estaba involucrando a dos (clases/.prg), ahi se desencadena algo que provoca el error. De manera que puse todo el codigo, xbrowse, en una sola clase, y "san se acabo". Les pido disculpas por la mala comunicación del problema.
xBrowse - No entiendo el error (Mr. Rao)
[quote="MarioG":127wp9nm]Estimados; Tengo el siguiente código donde pretendo usar SetCheck() [code=fw:127wp9nm]<div class="fw" id="{CB}" style="font-family: monospace;">  <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrwPer <span style="color: #0000ff;">ID</span> <span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />           COLUMNS <span style="color: #ff0000;">"DESCRIP"</span>,  <span style="color: #ff0000;">"PERMISO"</span>  ;<br />           HEADERS <span style="color: #ff0000;">"Permisos"</span>, <span style="color: #ff0000;">"Chk"</span>      ;<br />           <span style="color: #0000ff;">ALIAS</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   WITH Object oBrwPer<br />      :<span style="color: #000000;">nMarqueeStyle</span>      := MARQSTYLE_DOTEDCELL      <span style="color: #B900B9;">// barra señaladora</span><br />      :<span style="color: #000000;">nColDividerStyle</span>   := LINESTYLE_BLACK          <span style="color: #B900B9;">// Linea Tipo</span><br />      :<span style="color: #000000;">lColDividerComplete</span>:= <span style="color: #00C800;">TRUE</span>                     <span style="color: #B900B9;">// Linea de columna hasta final de Brw</span><br />      :<span style="color: #000000;">nStretchCol</span>        := STRETCHCOL_LAST          <span style="color: #B900B9;">// Ajustar ultima col, al margen derecho</span><br />      :<span style="color: #000000;">l2007</span>              := <span style="color: #00C800;">TRUE</span><br />      :<span style="color: #000000;">lAllowColHiding</span>    := <span style="color: #00C800;">FALSE</span>                    <span style="color: #B900B9;">// Anular menu pop Ocultar/Mostrar columna</span><br />      :<span style="color: #000000;">nRowHeight</span>         := <span style="color: #000000;">38</span><br />      :<span style="color: #000000;">nMoveType</span>          := MOVE_DOWN<br />      :<span style="color: #000000;">lVScroll</span>           := <span style="color: #00C800;">TRUE</span><br />      :<span style="color: #000000;">nColSel</span>:= <span style="color: #000000;">2</span><br /><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> aGrad <span style="color: #000000;">&#41;</span><br /><br />      :<span style="color: #000000;">bGotFocus</span>:= <span style="color: #000000;">&#123;</span>|| ::<span style="color: #000000;">oDBPermi</span>:<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 />   END<br />   <span style="color: #B900B9;">// Columnas</span><br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Permisos</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">320</span><br />      :<span style="color: #000000;">bPaintText</span>:= <span style="color: #000000;">&#123;</span> |oCol, hDC, cText, aCoord| ::<span style="color: #000000;">DrawCol</span><span style="color: #000000;">&#40;</span> oCol, hDC, cText, aCoord <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   END<br />   WITH OBJECT oBrwPer:<span style="color: #000000;">Chk</span><br />      :<span style="color: #000000;">nWidth</span>:= <span style="color: #000000;">50</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br /><br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"bmp_Ok"</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o, v| ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                                         ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Permiso</span>:= v, ;<br />                                         ::<span style="color: #000000;">oDBPermi</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   END<br /> </div>[/code:127wp9nm] El problema se dá con SetCheck(), ya que si lo comento, el browse se muestra sin problemas. Bajo esta condición se produce el siguiente error: [list:127wp9nm]Descripción de Error generado: ___________________________________________________ Error BASE/1004 Class: 'LOGICAL' has no exported method: EVAL Args: [ 1] = L .F. Llamadas al Stack: ___________________________________________________ Llamado desde: EVAL(0) Llamado desde: .\source\classes\XBROWSE.PRG TXBRWCOLUMN:PAINTCELL(9609) Llamado desde: .\source\classes\XBROWSE.PRG TXBRWCOLUMN:PAINTDATA(9561) Llamado desde: .\source\classes\XBROWSE.PRG TXBROWSE:PAINT(1434) Llamado desde: .\source\classes\XBROWSE.PRG TXBROWSE:DISPLAY(1253) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TCONTROL:HANDLEEVENT(1666) Llamado desde: .\source\classes\XBROWSE.PRG TXBROWSE:HANDLEEVENT(11632) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: DIALOGBOX(0) Llamado desde: .\source\classes\DIALOG.PRG TDIALOG:ACTIVATE(270) Llamado desde: D:\MixHarb\Temege\Sources\TCtrlAcc.prg TCTRLACC:CREAUSUARIOS(317) Llamado desde: D:\MixHarb\Temege\Sources\mgCfgSys.prg (b)TCFGSYS:CFGSYS(428) Llamado desde: .\source\classes\TGET.PRG TGET:LVALID(1184) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TGET:FWLOSTFOCUS(1110) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TCONTROL:HANDLEEVENT(1675) Llamado desde: .\source\classes\TGET.PRG TGET:HANDLEEVENT(579) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: SYSREFRESH(0) Llamado desde: .\source\classes\BTNBMP.PRG TBTNBMP:LBUTTONDOWN(584) Llamado desde: D:\MIHARB~1\Mifwh\Sources\control.prg TCONTROL:HANDLEEVENT(1687) Llamado desde: .\source\classes\BTNBMP.PRG TBTNBMP:HANDLEEVENT(1408) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: DIALOGBOX(0) Llamado desde: .\source\classes\DIALOG.PRG TDIALOG:ACTIVATE(270) Llamado desde: D:\MixHarb\Temege\Sources\mgCfgSys.prg TCFGSYS:CFGSYS(467) Llamado desde: D:\Fuen32\SiGeCo2\CA32\Source\CA_MAIN.PRG (b)BUILDMENU(167) Llamado desde: .\source\classes\MENU.PRG TMENU:COMMAND(461) Llamado desde: .\source\classes\WINDOW.PRG TWINDOW:COMMAND(1027) Llamado desde: TWINDOW:HANDLEEVENT(0) Llamado desde: .\source\classes\WINDOW.PRG _FWH(3153) Llamado desde: WINRUN(0) Llamado desde: .\source\classes\WINDOW.PRG TWINDOW:ACTIVATE(980) Llamado desde: D:\Fuen32\SiGeCo2\CA32\Source\CA_MAIN.PRG CA_MAIN(88) [/list:u:127wp9nm] Que es lo que no veo en este error, para corregirlo?[/quote:127wp9nm] Sorry, I did not see this before. 1) Please let me know the FWH version you are using. 2) Is the field PERMISO a logical field? In that case, [code=fw:127wp9nm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_ok"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:127wp9nm] is all that is required. Try to avoid using bPostEdit block. 3) Is ::oDbPermi a Tdatabase object? If so, "      :bGotFocus:= {|| ::oDBPermi:SetFocus() }" is nor correct. After you reply to the above, I shall give you my final solution.
xBrowse - No entiendo el error (Mr. Rao)
Mr. Rao many thanks for your answer In a previous post I answered that my problem finished. The mistake was mine I'm sorry, but I can not explain in english
xBrowse - Novo recurso
Implementado en la clase XBROWSE un TOOLTIP en el botón de columna, por ejemplo: oBrw:aCols[1]:nBtnWidth := 8 oBrw:aCols[1]:cBtnCaption := '$' oBrw:aCols[1]:cBtnToolTip := 'Recalcular o preço de venda' <-------------- NEW <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> oBrw:aCols[1]:nEditType := EDIT_GET_BUTTON xbrowse.prg: DATA nBtnWidth, cBtnCaption, bClrBtn DATA cBtnToolTip <---- <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> METHOD CreateButtons() CLASS TXBrwColumn ... if ::bClrBtn == nil @ 0,0 BTNBMP ::oBtnElip OF ::oBrw NOBORDER SIZE 0,0 CENTER else @ 0,0 BTNBMP ::oBtnElip OF ::oBrw NOBORDER SIZE 0,0 CENTER FLAT ::oBtnElip:bClrGrad := nil endif ::oBtnElip:lGDIP := ::oBrw:lGDIP ::oBtnElip:cToolTip := IfNil( ::cBtnToolTip, "", ::cBtnToolTip ) <---- <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Sr. Antonio, se possível adicionar a classe XBROWSE.PRG
xBrowse - Novo recurso
Many thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xBrowse - Novo recurso
Super genial <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
xBrowse - Novo recurso
obrigado Aida
xBrowse - On Change
Hello, I did not found a "On Change" clause in the xBrowse class. I want to update some fields in a screen every time the record pointer of a xBrowse change. Is that possible. Thanks, Willy Hermans
xBrowse - On Change
Found. I did not found :bChange in xBrowse class but it works. Sorry Willy
xBrowse - Problema con fondo
Buenas Noches, A esto no le encuentro la falla. Con la xbrowse de la ver 8.12 funciona correctamente usando un bitmap de fondo (desde recursos DLL), pero si compilo con la versión 4.10, al hojear, y en forma aleatoria los caracteres cambian del color de tinta que es negro y se ven como en las capturas de pantalla que adjunto [url=http&#58;//img718&#46;imageshack&#46;us/i/fallaxbrowse410&#46;jpg/:1f54sbq1][img:1f54sbq1]http&#58;//img718&#46;imageshack&#46;us/img718/7382/fallaxbrowse410&#46;jpg[/img:1f54sbq1][/url:1f54sbq1] [url=http&#58;//img641&#46;imageshack&#46;us/i/fallaxbrowse410&#46;jpg/:1f54sbq1][img:1f54sbq1]http&#58;//img641&#46;imageshack&#46;us/img641/7382/fallaxbrowse410&#46;jpg[/img:1f54sbq1][/url:1f54sbq1] ¿Como lo soluciono?. Gracias. Rolis *****
xBrowse - Problema con fondo
Set oBrw:lContrastClr := .f.
xBrowse - Problema con fondo
[quote="nageswaragunupudi":y5s2kkvo]Set oBrw:lContrastClr := .f.[/quote:y5s2kkvo] Fue la solución. Muchas gracias. Rolis
xBrowse - Problemas con SET FILTER
Pequeño bug con xBrowse: 1) Muestre una tabla indexada y filtrada en un xBrowse. 2) Vaya al primer registro de la tabla y pulse la tecla flecha arriba una o más veces. 3) Ahora pulse la flecha abajo: las líneas comienzan a duplicarse 4) Pulse la tecla arriba: ahora no se puede pasar de la segunda línea. Se debe hacer CTRL-END y CTRL-HOME para que el browse retorne a la normalidad. Saludos.
xBrowse - Problemas con SET FILTER
Hola amigo... El problema lo tienes usando SET FILTER TO o DBSETFILTER??? Qué tipo de índices estás usando?? Verifica también si no están corruptos. Podrías mostrar como estás definiendo el xBrowse?? Saludos,
xBrowse - Problemas con SET FILTER
Hola Cesar: ¿Has probado sin SET FILTER? Puede que el problema sea otro. Mírate esto: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=11379&p=56092#p56092">viewtopic.php?f=6&t=11379&p=56092#p56092</a><!-- l -->
xBrowse - Problemas con SET FILTER
Cesar Tu problema son las dimensiones de tu Browse, reduce el vertical. Saludos Adhemar
xBrowse - RestoreState() – wrong column sequence
Hi, changing the column sequence, RestoreState() results in a wrong column <-> data relation! Original browse: [img:144h6ar8]http&#58;//img513&#46;imageshack&#46;us/img513/5936/columnsequence1&#46;jpg[/img:144h6ar8] Browse with changed column sequence: [img:144h6ar8]http&#58;//img837&#46;imageshack&#46;us/img837/534/columnsequence2&#46;jpg[/img:144h6ar8] Browse with wrong relations after two "SaveState() - RestoreState()" iterations: [img:144h6ar8]http&#58;//img440&#46;imageshack&#46;us/img440/1169/columnsequence3&#46;jpg[/img:144h6ar8] Sample: [code=fw:144h6ar8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FILEIO.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 />   <span style="color: #00C800;">local</span> oWnd, oBrw, oCol<br />   <span style="color: #00C800;">LOCAL</span> cState := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> aState<br />   <span style="color: #00C800;">LOCAL</span> i<br />   <span style="color: #00C800;">LOCAL</span> nFileHandle<br />   <br />   REQUEST DBFCDX<br />   USE RSTRSTT<br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Field->Prmtr_txt <span style="color: #0000ff;">TO</span> RSTRSTT<br />   SET ORDER <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"RSTRSTT"</span><br /><br />   <span style="color: #00C800;">IF</span> FILE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"rstrstts.txt"</span> <span style="color: #000000;">&#41;</span><br />       nFileHandle := FOpen<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"rstrstts.txt"</span>, FO_READ <span style="color: #000000;">&#41;</span><br />      FSeek<span style="color: #000000;">&#40;</span> nFileHandle, <span style="color: #000000;">0</span>, FS_SET <span style="color: #000000;">&#41;</span><br />      HB_FReadLine<span style="color: #000000;">&#40;</span> nFileHandle, @cState <span style="color: #000000;">&#41;</span><br />      FClose<span style="color: #000000;">&#40;</span> nFileHandle <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />      GO TOP<br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test RestoreState() FWH 1010"</span><br />      @ <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 LINES CELL<br />      oBrw:<span style="color: #000000;">nMarqueeStyle</span> = MARQSTYLE_HIGHLROW<br />      oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      aState := ARead<span style="color: #000000;">&#40;</span> HexToStr<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cState, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      oBrw:<span style="color: #000000;">RestoreState</span><span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />      <br />      <span style="color: #00C800;">FOR</span> each oCol in oBrw:<span style="color: #000000;">aCols</span><br />          <span style="color: #00C800;">IF</span> oCol:<span style="color: #000000;">nWidth</span> > <span style="color: #000000;">500</span><br />            oCol:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">150</span><br />         <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">NEXT</span> <br /><br />      oWnd:<span style="color: #000000;">oClient</span> := oBrw<br />      <br />      <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> cState := oBrw:<span style="color: #000000;">SaveState</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span><br />      <br />      nFileHandle := FCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"rstrstts.txt"</span>, FO_EXCLUSIVE <span style="color: #000000;">&#41;</span><br />      FWrite<span style="color: #000000;">&#40;</span> nFileHandle, cState <span style="color: #000000;">&#41;</span><br />      FClose<span style="color: #000000;">&#40;</span> nFileHandle <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> </div>[/code:144h6ar8]
xBrowse - RestoreState() – wrong column sequence
Frose, I can confirm, that this error occurs in some constellations. Now I have the first name in the column for surname. If I change the order of columns again to another sequence, everything is fine. If I change back, the error is there again.
xBrowse - RestoreState() – wrong column sequence
Gilbert, seems we are the Beta-testers <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
xBrowse - RestoreState() – wrong column sequence
Instead of [code=fw:3gs4rf6o]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &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 LINES CELL</div>[/code:3gs4rf6o] please modify adding the alias [code=fw:3gs4rf6o]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &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 <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'RSTRSTT'</span> LINES CELL</div>[/code:3gs4rf6o] Also, modify [code=fw:3gs4rf6o]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">RestoreState</span><span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span></div>[/code:3gs4rf6o] as [code=fw:3gs4rf6o]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">RestoreState</span><span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span></div>[/code:3gs4rf6o] Please try with these modifications.
xBrowse - RestoreState() – wrong column sequence
Dear Mr. Rao, same behaviour as before! Please let me emphasise one detail once more, perhaps it's important for you: The wrong column sequence starts after the [color=#FF8000:3or8ul9g]SECOND[/color:3or8ul9g] "SaveState() - RestoreState()" iteration! Here the steps in detail: - changing the sequence - closing the program, saving <cState> first time - starting the program, all is [color=#008000:3or8ul9g]OK[/color:3or8ul9g]! - closing the program (without changing anything), saving <cState> second time - starting the program, [color=#FF4000:3or8ul9g]wrong[/color:3or8ul9g] sequence!
xBrowse - RestoreState() – wrong column sequence
I am sorry. Please add AUTOCOLS also [code=fw:qu4qr7le]<div class="fw" id="{CB}" style="font-family: monospace;">@ <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 <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'RSTRSTT'</span> LINES CELL</div>[/code:qu4qr7le] Will you please try with this change and report the result please?
xBrowse - RestoreState() – wrong column sequence
Dear Mr. Rao, nothing changed, still wrong sequences <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Did you test it? Have you a functional sample? I'm a little bit confused <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Can you give some comments for better understanding whats going on?
xBrowse - RestoreState() – wrong column sequence
Mr. Frose, Yes, it is a problem to be resolved. Shall try to come up with a fix soon.
xBrowse - RestoreState() – wrong column sequence
Mr. Rao, thank you for the info. Kind regards from cold and grey Germany
xBrowse - RestoreState() – wrong column sequence
Mr. Frose, Will you please try by replacing SaveState and RestoreState methods with the following code? [code=fw:18fz0bg1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SaveState<span style="color: #000000;">&#40;</span> aAdditionalData <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aData &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"nCreationOrders"</span>, <span style="color: #ff0000;">"nRowHeight"</span>, <span style="color: #ff0000;">"nWidths"</span>, <span style="color: #ff0000;">"lHides"</span>, <span style="color: #ff0000;">"cGrpHdrs"</span>, <span style="color: #ff0000;">"cHeaders"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aState &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> aAdditionalData <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'A'</span><br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> aAdditionalData, <span style="color: #000000;">&#123;</span> |c| AAdd<span style="color: #000000;">&#40;</span> aData, c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span> |c| AAdd<span style="color: #000000;">&#40;</span> aState, <span style="color: #000000;">&#123;</span> c, OSend<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// modified</span><br />&nbsp; &nbsp;aState<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">"ReArrangeCols"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #ff0000;">"XSS:"</span> + HB_StrToHex<span style="color: #000000;">&#40;</span> ASave<span style="color: #000000;">&#40;</span> aState <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> RestoreState<span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aState<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cState, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'XSS:'</span><br />&nbsp; &nbsp; &nbsp; aState &nbsp; &nbsp; &nbsp;:= ARead<span style="color: #000000;">&#40;</span> HB_HexToStr<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cState, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">ReArrangeCols</span><span style="color: #000000;">&#40;</span> aState<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// added</span><br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> aState, <span style="color: #000000;">&#123;</span> |a| OSend<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, <span style="color: #ff0000;">"_"</span> + a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// modified</span><br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> aState<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#123;</span> |n,i| ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nCreationOrder</span> := n <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// added</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">OldRestoreState</span><span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDisplayCols</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<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 />&nbsp;</div>[/code:18fz0bg1]
xBrowse - RestoreState() – wrong column sequence
Mr. Rao, it's working fine now, thank you very much <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xBrowse - RestoreState() – wrong column sequence
Frank, Rao, seems to work for me too now. Thank you very much! (will these changes be included in the next release?)
xBrowse - Save State
Hello Everyone, Is it possible to save the state of the browse, where the selected row is fourth from top so when the browse is restored, the selected row stills shows fourth and not at the top of the browse? For Example: row one row two row three row four <- Selected Row row five row six etc. After Restore, it shows thus: row four <- Selected Row row five row six row seven row eight row nine etc. Any Ideas? TIA, David
xBrowse - Save State
cSave := oBrw:SaveState( { "KeyNo", "nRowSel" } ) later oBrw:RestoreState( cSave )
xBrowse - Save State
Once again, thank you Rao. So simple <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Are there any notes available on xBrowse apart from those in the prg? David
xBrowse - Save State
David, Here are some: [url:hcakbq3x]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=xbrowse[/url:hcakbq3x]
xBrowse - Save State
Hello, I can´t find the information about SaveState. I would like to save the selected cols by the user by drag and drop, also the cols that the user hided by right click. Thank you!!!.
xBrowse - Save State
[quote="elvira":2tel6i4m]Hello, I can´t find the information about SaveState. I would like to save the selected cols by the user by drag and drop, also the cols that the user hided by right click. Thank you!!!.[/quote:2tel6i4m] All that info is saved and restored by default.
xBrowse - Save State
Hello, How?. Where is it located?. If I have several browses, how can I distingish each one?. Thank you;))
xBrowse - Save State
Elvira, It is saved to a static variable. If you exit the application, I presume you can save it to an ini. David
xBrowse - Save State
Hello, Thank you. Mr. Nages, could you please add to this feature to save the status of AUTOSORT feature? <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->)
xBrowse - Save State
I had already done what all could be done from our side. Programmer can decide what DATAs are to be saved in addition to the default DATAs. cState := oBrw:SaveState( <ArrayofAdditionalDataNames> ) example cState := oBrw:SaveState( { "lAutoSort" } )
xBrowse - Save State
Mr. Nages, Thank. But if its posible to know in wich column did the user clicked on the autosort?. I.e, name, ascending. Kind regards,
xBrowse - Save State
At what stage do you want to know? and the purpose?
xBrowse - Save State
Mr. Nages, I use ADO and autosort. I can sort by every column and select asc/desc order. That´s fantastic feature!!. I want to sabe wich was the last column select for order and if it was asc or desc order. It wold be very interesting for future releases <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
xBrowse - Save State
Last sorted column's data cOrder is 'A' if ascending and 'D' if descending. For all other columns cOrder is empty. You can find it by Scanning aCols.
xBrowse - SaveState()/RestoreState() - Persistent objects
Hi to all, As far as I can see, the xBrowse methods SaveState() and RestoreState() are only functional for simple browses. If there are more complex ones with selected columns, with code blocks for <bStrData> not only defined for a field, with differentiated color definitions for columns and/or for cells, freezed columns, etc. these functions fails. If I'm wrong, please help to clarify. If I’m right, the following question comes up: xHarbour has the abstract base class ‘HBPersistent()’. Here is the description from the help file: [quote:2cfgibsm] The HBPersistent() class is an abstract class for the creation of persistent objects. When user-defined classes should become persistent, they must inherit from HBPersistent() which provides methods for converting an object to/from a binary string and/or file on disk. All instance variables declared with the PERSISTANT attribute are preserved and re-assigned when a persistent object is converted to a binary string and back to the Object data type. Note: if code blocks are stored in instance variables of a persistent object, the same restrictions apply as outlined with function HB_Serialize().[/quote:2cfgibsm] With HBPersistent() it should be possible to create an extended TXBrowse class with all involved instance variables having the PERSISTENT attribute. Unfortunately my OOP know-how is very poor <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->, so without assistance I'm not able to realize this topic by myself. Perhaps someone else has implemented this or a similar feature in one of his projects and is willing to share the source? Or FivTech has this feature already on his road map? If not, put it on it <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Perhaps it's opportune to implement this feature also in other classes or even in the window class, so we have the advantage of persistent objects not only for TXBrowse? By the way: My old console app, which I want to migrate to FiveWin, has just this feature for dialog boxes. It's based on the 3-party tool called "SAA-CUA-Bausteine für Clipper 5.01", (C)opyright 1991,1992 by Ivo Wessel!
xBrowse - SaveState()/RestoreState() - Persistent objects
Solved. In my test app <nRowHeight> was NIL, so RestoreSave( cState ) has done nothing! Adding e.g. 'oBrw:nRowHeight := 18' solves it! Can't understand the reason of this 'pitfall' Persistent objects no issue here? Why?
xBrowse - SetCheck()
Estimados; Tengo un xbrowse que muestra datos de una Tabla, conectado mediante MariaDB. Lo que pretendo es adicionar a las columnas de datos que tomo de la Tabla, una columna SetCheck(). Leyendo en el foro, encontré la forma de agregar una columna sin que esta sea de la Tabla y el codigo es el siguiente: [code=fw:2p0lwjn3]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT ::<span style="color: #000000;">oLstIns</span>:<span style="color: #000000;">Selec</span>:= <span style="color: #000000;">&#123;</span>|| aScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oLstIns</span>:<span style="color: #000000;">aSelected</span>, <span style="color: #000000;">&#123;</span> |n| n == ::<span style="color: #000000;">oLstIns</span>:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Sel"</span><br />      :<span style="color: #000000;">nWidth</span>  := <span style="color: #000000;">25</span><br />      :<span style="color: #000000;">nHeadStralign</span>:= AL_CENTER<br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /> </div>[/code:2p0lwjn3] El resultado visual es el esperado... aunque no es todo lo que pretendo. Lo que necesito es cambiar el estado de la columna :Selec. He probado con dobleclic y no se produce ningun cambio, que me falta? Y si además quisiera, tambien, dejar la posibilidad de marcar/desmarcar mediante la barra espaciadora del teclado?. Como sería? desde ya muchas gracias
xBrowse - SetCheck()
Mario Debes tener en cuenta que aunque cambies el valor hasta que no lo almecenes en la base de datos ese cambio no sucedera, cuando el xbrowse refresca vuelve a hacer una lectura de las filas visibles del xbrowse dentro del recordset, el segundo parametro del metodo SetCheck es el codeblock bOnPostEdit, puedes hacer un UPDATE desde alli
xBrowse - SetCheck()
[quote="MarioG":3smq7k8g]Y si además quisiera, tambien, dejar la posibilidad de marcar/desmarcar mediante la barra espaciadora del teclado?. Como sería?[/quote:3smq7k8g] [code=fw:3smq7k8g]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Use either Enterkey or Spacebar to change the value in Checkbox</span><br />oBrw:<span style="color: #000000;">bKeyDown</span>= <span style="color: #000000;">&#123;</span>|nKey| &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nKey &nbsp;== VK_RETURN .or. nKey == VK_SPACE, <span style="color: #ff0000;">"YourRoutine"</span> , &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:3smq7k8g] Regards Anser
xBrowse - SetCheck()
Gente; muchas gracias por las respuestas
xBrowse - SetCheck() (SOLUCIONADO)
Estimados; Tengo el siguiente xBrowse donde muestro en la columna última un ícono segun se cumpla una condición, y se ve así: [img:l9psgoiz]http&#58;//imageshack&#46;us/scaled/modthumb/844/g68j&#46;jpg[/img:l9psgoiz] Como se ve, en la cabecera, dice: "Para Facturar" (salida por impresora). Entonces, luego de este proceso pretendo que el SetCheck adopte esta visual: [img:l9psgoiz]http&#58;//imageshack&#46;us/scaled/modthumb/94/4h49&#46;jpg[/img:l9psgoiz] Quizas las imágenes son un poco reducidas (al menos en la vista previa). Espero se entienda la idea... se puede?, como? desde ya muchas gracias
xBrowse - SetCheck() (SOLUCIONADO)
repito las imágenes: [img:d6lwxor0]http&#58;//imageshack&#46;us/scaled/medium/844/g68j&#46;jpg[/img:d6lwxor0] [img:d6lwxor0]http&#58;//imageshack&#46;us/scaled/medium/94/4h49&#46;jpg[/img:d6lwxor0] agrego: Lo intenté así (sin exito): [code=fw:d6lwxor0]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT ::<span style="color: #000000;">oBrwCab</span>:<span style="color: #000000;">FCabFa14</span><br />      :<span style="color: #000000;">cHeader</span>:= <span style="color: #ff0000;">"Para"</span>+CRLF+<span style="color: #ff0000;">"Facturar"</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br />      :<span style="color: #000000;">nHeadStrAlign</span>:= :<span style="color: #000000;">nDataBmpAlign</span>:= AL_CENTER<br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa14 .and. !<span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa15, <span style="color: #ff0000;">"bmp_Listo"</span>, ;<br />                   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa14 .and.  <span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa15, <span style="color: #ff0000;">"bmp_PrntOk"</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span>, EDIT_GET <span style="color: #000000;">&#41;</span><br />         END</div>[/code:d6lwxor0] Para manejar tal condición dispongo de dos campos lógicos: Para Facturar, (h0["CabFacVta"]:cAlias)->FCabFa14, y Facturado (h0["CabFacVta"]:cAlias)->FCabFa15 Por ahora, una vez dada la condición de Facturado, estoy colorizando la fila. Y para hacerlo mas difícil, en esta última condición, ya no se debería poder revertir al hacer doble click en el campo nuevamente, gracias
xBrowse - SetCheck() (SOLUCIONADO)
[code=fw:3irs9a84]<div class="fw" id="{CB}" style="font-family: monospace;">WITH OBJECT ::<span style="color: #000000;">oBrwCab</span>:<span style="color: #000000;">FCabFa14</span><br />&nbsp; &nbsp;:<span style="color: #000000;">cHeader</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"Para"</span>+CRLF+<span style="color: #ff0000;">"Facturar"</span><br />&nbsp; &nbsp;:<span style="color: #000000;">nHeadStrAlign</span> := :<span style="color: #000000;">nDataStrAlign</span>:= AL_CENTER<br />&nbsp; &nbsp;:<span style="color: #000000;">nHeadStrAlign</span> := :<span style="color: #000000;">nDataBmpAlign</span>:= AL_CENTER<br />&nbsp; &nbsp;<span style="color: #B900B9;">//</span><br />&nbsp; &nbsp;:<span style="color: #000000;">bEditValie</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa14 .and. !<span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa15, .t., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa14 .and. &nbsp;<span style="color: #000000;">&#40;</span>h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->FCabFa15, .f., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Listo"</span>, <span style="color: #ff0000;">"bmp_PrntOk"</span> <span style="color: #000000;">&#125;</span>, .t. <span style="color: #000000;">&#41;</span><br />END<br />&nbsp;</div>[/code:3irs9a84]
xBrowse - SetCheck() (SOLUCIONADO)
Mr. Rao many thanks!; but now, i can't do dobleclic <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> The first time, I doubleclick to show "ready to print" status. In the second time, i pretend show the other icon. But I think that not the object of SetCheck(). I'll use a diferent color for this line sorry for my english Regards
xBrowse - SetCheck() (SOLUCIONADO)
Estimados; Vuelvo sobre este tema a ver si alguien me puede ayudar. Explico lo que pretendo hacer: Tengo, en un xBrowse, una lista de (a la que llamo) cabeceras de facturas. O sea, alguien en Administración prepara un pedido para Facturar. En Depósito ese Pedido se prepara. Una vez preparado, se hace doble clic en la columna "Para Facturar" mostrando el icono respectivo. Finalmente en Administración se lo Factura. Luego de facturado, el SetCheck() se pone en .f. (no muestra nada) y la fila se pinta de un color distinto del resto (gris) para indicar que ya esta facturado. Ahora bien, la incongruencia es que si, en este último estado, hago nuevamente dobleclic, el SetCheck(), obviamente, devuelve verdadero y muestra el icono. Como hago para controlar, para que antes de ejecutar SetCheck(), me Alerte o no, sobre la condición de la fila Tengo dos campos lógicos: Campo1 (FCabFa14), "Para Facturar" y Campo2 (FCabFa15), "Facturado" O si hay otra opción, bienvenida! muchas gracias
xBrowse - SetCheck() (SOLUCIONADO)
Creo que tu solucion esta en el methodo on dobleclick de columna, yo hago algo parecido, si esta tildado(check) o no, dependiendo tambien de otra condicion en una VAR, permito que se haga el cambio o switcheo en el check, no se si eso te da una idea de que hacer o te deja igual o peor que antes, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
xBrowse - SetCheck() (SOLUCIONADO)
José, gracias por responder Podría poner el código de como lo haces?
xBrowse - SetCheck() (SOLUCIONADO)
Disculpa la tardanza, andaba un pòco ful, haber si esto te ayuda o da una idea sobre lo que quieres hacer, nose si habra una manera mas facil, pero a mi me funciona a la perfeccion para lo que necesito, esto es con MYSQL, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> EN EL xBROWSE uso una VAR que controla el setcheck y en la funcion act_check() hago el cambio dependiendo de lo que quiera o valide, por lo menos si el cliente ya esta adjudicado, y tratan de volverlo adjudicar en el mismo momento, el sistema advierte y no lo permite, aunque tengo varias condiciones en mis validaciones... // ACT./DES. STATUS SELECCIONADO PARA ADJUDICAR CON D-CLICK :bLDblClick := {|nRow|IIF( oQryADJ:adj_adjudicar = 0 ,; ( oQryADJ:adj_adjudicar := 1 ) ,; ( oQryADJ:adj_adjudicar := 0 ) ) ,; act_check( oQryAdj ) ,; oQryADJ:REFRESH(), oBrw:REFRESH() } // ACT./DES. STATUS SELECCIONADO PARA ADJUDICAR CON SPACE :bKeyDown= {|nKey| IF ( nKey == VK_SPACE ,; IIF( oQryADJ:adj_adjudicar = 0 ,; ( oQryADJ:adj_adjudicar := 1 ) ,; ( oQryADJ:adj_adjudicar := 0 ) ), ) } PROCEDURE act_check( oQryAdj ) // ACTUALIZA CHECK PARA adjudicar LOCAL cSql, oError oQryAdj:REFRESH() cSql := "UPDATE cronograma SET " cSql += "adj_adjudicar=" + ClipValue2SQL( IF( oQryAdj:adj_adjudicar == 0, 1, 0 ) ) cSql += " WHERE adj_insc = '" + ClipValue2SQL( oQryAdj:adj_insc ) + "' " TRY oDatos:oConex:Execute( cSql ) CATCH oError MSGALERT( oError:Description + CRLF + ; "Error Grabando en Tabla (cronograma), Sentencia" + CRLF + CRLF + ; cSql, oDatos:cTitMsg ) END RETURN
xBrowse - SetCheck() (SOLUCIONADO)
José Luis; gracias por responder, es lo que necesito. Aunque no "veo", como afecta a la columna en la que tengo definido el SetCheck(). Entiendo lo que hacen bLDblclick y bKeyDown, pero no entiendo como afectan a la columna con el Setcheck gracias
xBrowse - SetCheck() (SOLUCIONADO)
[quote="MarioG":r4y018vj]José Luis; gracias por responder, es lo que necesito. Aunque no "veo", como afecta a la columna en la que tengo definido el SetCheck(). Entiendo lo que hacen bLDblclick y bKeyDown, pero no entiendo como afectan a la columna con el Setcheck gracias[/quote:r4y018vj] Mario, como es bLDblclick aplica sobre la fila, afectando automaticamente sobre la columna que tenga SetCheck(), te mando una imagen para que veas lo que te digo, la columna ADJ es la que usa el SetCheck, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [url=http&#58;//imageshack&#46;us/photo/my-images/11/j5s2&#46;jpg/:r4y018vj][img:r4y018vj]http&#58;//img11&#46;imageshack&#46;us/img11/9952/j5s2&#46;jpg[/img:r4y018vj][/url:r4y018vj] Uploaded with [url=http&#58;//imageshack&#46;us:r4y018vj]ImageShack.us[/url:r4y018vj]
xBrowse - SetCheck() (SOLUCIONADO)
Jose Luis, Se ve muy bien, enhorabuena <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> como haces para definir los dias para cada persona ? Desde una caja de diálogo ?
xBrowse - SetCheck() (SOLUCIONADO)
[quote="Antonio Linares":6zz0cw6h]Jose Luis, Se ve muy bien, enhorabuena <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> como haces para definir los dias para cada persona ? Desde una caja de diálogo ?[/quote:6zz0cw6h] Muchas gracias Antonio, ese cronograma es un xbrowse de solo lectura que se alimenta de una tabla que contiene el cronograma de pago individual con varias informaciones sobre el pago y son mensuales, esto se procesa en un sistema de facturacion de forma automatica sin introducir datos, solo la cantidad de cuotas mensuales a pagar, previamente determinado en un contrato, aca una vista de la facturacion, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [url=http&#58;//imageshack&#46;us/photo/my-images/90/kham&#46;jpg/:6zz0cw6h][img:6zz0cw6h]http&#58;//img90&#46;imageshack&#46;us/img90/7407/kham&#46;jpg[/img:6zz0cw6h][/url:6zz0cw6h] Uploaded with [url=http&#58;//imageshack&#46;us:6zz0cw6h]ImageShack.us[/url:6zz0cw6h]
xBrowse - SetCheck() (SOLUCIONADO)
Estimados; gracias a Rao y José Luis por sus respuestas. Finalmente, y eso es lo bueno de cuando no nos "sirven la respuesta en bandeja", solucioné de la manera que me deja satisfecho. Por lo que obviamente supongo que habrá, otras mejores soluciones. Para solucionar lo planteado, que consiste, en representar en una columna 3 estados, a traves de 2 campos lógicos, quise acudir a SetCheck(), pero como obviamente, SetCheck(), esta diseñado para presentar 2 posibles estados, la cosa se puso muuuuy dificl (o mejor dicho "tercamente" dificil). La solución, en código, fue la siguiente: [code=fw:1rhiyel4]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT ::<span style="color: #000000;">oBrwCab</span>:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">cHeader</span>:= <span style="color: #ff0000;">"Estado"</span><br />      :<span style="color: #000000;">nHeadStrAlign</span>:= AL_CENTER<br />      :<span style="color: #000000;">nDataBmpAlign</span>:= AL_LEFT<br />      :<span style="color: #000000;">nDataStrAlign</span>:= AL_RIGHT<br />      :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"bmp_Listo"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>|o,v| h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                                             <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                                                 <span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span>:= v, h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                                             <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                                                 <span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span>:= v, h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                                             <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                                                 <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> MsgNoYes<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Este Documento ya fue Facturado"</span>+CRLF+<span style="color: #ff0000;">"Desea visualizarlo/re imprimirlo?"</span>, <span style="color: #ff0000;">"Atención!"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                                       ::<span style="color: #000000;">SetCab2Print</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span>, .f. <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">bStrData</span>:= <span style="color: #000000;">&#123;</span>|| h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                          <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"P/Preparar"</span> <span style="color: #000000;">&#41;</span>, ;<br />                      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                          <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"P/Facturar"</span> <span style="color: #000000;">&#41;</span>, ;<br />                      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                          <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FACTURADO"</span>  <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span><span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                           CLR_BLACK, ;<br />                       <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. !h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                           CLR_HBLUE, ;<br />                       <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa14</span> .and. h0<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"CabFacVta"</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">FCabFa15</span>, ;<br />                           CLR_HRED, CLR_BLACK <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, CLR_BACKBLUE2<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   END<br /> </div>[/code:1rhiyel4] Entonces esto queda así (segun la asignación .T. o .F. de los dos campos que involucran el analisis) En el estado de que solo esta preparado un pedido la columna "Estado" muestra "P/Preparar", en color estandar. Pasado este estado el operador hace doble clic y se muestra el ícono y el texto cambia a "P/Facturar", en color azul fuerte. Una vez emitido, se mantiene el ícono y el texto cambia a FACTURADO y en color rojo fuerte. [img:1rhiyel4]http&#58;//imageshack&#46;us/scaled/medium/6/thpw&#46;jpg[/img:1rhiyel4] En el estado FACTURADO. Si el operador hace dobleclic; entonces emerge un alerta opcional de si quiere previsualizar y/o re imprimir el documento. José Luis: Si observás el SetCheck(), el segundo parámetro también puede ser un codeblock (no lo sabia y lo encontré en uno de los samples de xBrowse). De manera que con este CB prescindí del uso de :bLDblClick Saludos
xBrowse - SetCheck() (SOLUCIONADO)
Mario que bueno resolvistes, es la idea del foro, reza un dicho...NO LES DES PESCADO, ENSEÑALOS A PESCAR, y asi es que aprendemos cada dia mas, esta muy buena tu solucion planteada y lo del setcheck lo habia visto en el foro, pero como ya tenia esto hecho, lo deje asi, igual gracias por el detalle, seguimos a la orden hasta que Dios quiera, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
xBrowse - ToolTip em BOTÃO
Seria possível adicionar um TOOLTIP em um BOTÃO de uma coluna do XBROWSE? oBrwb:aCols[1 ]:nDataStrAlign := AL_RIGHT oBrwb:aCols[1 ]:nHeadStrAlign := AL_CENTER oBrwb:aCols[1 ]:cHeader := 'Venda' oBrwb:aCols[1 ]:cBtnCaption := '$' oBrwb:aCols[1 ]:nEditType := EDIT_GET_BUTTON oBrwb:aCols[1 ]:bEditBlock := {|| oBrwb:SelectCol(1), NIL } //ISSO NÃO FUNCIONA <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> oBrwb:aCols[1 ]:oBtnList:cToolTip := 'Teste'
xBrowse - ToolTip em BOTÃO
Veja se ajuda: [code=fw:3esxnvsj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">function</span> TestTip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oFont, oBrw<br /><br />&nbsp; &nbsp;USE CUSTOMER<br /><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;">600</span>, <span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Texto a mostrar 1"</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Texto a mostrar 2"</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Texto a mostrar 3"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// AEval( oBrw:aCols, { |o| o:cToolTip := { 'Column :' + CRLF + o:cHeader, 'ToolTip' } } )</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">bToolTips</span> := <span style="color: #000000;">&#123;</span> | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip<span style="color: #000000;">&#40;</span> oBrw,r,c,f,oMouseCol,nMouseRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> MyColToolTip<span style="color: #000000;">&#40;</span> oBrw, r, c, f, oMouseCol, nMouseRow <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> uBm, uVal<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nMouseRow != oBrw:<span style="color: #000000;">nRowSel</span><br /><br />&nbsp; &nbsp; &nbsp; uBm &nbsp; := oBrw:<span style="color: #000000;">BookMark</span><br />&nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">bSkip</span>, nMouseRow - oBrw:<span style="color: #000000;">nRowSel</span> <span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; uVal &nbsp;:= oMouseCol:<span style="color: #000000;">Value</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">BookMark</span> := uBm<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; uVal &nbsp;:= oMouseCol:<span style="color: #000000;">Value</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cValToChar<span style="color: #000000;">&#40;</span> uVal <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3esxnvsj]