topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
transparencia de tree en dialogos | Antonio
Claro esa es la idea
gracias
Wilson |
transparencia de tree en dialogos | Wilson,
Lo máximo que de momento parece que podemos llegar es a esto:
[code=fw:jcctbln4]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrCyan <span style="color: #0000ff;">COLOR</span> CLR_HCYAN<br /><br /> oTree:<span style="color: #000000;">bEraseBkgnd</span> = <span style="color: #000000;">{</span> | hDC | SetBkMode<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>,;<br /> FillRect<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oTree:<span style="color: #000000;">nWidth</span>, oTree:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">}</span>,;<br /> oBrCyan:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br /> </div>[/code:jcctbln4]
Cambia ese brush por oDlg:oBrush |
transparencia de tree en dialogos | Antonio gracias
ahora me queda asi
[img:300y1i83]https://imageshack.com/i/p8Pq3wblj[/img:300y1i83]
saludos
Wilson |
transparencia de tree en dialogos | Tambien podrias usar un browse en vez de un tree y asi si podrias configurarlo mejor. |
transparencia de tree en dialogos | Antonio gracias
Voy a ver so uso RADIO
saludos
Wilson |
transparencia de tree en dialogos | con radio ya queda bien asi
[img:26luofcn]http://imageshack.com/a/img540/101/57nyPH.jpg[/img:26luofcn]
gracias por la ayuda
Wilson |
transparencia de tree en dialogos | Muy bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
transparencia de tree en dialogos | Asi va quedando, lo único que me queda pendiente es reemplazar a futuro el RADIO por XBROWSE pero como estoy apurado ...
[img:9t5t53yu]http://imageshack.com/a/img537/3800/kZhwF5.jpg[/img:9t5t53yu]
gracias Antonio por tu preocupación
saludos
Wilson |
transparencia de tree en dialogos | Asi está genial! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
transparencia en controles. | Hola a todos nuevamente.
hace poco los amigos cNavarro y Joao me enseñaron como cambiar el color de los dialgos en tiempo de ejecucion.
Pero ahora tengo un problema que me imagino que ya muchos deben saber la solucion pero no he dado con ella.
Necesito que el color de fondo de los controles adopte o tome el mismo color que los dialogos.
anexo una imagen donde indico dentro del cuadro rojo el feo detalle que queda en un checkbok al cambiar el color del dialogo
Agredezco la ayuda por anticipado.
[img:3hd2o08z]http://softwarebinario.com/ml/jpg.jpg[/img:3hd2o08z] |
transparencia en controles. | Qué versión de Fw utilizas?
La mayoría de los controles tienen la claúsula TRANSPARENT |
transparencia en controles. | Esto controle és una BitMap?
[code=fw:e29al49u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> BITMAP oFiveWin <span style="color: #0000ff;">ID</span> <span style="color: #000000;">122</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"FIVEPOWER"</span> TRANSPARENT ;<br /> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ADJUST</span><br /> </div>[/code:e29al49u]
Saludos. |
transparencia en controles. | En CHECKBOX, el comando TRANSPARENT no funciona.
[code=fw:19aw4imy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oPdfTelaSumatra <span style="color: #0000ff;">VAR</span> lPdfTelaSumatra <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br /> COLORS CLR_HGREEN, CLR_WHITE<br /> </div>[/code:19aw4imy]
|
transparencia en controles. | Gracias nuevamente a cNavarro y Joao.
Efectivemente, antes de poner la pregunta acá en el foro, me cansé de aplicar el TRANSPARENT de todas las maneras que me pude imaginar y no funcionó.
Joao, Apliqué lo que me indicaste:
[b:2erhmlmf] REDEFINE CHECKBOX oPdfTelaSumatra VAR lPdfTelaSumatra ID 103 OF oDlg UPDATE ;
COLORS CLR_HGREEN, CLR_WHITE[/b:2erhmlmf]
y funcionó [b:2erhmlmf]perfecto...[/b:2erhmlmf]
Nuevamente agradecidos a ambos por su atención. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Me quedá un solo problema por resolver y así poder satisfacer a mi cliente en lo que me solicitó de poder cambiar los colores de los dialogos a su gusto. No se trata de cambiar el color de toda la aplicación. El cliente quiere poder cambiar el color de CADA DIALOGO y sus letras según su deseo, por eso, de pronto en un módulo quiere un fondo azul con letra amarilla, pero en otro quiere un fondo verde con letra roja... caprichos de clientes que no esta en nosotros juzgar, sino hacerlo, ya que estará pagandonos para hacer la aplicación 100% a su gusto. Y entre gustos y colores...
Bien, el detalle que me falta es poder cambiar el color de los botones, con la clase nativa de FW:
[b:2erhmlmf]Redefine button oButtonExit id 21 OF oDlg[/b:2erhmlmf]
Alguna idea de como hacerlo por favor ? |
transparencia en controles. | En el menu Principal:
[code=fw:cx68fiip]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> SetBalloon<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Balloon shape required for tooltips</span><br /><br /> SkinButtons<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Botoes Coloridos nas novas versoes</span><br /><br /> SetGetColorFocus<span style="color: #000000;">(</span> CLR_MENTA <span style="color: #000000;">)</span><br /><br /> tGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">lDisColors</span> := <span style="color: #00C800;">FALSE</span><br /> tGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nClrTextDis</span> := CLR_BLUE<br /> tGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">nClrPaneDis</span> := CLR_SOFTYELLOW<br /> </div>[/code:cx68fiip]
|
transparency from checkbox and radio | On a gradient-filled dialog the checkboxes and radios are not transparency. Any suggestion? |
transparent ??? | [img:2xb7nvwu]http://img59.imageshack.us/img59/5541/errwindsev.jpg[/img:2xb7nvwu]
why the bitmap is not transparent ??? |
transparent ??? | ANY SOLUTION ?
THIS THE SAMPLE TEST
[code=fw:q7apgad5]<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 /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /> <span style="color: #00C800;">local</span> nRecSel<br /><br /> USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUST<br /> nRecSel := CUST-><span style="color: #000000;">(</span> RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><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;">640</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'XBrowse Gradient Rows'</span><br /><br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> BACKGROUND <span style="color: #ff0000;">""</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> || nRecSel := oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_NOLINES<br /> :<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_NOLINES<br /> :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br /><br /> END<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">8</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">AddBmpFile</span><span style="color: #000000;">(</span><span style="color: #ff0000;">".<span style="color: #000000;">\t</span>ipo<span style="color: #000000;">\p</span>rint.bmp"</span><span style="color: #000000;">)</span><br /> :<span style="color: #000000;">AddBmpFile</span><span style="color: #000000;">(</span><span style="color: #ff0000;">".<span style="color: #000000;">\t</span>ipo<span style="color: #000000;">\l</span>aptop.bmp"</span><span style="color: #000000;">)</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Married"</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || iif<span style="color: #000000;">(</span> _FIELD->Married, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span><br /> :<span style="color: #000000;">AddBmpFile</span><span style="color: #000000;">(</span><span style="color: #ff0000;">".<span style="color: #000000;">\t</span>ipo<span style="color: #000000;">\A</span>ULE.bmp"</span><span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">1</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">{</span> || _FIELD->City<span style="color: #000000;">}</span><br /> END<br /><br /><br /> AEval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |oCol| ;<br /> oCol:<span style="color: #000000;">bPaintText</span> := <span style="color: #000000;">{</span> |oCol, hDC, cData, aRect | ;<br /> PaintCol<span style="color: #000000;">(</span> oCol, hDC, cData, aRect, nRecSel <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /> CLOSE CUST<br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> PaintCol<span style="color: #000000;">(</span> oCol, hDC, cData, aRect, nRecSel <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> nRecSel == CUST-><span style="color: #000000;">(</span> RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> GradientFill<span style="color: #000000;">(</span> hDC, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">3</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">5</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">220</span>, <span style="color: #000000;">235</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">193</span>, <span style="color: #000000;">219</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, .T. <span style="color: #000000;">)</span><br /> SetBkMode<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> RoundBox<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">1</span>, WndWidth<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">22</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>,;<br /> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">235</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> RoundBox<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">2</span>, WndWidth<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">21</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>,;<br /> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">162</span>, <span style="color: #000000;">206</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> SetTextColor<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> DrawTextEx<span style="color: #000000;">(</span> hDC, cData, aRect, oCol:<span style="color: #000000;">nDataStyle</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> ROUNDBOX <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> HDC hDC = <span style="color: #000000;">(</span> HDC <span style="color: #000000;">)</span> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> HBRUSH hBrush = <span style="color: #000000;">(</span> HBRUSH <span style="color: #000000;">)</span> GetStockObject<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span>;<br /> HBRUSH hOldBrush = <span style="color: #000000;">(</span> HBRUSH <span style="color: #000000;">)</span> SelectObject<span style="color: #000000;">(</span> hDC, hBrush <span style="color: #000000;">)</span>;<br /> HPEN hPen, hOldPen ;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hb_pcount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">8</span> <span style="color: #000000;">)</span><br /> hPen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">(</span> COLORREF <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">else</span><br /> hPen = CreatePen<span style="color: #000000;">(</span> PS_SOLID, <span style="color: #000000;">1</span>, <span style="color: #000000;">(</span> COLORREF <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><br /> hOldPen = <span style="color: #000000;">(</span> HPEN <span style="color: #000000;">)</span> SelectObject<span style="color: #000000;">(</span> hDC, hPen <span style="color: #000000;">)</span>;<br /> hb_retl<span style="color: #000000;">(</span> RoundRect<span style="color: #000000;">(</span> hDC ,<br /> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>,<br /> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>,<br /> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">4</span> <span style="color: #000000;">)</span>,<br /> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span>,<br /> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span>,<br /> hb_parni<span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /><br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldBrush <span style="color: #000000;">)</span>;<br /> DeleteObject<span style="color: #000000;">(</span> hBrush <span style="color: #000000;">)</span>;<br /> SelectObject<span style="color: #000000;">(</span> hDC, hOldPen <span style="color: #000000;">)</span>;<br /> DeleteObject<span style="color: #000000;">(</span> hPen <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:q7apgad5]
I TRY ALSO TO SEVEN WINDOWS SAME ERROR |
transparent ??? | this is the test on Windows Seven
[img:2hw5n0av]http://img205.imageshack.us/img205/6088/immagineqd.jpg[/img:2hw5n0av]
SAME ERROR
on bitmaps there is a box blue |
transparent bitmap | I insert a bitmap on a window and I set this bitmap transparent with
@ nRow, nCol BITMAP oSprite;
RESOURCE cBitmap;
PIXEL NOBORDER of oWnd // SIZE 64,64
nTipo:=nItem
oSprite:lTransparent = .T.
but on window this bitmap not is trasparent see the picture pls :
[img:1vgc32np]http://img163.imageshack.us/img163/7025/82943486.png[/img:1vgc32np]
you can see there 's not the grid down the bitmap
wich is the problem ? |
transparent bitmap | Any solution ? |
transparent image on xbrowse | look this please
[img:1vmep4wt]https://i.postimg.cc/jdNZVSRN/linea.png[/img:1vmep4wt]
the images you see on this row are all pngs except "+" and "-" of fwh
how is possible calendar image not is transparent ? |
transparent image on xbrowse | resolved with :nMarqueeStyle :=MARQSTYLE_HIGHLWIN7 |
transparent on a say | I haven't used resources for a long time but tonight I was forced to create a small dialogue but being old and having signs of early senility,
I don't remember exactly how transparency was assigned to the controls say
I made
REDEFINE SAY oSaySearch[1] Prompt "Cognome" ID 4001 OF oItem:oDlgChild COLOR CLR_BLUE, GetSysColor( 15 )
REDEFINE SAY oSaySearch[1] Prompt "Nome" ID 4002 OF oItem:oDlgChild COLOR CLR_BLUE, GetSysColor( 15 )
[b:2au3nm32] oSaySearch[1]:lTransparent:=.t.
oSaySearch[2]:lTransparent:=.t.[/b:2au3nm32]
why make error ? |
transparent on a say | Silvo
I use gradient backgrounds and the SetDlgGradient() sets the global transparent variable
This is how I color my dialogue boxes .. I have many different colors I have defined as functions .. here is just a Light Grey gradient .. an added feature of the SetGradient() function is it sets the Global transparent flag .. all your text says are transparent by default using SetDLgGradient() fundtion .. no need to add Transparent to your dialogues anymore.
[code=fw:2aeihzvl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//------------------</span><br />Func LightGreyGrad<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />SetDlgGradient<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">50</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">216</span>, <span style="color: #000000;">216</span>, <span style="color: #000000;">216</span> <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span><span style="color: #00C800;">nil</span><span style="color: #000000;">)</span><br /> </div>[/code:2aeihzvl]
Rick Lipkin |
transparent on a say | Sorry rick,
I asked transparency of a say
I not have dialog with gradient
I use a particolar method SetDialog( cResName ) of C5 Vtaskbar, do you Know it ?
it insert a resource dialog into a menuitem with oBrush (color oThis:nClrPane)
if I insert a say then make not trasparency
[img:3mf9k2my]https://i.postimg.cc/DfNFML6T/h.png[/img:3mf9k2my]
now I resolved set color of say with CLR_BLUE, GetSysColor( 15 ) But I think is wrong |
transparent on a say | [quote:2wrn70h5]now I resolved set color of say with CLR_BLUE, GetSysColor( 15 ) But I think is wrong[/quote:2wrn70h5]
Not wrong. This is also one way. Better is COLOR CLR_BLUE, oDlg:nClrPane.
But this works only when the dialog has a plain background color.
Say ..with lTransparent := .t. should work. |
transparent on a say | > Say ..with lTransparent := .t. should work.
here made error
Error occurred at: 12-04-2020, 19:05:46
Error description: Error BASE/1005 Variabile non disponibile: LTRANSPARENT
Args:
[ 1] = U
[ 2] = L .T.
Stack Calls
===========
Called from: => _LTRANSPARENT( 0 )
Called from: Source\spiaggia\PSpiaggia.prg => VTASKBARBEACH( 557 )
[code=fw:1bjw7a8z]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Cognome"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oItem:<span style="color: #000000;">oDlgChild</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Nome"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4002</span> <span style="color: #0000ff;">OF</span> oItem:<span style="color: #000000;">oDlgChild</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span><br /> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">lTransparent</span>:=.t.<br /> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">lTransparent</span>:=.t.<br /><br /> </div>[/code:1bjw7a8z] |
transparent on a say | And writing like that?
[code=fw:25oc9eye]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Cognome"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oItem:<span style="color: #000000;">oDlgChild</span> ;<br /> COLORS CLR_BLUE, GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span> TRANSPARENT<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Nome"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4002</span> <span style="color: #0000ff;">OF</span> oItem:<span style="color: #000000;">oDlgChild</span> ;<br /> COLORS CLR_BLUE, GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span> TRANSPARENT<br /> </div>[/code:25oc9eye] |
transparent on a say | [quote="Silvio.Falconi":31da3epm]> Say ..with lTransparent := .t. should work.
here made error
Error occurred at: 12-04-2020, 19:05:46
Error description: Error BASE/1005 Variabile non disponibile: LTRANSPARENT
Args:
[ 1] = U
[ 2] = L .T.
Stack Calls
===========
Called from: => _LTRANSPARENT( 0 )
Called from: Source\spiaggia\PSpiaggia.prg => VTASKBARBEACH( 557 )
[code=fw:31da3epm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Cognome"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oItem:<span style="color: #000000;">oDlgChild</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Nome"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4002</span> <span style="color: #0000ff;">OF</span> oItem:<span style="color: #000000;">oDlgChild</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">15</span> <span style="color: #000000;">)</span><br /> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">lTransparent</span>:=.t.<br /> oSaySearch<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">lTransparent</span>:=.t.<br /><br /> </div>[/code:31da3epm][/quote:31da3epm]
Change second object say ( you have REDEFINE SAY oSaySearch[1] also )
[code=fw:31da3epm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSaySearch<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> ..................<br /> </div>[/code:31da3epm] |
transparent on a say | Oopps |
transparent say | DEFINE BUTTONBAR ::oBar _3D SIZE 44, 46 OF ::oWndMain 2007 //36, 40
@ 7, 285 SAY ::oMsg PROMPT "TEST TEST TEST" ;
SIZE 150, 15 PIXEL OF ::oBar FONT ::oFont
::oMsg:lTransparent = .T.
THE say is not transparent
ANY suggestion? |
transparent say | Hello silvio
please check
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=76497#p76497">viewtopic.php?p=76497#p76497</a><!-- l --> |
transparent say | Daniel
I have the fwh include and source 8.11 I not have ladjust
I try all modifies you write on that post
I create the exe but not open the exe
the exe is in memory of windows xp but not show anything |
transparent say | Daniel not run on buttonbar
@ 7, 285 SAY ::oMsg PROMPT "RIVAMANIA PRO 1.00" ;
SIZE 150, 15 PIXEL OF ::oBar FONT ::oFont TRANSPARENT
[img:30ujw2uj]http://www.vdswin.it/bu.bmp[/img:30ujw2uj] |
transparent say | the clausule transparent affect on brush
The say is brused with buttonbar's brush
it is your case....
now, the buttonbar dont have dialog/window feature
it's is a little trick
you need brush the buttonbar with same gradient color after use say with same buttonbar's height and transparent clausule
example
@ 0,100 say oSay Prompt CRLF+CRLF+"Test TRANSPARENT TSAY ON BUTTONBAR" of ::oBar size 400,55 pixel TRANSPARENT
[img:23b3ylp3]http://www.sitasoft.com/fivewin/screen/testsay.png[/img:23b3ylp3] |
transparent say | why on Rpreview I can see a text on buttonbar 2007 no errors ? |
transparent say | Try FixSays( ::oBar:hWnd ) as in rpreview! |
transparent say | I found this solution (it run ok) :
DEFINE FONT oFnt NAME "MS Sans Serif" SIZE 0,-24
DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007
oBar:bPainted = { ||;
DrawText2(oBar:hDC, oFnt:hFont, 1, "Testing on ButtonBar 2007 Office look" ,;
0, 400 , 500, 500, CLR_WHITE ) }
.....
FUNCTION DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color )
LOCAL hFontOld:= SelectObject( hDC, hFont )
LOCAL nBkOld := SetBkMode( hDC, nBkMode )
SetTextColor( hDC, color )
DrawText( hDC, cText, { nTop, nLeft, nTop+nWidth, nLeft+nHeight } )
SelectObject( hDC, hFontOld )
SetBkMode( hDC, nBkOld )
RETURN( NIL ) |
transparent say | [quote="byte-one":q11bxcy5]Try FixSays( ::oBar:hWnd ) as in rpreview![/quote:q11bxcy5]
fixsay not run ok |
transparent say | Hi Silvio:
With included TSButton.ch try this:
[code=fw:2vjxlkgh]<div class="fw" id="{CB}" style="font-family: monospace;"> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">750</span> STSAY <span style="color: #ff0000;">"Testing on ButtonBar 2007 Office look"</span> <span style="color: #0000ff;">OF</span> oBar ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_WHITE <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">PIXEL</span><br /> </div>[/code:2vjxlkgh]Regards.
Manuel Mercado |
transparent y RPreview | Buenas tardes,
Estuve viendo como poner un bitmap como fondo de un diálogo y como usar "transparent" para que los "say" queden con el fondo del bitmap.
Pero, me encuentro con un problema. Si desde ese diálogo, mediante un botón llamo a una rutina de impresión (pudiese ser la testprn3 de FW), esta rutina de impresión no es ejecutada y el programa se cierra abruptamente sin informar errores.
Por el contrario, si le saco la cláusula "transparent", esta rutina de impresión es ejecutada normalmente.
Pongo un pequeño ejemplo:
*----------------------------------------------------------------
#include "fivewin.ch"
function main()
define brush oBrush resource "fondo8"
define dialog oDlg resource 'HOJEAR' brush oBrush transparent
redefine button oBtn10 ;
id 4007 OF oDlg ;
action Imprimo()
activate dialog oDlg valid .t.
return nil
Function Imprimo()
.... aquí la testprn3 como ejemplo
Return nil
*----------------------------------------------------------------
Que podrá ser?. Por el momento lo solucioné no poniendo "transparent" pero los say quedan feísimos.
Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
transparent y RPreview | Parece ser que el problema está en el armado del Preview porque si a la rutina de impresión le saco la claúsula "Preview", funciona correctamente (claro que no puedo tener la vista previa)
ej:
PRINT oPrn NAME "Fallas"+(cAlias)->MODELO PREVIEW ---> no funciona y cierra el programa sin indicar error
PRINT oPrn NAME "Fallas"+(cAlias)->MODELO -----> funciona correctamente
Alguna idea?
Gracias.
Rolando <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> |
transparent y RPreview | Rolando,
Checa este post :
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?p=47034&highlight=#47034">http://fivetechsoft.com/forums/viewtopi ... ght=#47034</a><!-- m -->
Creo que tienes los mismos sintomas <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saludos |
transparent y RPreview | Raymundo,
Muchas gracias por el dato.
Incluí:
function FixSays()
return nil
Y... santo remedio. Además solucionó un problema anterior que no me permitía imprimir a .PDF usando el PdfWriter que trae el Adobe Acrobat 4 que tengo.
En verdad no entiendo que hace esta función porque no está en los help's pero funciona..
Saludos.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
trasparencia de los bmp de btnbmp | Antonio , la trasparencia en los btnbmp que tiene el bitmap en recursos sigue sin funcionar , quizas con el arreglo del bmp anterio sea facil ponerlo .
Me es importante para poder poner los bmp en recursos y que los clientes no los toquen
Saludso. |
trasparencia de los bmp de btnbmp | Jose Luis,
Solucionado <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Hemos publicado un nuevo build que en unos minutos ya se podrá descargar. |
trasparencia de los bmp de btnbmp | Funciona perfecto .
Muchas Gracias. |
trasparent bitmap on xbrowse | [img:2zz7ucw8]https://i.postimg.cc/fyP2PcFM/savv.png[/img:2zz7ucw8]
any solution ? |
trasparent bitmap on xbrowse | Silvio,
2 transparent images
[img:segji7si]http://www.pflegeplus.com/IMAGES/Plus.png[/img:segji7si]
[img:segji7si]http://www.pflegeplus.com/IMAGES/Minus.png[/img:segji7si]
a little bit smaller ( if to heavy )
[img:segji7si]http://www.pflegeplus.com/IMAGES/Plus1.png[/img:segji7si]
[img:segji7si]http://www.pflegeplus.com/IMAGES/Minus1.png[/img:segji7si]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
trasparent bitmap on xbrowse | Thanks
but I wish have the fwbitmaps default
I think Antonio can change it |
trasparent bitmap on xbrowse | The problem is not with bitmaps.
The problem is with the painting of XBrowse.
When we navigate to the cell with arrow-keys with go-up, go-down or go-left, the gap is not visible.
But when we navigate to the cell with go-right or with a mouse click, the gap is visible.
We are looking into it. |
trasparent bitmap on xbrowse | Must I sent you my small test ? |
trasparent bitmap on xbrowse | Not necessary.
I know the problem.
But this takes time. |
trasparent bitmap on xbrowse | i must also resolve the problem on this topic
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37283#p222642">viewtopic.php?f=3&t=37283#p222642</a><!-- l -->
on the oldest app (monouser) it run ok,only I made an operation now I cannot make with tdatabase |
trasparent bitmap on xbrowse | I tested a solution that works in all directions
[quote:2sz9opeg]The problem is not with bitmaps.
The problem is with the painting of XBrowse.
When we navigate to the cell with arrow-keys with go-up, go-down
or go-left, the gap is not visible.
But when we navigate to the cell with go-right or with a mouse click, the gap is visible.[/quote:2sz9opeg]
The test is using a bClrStd-combination
@ 80,20 XBROWSE oBrw SIZE 520, 485 PIXEL OF oDlg2;
DATASOURCE oCust ;
AUTOSORT FOOTERS FASTEDIT ;
COLUMNS "Last", "First", "Age", "Married", "Values1", "Values2" ;
HEADERS "Last ( Index )", "First", "Age", "Married", "Values1", "Values2" ;
COLSIZES 110, 80, 40, 100, 120, 120 COLOR [color=#0000FF:2sz9opeg]nXBrText, nXBrColor[/color:2sz9opeg]
WITH OBJECT oBrw
// painting cell-colors of column 3
:aCols[ 3 ]:bClrStd := {|| PAINT_CELL(oBrw, nRange) }
// xBrowse-color
:bClrStd := { || { If( oCust:Deleted(), CLR_HRED, [color=#0000FF:2sz9opeg]nXBrText[/color:2sz9opeg] ), [color=#0000FF:2sz9opeg]nXBrColor[/color:2sz9opeg] } }
// a defined button
:aCols[ 6 ]:addbmpfile( c_Path1 + "Plus.png" )
:aCols[ 6 ]:lBtnTransparent := .t.
:aCols[ 6 ]:nBtnBmp := 1
:aCols[ 6 ]:nEditType := EDIT_BUTTON
:aCols[ 6 ]:bEditBlock := { | nRow, nCol, oCol, nKey | ;
MsgAlert( "Row : = " + ALLTRIM( STR( oBrw:Keyno() ) ) + CRLF + ;
"Col : = " + ALLTRIM( STR( oBrw:nColSel ) ), "SELECTION" ) }
:CreateFromCode()
END
[img:2sz9opeg]http://www.pflegeplus.com/IMAGES/xBrwbtn6.jpg[/img:2sz9opeg]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
trasparent error in dialog | I want made a dialog trasparent :
the group when traparent
the say control is trasparent but the get control where is ?
I want that the get control be no trasparent
How I can make it?
test file at :
<!-- m --><a class="postlink" href="http://hyperupload.com/download/02a8655f30/CWPOS.zip.html">http://hyperupload.com/download/02a8655 ... S.zip.html</a><!-- m -->
Regards, |
trasparent error in dialog | [quote="Silvio":kn2f1swi]I want made a dialog trasparent :
the group when traparent
the say control is trasparent but the get control where is ?
I want that the get control be no trasparent
How I can make it?
test file at :
<!-- m --><a class="postlink" href="http://hyperupload.com/download/02a8655f30/CWPOS.zip.html">http://hyperupload.com/download/02a8655 ... S.zip.html</a><!-- m -->
Regards,[/quote:kn2f1swi]
#INCLUDE "FiveWin.ch"
#Define CLR_VERMELHO nRGB( 255, 000, 000 )
#Define CLR_AMARELO nRGB( 255, 255, 000 )
FUNCTION Main()
LOCAL cCodice := SPACE(40)
LOCAL oFn1, oBrush, oGroup1, oDlp
DEFINE FONT oFn1 NAME "Arial" SIZE 0, -10
//DEFINE BRUSH oBrush RESOURCE "brick3"
DEFINE BRUSH oBrush FILE "BRICK3.BMP"
DEFINE DIALOG oDlp RESOURCE "test" ;
BRUSH oBrush TRANSPARENT
REDEFINE GROUP oGroup1 ID 51 ;
PROMPT "GROUP BOX " ;
COLOR CLR_VERMELHO, CLR_AMARELO OF oDlp ;
FONT oFn1 TRANSPARENT
REDEFINE GET cCodice ID 117 OF oDlp
ACTIVATE DIALOG oDlp CENTERED RESIZE16
RETURN NIL
FIVEWIN 2.7 FOR XHARBOUR 0.99.61 |
trasparent error in dialog | on my pc not run ok
when I open the dialog I see the group but i not see the gets
[url=http://img83.imageshack.us/my.php?image=errorap9.jpg:26o9mo18][img:26o9mo18]http://img83.imageshack.us/img83/1537/errorap9.th.jpg[/img:26o9mo18][/url:26o9mo18]
Regards, |
trasparent error in dialog | //-> Change in your class GROUP.PRG
#define WM_UPDATEUISTATE 296 // 0x0128 |
trasparent error in dialog | //-> Change in your class GROUP.PRG
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TGroup
local nResult
if ::lDrag .and. nMsg == WM_NCHITTEST // To have a standard behavior on Clicks
return DefWindowProc( ::hWnd, nMsg, nWParam, nLParam )
endif
if nMsg == WM_UPDATEUISTATE // Groups and contained controls were erased when pressing ALT
nResult = Super:HandleEvent( nMsg, nWParam, nLParam )
::oWnd:Refresh()
return nResult
endif
return Super:HandleEvent( nMsg, nWParam, nLParam ) |
trasparent error in dialog | //-> Change in your class GROUP.PRG
METHOD Colors( hDC ) CLASS TGroup
DEFAULT ::nClrText := GetTextColor( hDC ),;
::nClrPane := GetBkColor( hDC ),;
::oBrush := TBrush():New( , ::nClrPane )
SetTextColor( hDC, ::nClrText )
SetBkColor( hDC, ::nClrPane )
if ::oBrush:hBitmap != nil
SetBrushOrgEx( hDC, ::nLeft(), nBmpHeight( ::oBrush:hBitmap ) - ::nTop )
endif
return ::oBrush:hBrush
//-> RECOMPILE YOUR FIVEHX.LIB
Regards, saludos. |
trasparent error in dialog | Silvio, I download your sample and in RC file I saw you define
GroupBox after EditText. Change your tab order to create groupbox first, or change your .rc file to:
[code:k3y5skzw]
test DIALOG 160, 90, 283, 209
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "test trasparent"
FONT 8, "MS Sans Serif"
{
GROUPBOX "I want be trasparent", 51, 4, 127, 277, 66, BS_GROUPBOX
LTEXT "Value:", -1, 9, 166, 24, 8
EDITTEXT 117, 38, 164, 239, 12
}
brick3 BITMAP "d48.bmp"
[/code:k3y5skzw]
Try this and let us know if worked.
Regards from Brazil
Maurilio |
trasparent error in dialog | DEAR Maurilio Viana
YOU' RE A GURUUUUUU very much !!!
look at :http://hyperupload.com/download/0230d88831/printbar.zip.html |
trasparent error in dialog | Silvio,
I'm happy to know it worked fine <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Best regards
Maurilio |
trating | Last two year I build a class but now I lose that class
I have only a oldest test I made :
[code=fw:1t9erjjt]<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;">"Image.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Constant.ch"</span><br /><br /> <span style="color: #00C800;">STATIC</span> <span style="color: #0000ff;">count</span>, pressed, aRate, nValue ,cRate<br /> <span style="color: #00C800;">STATIC</span> Empty_Img,Full_Img,Half_Img,oSay1<br /> <span style="color: #00C800;">STATIC</span> aClicked<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><br /> <span style="color: #00C800;">STATIC</span> img_name<br /> <span style="color: #00C800;">static</span> aImages<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">Local</span> nValore:= RatingBook<span style="color: #000000;">(</span><span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\0</span>07.bmp"</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>nValore<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> RatingBook<span style="color: #000000;">(</span>cBook<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oDlg,oBook<br /><br /><span style="color: #00C800;">Local</span> oCursorBtn :=TCursor<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,<span style="color: #ff0000;">'HAND'</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oFont,oReset<br /><span style="color: #00C800;">Local</span> k<br /><br /><span style="color: #00C800;">Local</span> oBtnConfirm<br /><span style="color: #00C800;">Local</span> img_name<br /><span style="color: #00C800;">Local</span> ncol := <span style="color: #000000;">60</span><br /><span style="color: #00C800;">Local</span> nRow := <span style="color: #000000;">140</span><br /><br /><br /> aRate:= <span style="color: #000000;">{</span><span style="color: #ff0000;">"10%"</span>,<span style="color: #ff0000;">"20%"</span>,<span style="color: #ff0000;">"30%"</span>,<span style="color: #ff0000;">"40%"</span>,<span style="color: #ff0000;">"50%"</span>,<span style="color: #000000;">}</span><br /> pressed := <span style="color: #000000;">0</span><br /><br /> <span style="color: #0000ff;">count</span> := <span style="color: #000000;">5</span><br /><br /> Empty_Img:= <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\E</span>mptyh.bmp"</span><br /> Full_Img:= <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\F</span>ullh.bmp"</span><br /> Half_Img:=<span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\H</span>alfh.bmp"</span><br /> nValue:= <span style="color: #000000;">0</span><br /> cRate := <span style="color: #ff0000;">"0%"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br /><br /><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;">400</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Rating a Book"</span><br /><br />@ <span style="color: #000000;">1</span>,<span style="color: #000000;">5</span> bitmap oBook filename cBook <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">120</span> Noborder <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ nRow, <span style="color: #000000;">3</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"My Rating ("</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">59</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span><br />@ nRow, <span style="color: #000000;">55</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">")"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span><br /><br /><br /> oReset := TUrlLink<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> nRow<span style="color: #000000;">+0.2</span>, <span style="color: #000000;">39</span>, oDlg, .T., .F., oFont, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"Reset"</span> <span style="color: #000000;">)</span><br /> oReset:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> oReset:<span style="color: #000000;">nClrText</span>, oDlg:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">)</span><br /> oReset:<span style="color: #000000;">nClrOver</span> = CLR_RED<br /> oReset:<span style="color: #000000;">bAction</span> = <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span> pressed := <span style="color: #000000;">5</span>, Reset<span style="color: #000000;">(</span>pressed<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> nCol:= <span style="color: #000000;">62</span><br /><br /><br /><br /> @ nRow, nCol <span style="color: #0000ff;">IMAGE</span> aImages<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg FILENAME Empty_Img <span style="color: #0000ff;">PIXEL</span> NOBORDER <span style="color: #0000ff;">CURSOR</span> oCursorBtn <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">1</span>,OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span>,oSay1<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> nCol += <span style="color: #000000;">12</span><br /> @ nRow, nCol <span style="color: #0000ff;">IMAGE</span> aImages<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg FILENAME Empty_Img <span style="color: #0000ff;">PIXEL</span> NOBORDER <span style="color: #0000ff;">CURSOR</span> oCursorBtn <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">2</span>,OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span>,oSay1<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> nCol += <span style="color: #000000;">12</span><br /> @ nRow, nCol <span style="color: #0000ff;">IMAGE</span> aImages<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg FILENAME Empty_Img <span style="color: #0000ff;">PIXEL</span> NOBORDER <span style="color: #0000ff;">CURSOR</span> oCursorBtn <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">3</span>,OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span>,oSay1<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> nCol += <span style="color: #000000;">12</span><br /> @ nRow, nCol <span style="color: #0000ff;">IMAGE</span> aImages<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg FILENAME Empty_Img <span style="color: #0000ff;">PIXEL</span> NOBORDER <span style="color: #0000ff;">CURSOR</span> oCursorBtn <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">4</span>,OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span>,oSay1<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> nCol += <span style="color: #000000;">12</span><br /> @ nRow, nCol <span style="color: #0000ff;">IMAGE</span> aImages<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg FILENAME Empty_Img <span style="color: #0000ff;">PIXEL</span> NOBORDER <span style="color: #0000ff;">CURSOR</span> oCursorBtn <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">5</span>,OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span>,oSay1<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /> @ nRow + <span style="color: #000000;">2</span>, <span style="color: #000000;">135</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">PROMPT</span> cRate <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">COLOR</span> CLR_RED <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br /> oSay1:<span style="color: #000000;">lTransparent</span> := .T.<br /><br /><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMMoved</span>:= <span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">1</span>,OnHoverRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMMoved</span>:= <span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">2</span>,OnHoverRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMMoved</span>:= <span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">3</span>,OnHoverRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMMoved</span>:= <span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">4</span>,OnHoverRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMMoved</span>:= <span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">5</span>,OnHoverRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMLeave</span> :=<span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">1</span>,OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMLeave</span> :=<span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">2</span>,OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMLeave</span> :=<span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">3</span>,OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMLeave</span> :=<span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">4</span>,OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> aImages<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMLeave</span> :=<span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> pressed :=<span style="color: #000000;">5</span>,OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /><br /><br /> <span style="color: #00C800;">FOR</span> k:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">count</span><br /> * img_name := <span style="color: #ff0000;">"Image_"</span>+hb_ntos<span style="color: #000000;">(</span>k<span style="color: #000000;">)</span><br /> aImages<span style="color: #000000;">[</span>k<span style="color: #000000;">]</span>:<span style="color: #000000;">lTransparent</span> := .T.<br /> <span style="color: #00C800;">NEXT</span><br /><br /><br /> @ <span style="color: #000000;">138</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">button</span> oBtnConfirm <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"&Exit"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">action</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">center</span><br /> <span style="color: #00C800;">RETURN</span> nValue<br /><br /><br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> OnHoverRate<span style="color: #000000;">(</span><span style="color: #0000ff;">select</span>,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> j,nValuePressed<br /> <span style="color: #00C800;">Local</span> img_name<br />Reset<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">FOR</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">select</span><br /> * img_name := <span style="color: #ff0000;">"Image_"</span>+hb_ntos<span style="color: #000000;">(</span>j<span style="color: #000000;">)</span><br /> * &img_name:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>Full_Img<span style="color: #000000;">)</span><br /> aImages<span style="color: #000000;">[</span>j<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>Full_Img<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> SetHalf<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span>, <span style="color: #0000ff;">select</span>, aClicked <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">select</span> ><span style="color: #000000;">1</span><br /> nValue:= select<span style="color: #000000;">-1</span><br /> <span style="color: #00C800;">endif</span><br /><br /><br /><br /><br /> nValuePressed:= val<span style="color: #000000;">(</span>aRate<span style="color: #000000;">[</span><span style="color: #0000ff;">select</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> <span style="color: #000000;">-5</span><br /> cRate := str<span style="color: #000000;">(</span>nValuePressed,<span style="color: #000000;">2</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"%"</span><br /> oSay1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> pressed == <span style="color: #000000;">0</span><br /> Reset<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//-------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span>,oSay1<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> k<br /><span style="color: #00C800;">Local</span> img_name<br /><br /><span style="color: #00C800;">IF</span> pressed > <span style="color: #000000;">0</span><br /><br /> Reset<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> k:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> pressed<br /> * img_name := <span style="color: #ff0000;">"Image_"</span>+hb_ntos<span style="color: #000000;">(</span>k<span style="color: #000000;">)</span><br /> * &img_name:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>Full_Img<span style="color: #000000;">)</span><br /> aImages<span style="color: #000000;">[</span>k<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>Full_Img<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> SetHalf<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span>, pressed, aClicked <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /><br /> nValue:=val <span style="color: #000000;">(</span>aRate<span style="color: #000000;">[</span>pressed<span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> cRate := str<span style="color: #000000;">(</span>nValue,<span style="color: #000000;">2</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"%"</span><br /> oSay1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Reset<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> x<br /> <span style="color: #00C800;">Local</span> img_name<br /> <span style="color: #B900B9;">//</span><br /><br /> <span style="color: #00C800;">FOR</span> x:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">count</span><br /> * img_name := <span style="color: #ff0000;">"Image_"</span>+hb_ntos<span style="color: #000000;">(</span>x<span style="color: #000000;">)</span><br /> * &img_name:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>Empty_Img<span style="color: #000000;">)</span><br /><br /> aImages<span style="color: #000000;">[</span>x<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>Empty_Img<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> SetHalf<span style="color: #000000;">(</span><span style="color: #0000ff;">select</span>, nPos, aClicked<span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> j<br /><span style="color: #00C800;">Local</span> img_name<br /><span style="color: #00C800;">FOR</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">select</span><br /> * img_name := <span style="color: #ff0000;">"Image_"</span> + hb_ntos<span style="color: #000000;">(</span>j<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> j = nPos <span style="color: #B900B9;">// the RIGHT clicked full star</span><br /> aClicked<span style="color: #000000;">[</span>nPos<span style="color: #000000;">]</span> := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// clicked-status for the half star, 1 = full</span><br /> * &img_name:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span> Half_Img <span style="color: #000000;">)</span><br /> aImages<span style="color: #000000;">[</span>j<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span> Half_Img <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//-----------------------------------------------------//</span><br /><br /> </div>[/code:1t9erjjt]
we have 3 bitmaps
full.bmp when the star is selected
empty.bmp when the star is not selected
half.bmp when the star is selected middle
the control show a text
My Rating (Reset) with 5 stars
[b:1t9erjjt]reset[/b:1t9erjjt] is the urlink with command to erase the stars function Reset()
[img:1t9erjjt]http://www.iispascalcomiforti.it/wp-content/uploads/2017/02/m.jpg[/img:1t9erjjt]
Someone can help me to build thie class trating ?
I wish create a control as <!-- m --><a class="postlink" href="http://www.devcomponents.com/dotnetbar/RatingControl.aspx">http://www.devcomponents.com/dotnetbar/ ... ntrol.aspx</a><!-- m -->
trying to build the class..
[code=fw:1t9erjjt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNFACE <span style="color: #000000;">15</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Local</span> oDlg,oRating<br /><span style="color: #00C800;">Local</span> oFont<br /><span style="color: #00C800;">Local</span> Empty_Img:= <span style="color: #ff0000;">"Empty.bmp"</span><br /><span style="color: #00C800;">Local</span> Full_Img:= <span style="color: #ff0000;">"Full.bmp"</span><br /><span style="color: #00C800;">Local</span> Half_Img:=<span style="color: #ff0000;">"Half.bmp"</span><br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br /><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;">400</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Test Rating"</span><br /><br />oRating:=TRating<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">10</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">110</span>,<span style="color: #000000;">20</span>,oDlg,Full_Img,Empty_Img,Half_Img<span style="color: #000000;">)</span><br />oRating:<span style="color: #000000;">oFont</span>:= oFont<br /><br /><span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">center</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TRating <span style="color: #0000ff;">From</span> Tcontrol<br /><br /> CLASSDATA lRegistered AS LOGICAL<br /><br /> <span style="color: #00C800;">DATA</span> Full_Img<br /> <span style="color: #00C800;">DATA</span> Empty_Img<br /> <span style="color: #00C800;">DATA</span> Half_Img<br /> <span style="color: #00C800;">DATA</span> aClicked<br /> <span style="color: #00C800;">DATA</span> aImages<br /> <span style="color: #00C800;">DATA</span> lBorder<br /> <span style="color: #00C800;">DATA</span> cCaption<br /> <span style="color: #00C800;">DATA</span> oFont<br /> <span style="color: #00C800;">DATA</span> nClrBorder<br /> <span style="color: #00C800;">DATA</span> nClrText<br /> <span style="color: #00C800;">DATA</span> nClrReset<br /> <span style="color: #00C800;">DATA</span> oReset<br /> <span style="color: #00C800;">DATA</span> nCount<br /> <span style="color: #00C800;">DATA</span> nPressed<br /> <span style="color: #00C800;">DATA</span> nValue<br /> <span style="color: #00C800;">DATA</span> cRate<br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span>nTop,nLeft,nWidth, nHeight,oWnd,Full_Img,Empty_Img,Half_Img<span style="color: #000000;">)</span> CONSTRUCTOR<br /><br /><span style="color: #00C800;">METHOD</span> SetHalf<span style="color: #000000;">(</span><span style="color: #0000ff;">select</span>, nPos<span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> Reset<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> OnHoverRate<span style="color: #000000;">(</span><span style="color: #0000ff;">select</span>,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">BeginPaint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">EndPaint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #000000;">0</span><br /><span style="color: #00C800;">METHOD</span> EraseBkGnd<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">1</span><br /><span style="color: #00C800;">METHOD</span> PaintReset<span style="color: #000000;">(</span> aRect<span style="color: #000000;">)</span><br /><span style="color: #00C800;">METHOD</span> LoadImage<span style="color: #000000;">(</span> cImage <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> MouseMove <span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> LButtonUp <span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> MouseLeave<span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">EndClass</span><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span>nTop,nLeft,nWidth, nHeight,oWnd,cFull_Img,cEmpty_Img,cHalf_Img,nClrBorder,nClrText,nClrPane,lPixel,cCaption,oFont,lBorder,nClrReset<span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">DEFAULT</span> nClrBorder := rgb<span style="color: #000000;">(</span><span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">DEFAULT</span> nClrText := CLR_BLACK<br /> <span style="color: #00C800;">DEFAULT</span> nClrPane := GetSysColor<span style="color: #000000;">(</span> COLOR_BTNFACE <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">DEFAULT</span> lPixel := .T.<br /> <span style="color: #00C800;">DEFAULT</span> cCaption := <span style="color: #ff0000;">"My Rating"</span><br /> <span style="color: #00C800;">DEFAULT</span> lBorder := .f.<br /> <span style="color: #00C800;">DEFAULT</span> nClrReset := CLR_RED<br /><br /> ::<span style="color: #000000;">nTop</span> = nTop<br /> ::<span style="color: #000000;">nLeft</span> = nLeft<br /> ::<span style="color: #000000;">nBottom</span> = nHeight<br /> ::<span style="color: #000000;">nRight</span> = nWidth<br /> ::<span style="color: #000000;">oWnd</span> = oWnd<br /><br /> ::<span style="color: #000000;">cCaption</span> = cCaption<br /><br /><br /> ::<span style="color: #000000;">nId</span> := ::<span style="color: #000000;">GetNewId</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">nStyle</span> = nOr<span style="color: #000000;">(</span> WS_CHILD, WS_VISIBLE, WS_CLIPCHILDREN <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">nClrPane</span> = GetSysColor<span style="color: #000000;">(</span> COLOR_BTNFACE <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nClrText, nClrPane <span style="color: #000000;">)</span><br /><br /><br /><br /> ::<span style="color: #000000;">nClrBorder</span> = nClrBorder<br /> ::<span style="color: #000000;">nClrReset</span> = nClrReset<br /> ::<span style="color: #000000;">nClrText</span> = nClrText<br /><br /><br /> ::<span style="color: #000000;">lBorder</span> = .t. <span style="color: #B900B9;">// lBorder</span><br /> ::<span style="color: #000000;">Register</span><span style="color: #000000;">(</span> nOR<span style="color: #000000;">(</span> CS_VREDRAW, CS_HREDRAW <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">Full_Img</span> = cFull_Img<br /> ::<span style="color: #000000;">Empty_Img</span> = cEmpty_Img<br /> ::<span style="color: #000000;">Half_Img</span> = cHalf_Img<br /><br /> ::<span style="color: #000000;">aImages</span> := array<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span><br /><br /><br /><br /> <span style="color: #00C800;">if</span> oWnd:<span style="color: #000000;">lVisible</span><br /> ::<span style="color: #000000;">Create</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #00C800;">Default</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">lVisible</span> = .t.<br /> oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">(</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">lVisible</span> = .F.<br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">self</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> PaintReset<span style="color: #000000;">(</span> aRect<span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /> <span style="color: #00C800;">Local</span> bAction := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span> pressed := ::<span style="color: #000000;">nCount</span>, ::<span style="color: #000000;">Reset</span><span style="color: #000000;">(</span>pressed<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">Local</span> nWidthCaption := <span style="color: #000000;">5</span> + GetTextWidth<span style="color: #000000;">(</span>::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cCaption</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">oReset</span> := TUrlLink<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+2</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>+nWidthCaption<span style="color: #000000;">+3</span>, <span style="color: #00C800;">Self</span>, .T., .F., ::<span style="color: #000000;">oFont</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"Reset"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// ::cCaption</span><br /> ::<span style="color: #000000;">oReset</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oReset</span>:<span style="color: #000000;">nClrText</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oReset</span>:<span style="color: #000000;">nClrOver</span> = ::<span style="color: #000000;">nClrReset</span><br /> ::<span style="color: #000000;">oReset</span>:<span style="color: #000000;">bAction</span> = bAction<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">local</span> aInfo := ::<span style="color: #000000;">DispBegin</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> aRect := GetClientRect<span style="color: #000000;">(</span>::<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hbrushBorder<br /> <span style="color: #00C800;">Local</span> nWidthCaption := <span style="color: #000000;">45</span> + GetTextWidth<span style="color: #000000;">(</span>::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cCaption</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nRow := <span style="color: #000000;">10</span>,nCol:= <span style="color: #000000;">120</span><br /> <span style="color: #00C800;">local</span> hBmpEmpty := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">local</span> nWBmpEmpty := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">local</span> nHBmpEmpty := <span style="color: #000000;">0</span><br /><br /> hBmpEmpty := ::<span style="color: #000000;">LoadImage</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">Empty_Img</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> hBmpEmpty != <span style="color: #000000;">0</span><br /> nWBmpEmpty := nBmpWidth<span style="color: #000000;">(</span> hBmpEmpty <span style="color: #000000;">)</span><br /> nHBmpEmpty := nBmpHeight<span style="color: #000000;">(</span> hBmpEmpty <span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br /><br />FillSolidRect<span style="color: #000000;">(</span>::<span style="color: #000000;">hDC</span>, aRect, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #B900B9;">// show the border</span><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lBorder</span><br /> hBrushBorder := CreateSolidBrush<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrBorder</span> <span style="color: #000000;">)</span><br /> RoundRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>, aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><span style="color: #000000;">-1</span>, <span style="color: #000000;">9</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hBrushBorder <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><br /><br /> <span style="color: #B900B9;">// show the Urlink</span><br /> SetTextColor <span style="color: #000000;">(</span>::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nClrText</span><span style="color: #000000;">)</span><br /> SetBkMode<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> DrawTextEx<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cCaption</span>+<span style="color: #ff0000;">" ( "</span>, <span style="color: #000000;">{</span>aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+2</span>,aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>,aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><span style="color: #000000;">+40</span>,aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span><span style="color: #000000;">}</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">PaintReset</span><span style="color: #000000;">(</span> aRect<span style="color: #000000;">)</span><br /> DrawTextEx<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #ff0000;">")"</span>, <span style="color: #000000;">{</span>aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>,aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>+nWidthCaption<span style="color: #000000;">-3</span>,aRect<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>,aRect<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span><span style="color: #000000;">}</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br /> nCol:= aRect<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>+nWidthCaption<span style="color: #000000;">+8</span><br /> nRow := aRect<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">+1</span><br /><br /><br /><br /> <span style="color: #B900B9;">// show the stars</span><br /><br /> <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">5</span><br /> ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span> := ::<span style="color: #000000;">LoadImage</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">Empty_Img</span> <span style="color: #000000;">)</span><br /> DrawTransBmp<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>, nRow, nCol, nWBmpEmpty,nHBmpEmpty <span style="color: #000000;">)</span><br /> nCol += <span style="color: #000000;">16</span><br /><br /> * ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span>npressed := <span style="color: #000000;">1</span>, ::<span style="color: #000000;">OnSelectRate</span><span style="color: #000000;">(</span>npressed,<span style="color: #000000;">5</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> * ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>:<span style="color: #000000;">bMMoved</span>:= <span style="color: #000000;">{</span> ||<span style="color: #000000;">(</span> npressed := <span style="color: #000000;">1</span>, ::<span style="color: #000000;">OnHoverRate</span><span style="color: #000000;">(</span>npressed,<span style="color: #000000;">5</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #00C800;">Next</span><br /><br /> ::<span style="color: #000000;">DispEnd</span><span style="color: #000000;">(</span> aInfo <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------------------------------//</span><br /><br /><br /> <span style="color: #00C800;">METHOD</span> LoadImage<span style="color: #000000;">(</span> cImage <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">local</span> hImage := <span style="color: #000000;">0</span><br /><br /> hImage := LoadBitmap<span style="color: #000000;">(</span> GetResources<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, cImage <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> hImage == <span style="color: #000000;">0</span><br /> hImage := ReadBitmap<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, cImage <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span>hImage<span style="color: #000000;">)</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">METHOD</span> OnSelectRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><span style="color: #00C800;">Local</span> k<br />*<span style="color: #00C800;">Local</span> img_name<br /><br /><span style="color: #00C800;">IF</span> pressed > <span style="color: #000000;">0</span><br /><br /> ::<span style="color: #000000;">Reset</span><span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> k:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> pressed<br /> ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>k<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>::<span style="color: #000000;">Full_Img</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> ::<span style="color: #000000;">SetHalf</span><span style="color: #000000;">(</span><span style="color: #0000ff;">count</span>, pressed<span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><br /><br /> * nValue:=val <span style="color: #000000;">(</span>aRate<span style="color: #000000;">[</span>pressed<span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> * cRate := str<span style="color: #000000;">(</span>nValue,<span style="color: #000000;">2</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"%"</span><br /> * oSay1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">METHOD</span> Reset<span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /> <span style="color: #00C800;">Local</span> x<br /> * <span style="color: #00C800;">Local</span> img_name<br /> <span style="color: #B900B9;">//</span><br /><br /> <span style="color: #00C800;">FOR</span> x:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">count</span><br /> ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>x<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>::<span style="color: #000000;">Empty_Img</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /> <span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">METHOD</span> SetHalf<span style="color: #000000;">(</span><span style="color: #0000ff;">select</span>, nPos<span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><span style="color: #00C800;">Local</span> j<br /><br /><span style="color: #00C800;">FOR</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">select</span><br /><br /> <span style="color: #00C800;">IF</span> j = nPos <span style="color: #B900B9;">// the RIGHT clicked full star</span><br /> ::<span style="color: #000000;">aClicked</span><span style="color: #000000;">[</span>nPos<span style="color: #000000;">]</span> := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// clicked-status for the half star, 1 = full</span><br /> ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>j<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">Half_Img</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">METHOD</span> OnLeaveRate<span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">IF</span> pressed == <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">Reset</span><span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> ::<span style="color: #000000;">OnSelectRate</span><span style="color: #000000;">(</span>pressed,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">METHOD</span> OnHoverRate<span style="color: #000000;">(</span><span style="color: #0000ff;">select</span>,<span style="color: #0000ff;">count</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /> <span style="color: #00C800;">Local</span> j<br /><br />::<span style="color: #000000;">Reset</span><span style="color: #000000;">(</span><span style="color: #0000ff;">count</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">FOR</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">select</span><br /><br /> ::<span style="color: #000000;">aImages</span><span style="color: #000000;">[</span>j<span style="color: #000000;">]</span>:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">(</span>::<span style="color: #000000;">Full_Img</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /><br /> ::<span style="color: #000000;">SetHalf</span><span style="color: #000000;">(</span><span style="color: #0000ff;">count</span>, <span style="color: #0000ff;">select</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* IF select >1<br /> nValue:= select-1<br /> endif<br /><br /> nValuePressed:= val(aRate[select])-5<br /> cRate := str(nValuePressed,2)+"%"<br /> oSay1:Refresh()<br /> */</span><br /><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> MouseMove <span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /><br /><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span> <span style="color: #B900B9;">// (Super:MouseMove( nRow, nCol, nKeyFlags ))</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> LButtonUp <span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> MouseLeave<span style="color: #000000;">(</span> nRow, nCol, nFlags <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRating<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DrawTransBmp<span style="color: #000000;">(</span> hDC, hBmp, nRow, nCol, nWidth, nHeight <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> hDCMem, hBmpOld, nOldClr, nZeroZeroClr<br /><br /> <span style="color: #00C800;">DEFAULT</span> nWidth := nBmpWidth<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>, nHeight := nBmpHeight<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br /><br /> hDCMem = CreateCompatibleDC<span style="color: #000000;">(</span> hDC <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">// we can not get nZeroZeroClr from hDC is possible hDC are locked by other SelectObject</span><br /> <span style="color: #B900B9;">// An application cannot select a bitmap into more than one device context at a time.</span><br /> hBmpOld = SelectObject<span style="color: #000000;">(</span> hDCMem, hBmp <span style="color: #000000;">)</span><br /> nZeroZeroClr = GetPixel<span style="color: #000000;">(</span> hDCMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> SelectObject<span style="color: #000000;">(</span> hDCMem, hBmpOld <span style="color: #000000;">)</span><br /> DeleteDC<span style="color: #000000;">(</span> hDCMem <span style="color: #000000;">)</span><br /><br /> nOldClr = SetBkColor<span style="color: #000000;">(</span> hDC, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> TransBmp<span style="color: #000000;">(</span> hBmp, nBmpWidth<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>, nBmpHeight<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>, nZeroZeroClr, hDC, ;<br /> nCol, nRow, nWidth, nHeight <span style="color: #000000;">)</span><br /> SetBkColor<span style="color: #000000;">(</span> hDC, nOldClr <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:1t9erjjt] |
trbGroup.prg | Painting Error that I detected since FWH10.2 'til FWH12.04
Line 652:
[code=fw:24mn8lcj]<div class="fw" id="{CB}" style="font-family: monospace;">GradientFill<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nHeight</span> * <span style="color: #000000;">0.05</span>, ::<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">2</span>, ::<span style="color: #000000;">nHeight</span> * <span style="color: #000000;">0.95</span>, ::<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">1</span>, ;</div>[/code:24mn8lcj]
Should be:
[code=fw:24mn8lcj]<div class="fw" id="{CB}" style="font-family: monospace;">GradientFill<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nHeight</span> * <span style="color: #000000;">0.05</span>, ::<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nHeight</span> * <span style="color: #000000;">0.95</span>, ::<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">1</span>, ;</div>[/code:24mn8lcj]
[img:24mn8lcj]http://www.mayapos.com/FiveWin/clave.png[/img:24mn8lcj] |
trbtn | this class run ok also on fwppc ? |
trbtn | Silvio,
No, not yet |
trbtn | Class TBtnBmp |
trbtn | and wich class I must use in ppc to change bmp on a button ? |
tree ayuda como dejo el fondo transparente | tree como dejo el fondo transparente deacuerdo a la imagen no aparesca el blanco si no el otro fondo.
[code=fw:w3ba4rah]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> rep_tree1<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Funciona</span><br /><span style="color: #00C800;">Local</span> oDlg, oTree, oImageList ,oBrush, taltu,tanch,tpmen,tmenu,t2007,oTipmod,oDatos<br /><span style="color: #00C800;">Local</span> aContl<span style="color: #000000;">[</span><span style="color: #000000;">20</span><span style="color: #000000;">]</span><br /><br /> <span style="color: #00C800;">if</span> memvar->x_ms2007;t2007 :=.T.;else;t2007 := .F.;endif<br /> tmepos := memvar->x_psmenu<br /> <span style="color: #00C800;">if</span> memvar->x_psmenu=<span style="color: #ff0000;">"0"</span>;taltu:=<span style="color: #000000;">26</span>;tanch:=<span style="color: #000000;">27</span>;tpmen:=<span style="color: #ff0000;">"TOP"</span>;endif<br /> <span style="color: #00C800;">if</span> memvar->x_psmenu=<span style="color: #ff0000;">"1"</span>;taltu:=<span style="color: #000000;">26</span>;tanch:=<span style="color: #000000;">20</span>;tpmen:=<span style="color: #ff0000;">"RIGHT"</span>;endif<br /> <span style="color: #00C800;">if</span> memvar->x_psmenu=<span style="color: #ff0000;">"2"</span>;taltu:=<span style="color: #000000;">26</span>;tanch:=<span style="color: #000000;">20</span>;tpmen:=<span style="color: #ff0000;">"LEFT"</span>;endif<br /> <span style="color: #00C800;">if</span> memvar->x_psmenu=<span style="color: #ff0000;">"3"</span>;taltu:=<span style="color: #000000;">26</span>;tanch:=<span style="color: #000000;">27</span>;tpmen:=<span style="color: #ff0000;">"BOTTOM"</span>;endif<br /> <span style="color: #00C800;">if</span> memvar->x_msperson;tmenu:=<span style="color: #000000;">1</span>;else;tmenu:=<span style="color: #000000;">0</span>;endif<br /> aContl:=<span style="color: #000000;">{</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,tmenu,<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">385</span>,<span style="color: #000000;">35</span>,t2007,tmepos,taltu,tanch,tpmen,<span style="color: #000000;">0</span>,memvar->x_tmotor,<span style="color: #000000;">0</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">0</span>,memvar->x_tfado,oTipmod<span style="color: #000000;">}</span><br /><br /> <span style="color: #B900B9;">// Sample suggested by Antonio Linares, and modified by Julio Llin s </span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TREE"</span><br /><span style="color: #B900B9;">// par_diag(oDtree,3,1,1) //(oDlgxx,nbrush,ncolor,ndisp) //ndisp no se esta usando</span><br /> oImageList = TImageList<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"REG_SALIR"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"OK"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"REG_PRINTER"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRINTER"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"RPV"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"EXCEL"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"REG_BROW"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"REG_CANC"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"BOLVERD"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">(</span> TBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"BOLAMAR"</span>,, oDlg <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> <br /><br /> oTree := TTreeView<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">(</span> <span style="color: #000000;">100</span>,oDlg,<span style="color: #000000;">0</span>,GetSysColor<span style="color: #000000;">(</span> <span style="color: #000000;">5</span> <span style="color: #000000;">)</span>, .T. ,<span style="color: #ff0000;">"ll"</span> <span style="color: #000000;">)</span><br /> oTree:<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">{</span> | nRow, nCol, nKeyFlags | MyClick<span style="color: #000000;">(</span> nRow, nCol, oTree, oDlg,oDatos,aContl <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <br /> oTree:<span style="color: #000000;">cToolTip</span> := OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Doble Click Para Ejecutar Proceso "</span> <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// ACTIVATE DIALOG oDlg CENTERED ON INIT AddItems( oTree, oImageList ) </span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> AddItems<span style="color: #000000;">(</span> oTree, oImageList,oDlg,oDatos,aContl <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span> <br /><br /><br /><span style="color: #B900B9;">// aArrayi 1=Si Es clase = C , 2= Nombre Programa, 3= Nombre Modulo para permisos , 4= Opcion para permiso</span><br /><span style="color: #B900B9;">// 5= Nombre archivo Xls 6= Nombre Ventana Browser 7=Tipo Browser Eje 3 xbrowser 8= Menu Barra Browser </span><br /><span style="color: #B900B9;">// 9= Trama Filas Browser, 10 = Fondo brower para imagenes, 11= Por definir, 12 = Ventana de condiciones para la consulta</span><br /><br />******************************************************************************** <br /><span style="color: #00C800;">Function</span> AddItems<span style="color: #000000;">(</span> oTree, oImageList,oDlg ,oDatos,aContl <span style="color: #000000;">)</span> <br />******************************************************************************** <br /> <span style="color: #00C800;">local</span> oItem01, oItem0, oItem1, oItem2, oItem3, oItem4, oItem5, oItem6, oItem7, oItem8, oItem9<br /> <span style="color: #00C800;">local</span> oItem1_1<br /> <span style="color: #00C800;">local</span> oItem11, oItem111, oItem12, oItem121, oItem13 , oItem131<br /> <span style="color: #00C800;">local</span> oItem21, oItem31 , oItem41, oItem51, oItem61, oItem71 , oItem81, oItem91, oItem101<br /><br /> oTree:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">(</span> oImageList <span style="color: #000000;">)</span> <br /> <br /> oItem0 = oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Opciones"</span>,<span style="color: #000000;">7</span><span style="color: #000000;">)</span><br /> oItem01 = oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Salir o Cerrar "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">)</span>;oItem01:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"SALIR"</span><span style="color: #000000;">}</span><br /><br /> oItem1 = oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Catalogos"</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// "Cargo" set a Checkbox control </span><br />**<br /> oItem1_1 = oItem1:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Contable"</span>, <span style="color: #000000;">9</span><span style="color: #000000;">)</span><br /> oItem11 = oItem1_1:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Representante de Ventas"</span>, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Reporte Windows"</span>, <span style="color: #000000;">2</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0009_1"</span>,<span style="color: #ff0000;">"PROG_VENDED"</span>,;<br /> <span style="color: #ff0000;">"R1"</span>,<span style="color: #ff0000;">"xls0009.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Reporte Dos"</span>, <span style="color: #000000;">3</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0009_1"</span>,<span style="color: #ff0000;">"PROG_VENDED"</span>,;<br /> <span style="color: #ff0000;">"R2"</span>,<span style="color: #ff0000;">"xls0009.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Reporte Excel"</span>, <span style="color: #000000;">5</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0009_1"</span>,<span style="color: #ff0000;">"PROG_VENDED"</span>,;<br /> <span style="color: #ff0000;">"R4"</span>,<span style="color: #ff0000;">"xls0009.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Consulta"</span>, <span style="color: #000000;">6</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0009_1"</span>,<span style="color: #ff0000;">"PROG_VENDED"</span>,;<br /> <span style="color: #ff0000;">"C0"</span>,<span style="color: #ff0000;">"xls0009.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /><br /> oItem11 = oItem1_1:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Zonas de Ventas"</span>, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Reporte Windows"</span>, <span style="color: #000000;">2</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0008_1"</span>,<span style="color: #ff0000;">"PROG_ZONAV"</span>,;<br /> <span style="color: #ff0000;">"R1"</span>,<span style="color: #ff0000;">"xls0008.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Reporte Dos"</span>, <span style="color: #000000;">3</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0008_1"</span>,<span style="color: #ff0000;">"PROG_ZONAV"</span>,;<br /> <span style="color: #ff0000;">"R2"</span>,<span style="color: #ff0000;">"xls0008.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Reporte Excel"</span>, <span style="color: #000000;">5</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0008_1"</span>,<span style="color: #ff0000;">"PROG_ZONAV"</span>,;<br /> <span style="color: #ff0000;">"R4"</span>,<span style="color: #ff0000;">"xls0008.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /> oItem111 = oItem11:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Consulta"</span>, <span style="color: #000000;">6</span><span style="color: #000000;">)</span>;oItem111:<span style="color: #000000;">Cargo</span>:=<span style="color: #000000;">{</span><span style="color: #ff0000;">"C"</span>,<span style="color: #ff0000;">"PXP0008_1"</span>,<span style="color: #ff0000;">"PROG_ZONAV"</span>,;<br /> <span style="color: #ff0000;">"C0"</span>,<span style="color: #ff0000;">"xls0008.xls"</span>,<span style="color: #ff0000;">"BROW_LISTA"</span>,X_TIPBROW,<span style="color: #ff0000;">"1"</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #000000;">0</span><span style="color: #000000;">}</span><br /><br /> </div>[/code:w3ba4rah]
ver imagen
<!-- m --><a class="postlink" href="http://img829.imageshack.us/img829/6826/treea.jpg">http://img829.imageshack.us/img829/6826/treea.jpg</a><!-- m --> |
tree control needed | Does anyone have a working tree control for FW and xHarbour. Or has anyone successfully compiled Goran Savckic's Tree for use with xHarbour, if so could you be so kind as to email me a copy please.
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
Thanks in Advance
Gerry |
tree control needed | Here you go:
[url:153dtodp]http://www.google.d2g.com/tree32.zip[/url:153dtodp] |
tree control needed | Here you go:
[url:9u6zp7ja]http://www.google.d2g.com/tree32.zip[/url:9u6zp7ja] |
tree control needed | The library is not compatible it say Treeview.c was compiled by older version pcode 4 is no longer support - please recompile?
Cheers
Gerry |
tree control needed | I think the source code (PRG & C) is included, if not, let me know which version of FW are you using, and I can recompile it. |
tree control needed | That would be great Rene I have version 2.3.
Cheers and much appreciated.
Gerry |
tree control needed | What version of (x)HB are you currently using ? |
tree control needed | 0.99.3 is the xHarbour build. Oh and I use the BCC Version. |
tree control needed | Hi, Could you post the source? I'd like to recompile for xhb builder
Thx,
Alex |
tree control needed | FUNCTION eng0504(itemid1)
local oWnd1, oBar, oTree, oBmp1, oBmp2, odb1
private oImageList
DEFINE WINDOW oWnd1 FROM 3, 0 TO 30, 105 ;
TITLE "物料 "+ALLTRIM(itemid1) + " 树型BOM展开表"
oImageList = TImageList():New()
oBmp1 = TBitmap():Define( "folder",, oWnd )
oBmp2 = TBitmap():Define( "fldMask",, oWnd)
oImageList:Add( oBmp1, oBmp2 )
oTree = TTreeView():New( 3, 0, oWnd1)
oTree:bChanged = { || eng050401( oTree:GetSelected()) }
oTree:SetImageList( oImageList )
oItem = oTree:Add(itemid1)
odb1:=oServer:Query("select bom2.itemidc itemidc,goods2.descrip descrip,unit.unit unit,substring(bom2.mem,1,25) mem,bom2.qty/bom2.qtydevisor/(1-ifnull(bom2.scraprate,0)/100) qty,bom1.version version";
+" from bom1,bom2,goods2";
+" left outer join unit on unit.itemid=bom2.itemidc and unit.unitid=bom2.unitid";
+" where bom1.itemid='"+itemid1+"' and bom1.startdate<=curdate() and bom1.enddate>=curdate() and bom2.itemid='"+itemid1+"' and bom2.version=bom1.version and goods2.itemid=bom2.itemidc ")
while !odb1:EOF()
oItem:Add(odb1:itemidc+" "+odb1:descrip+" "+odb1:unit+" "+padl(cvaltochar(odb1:qty),nqtylen," ")+" V"+alltrim(odb1:version)+" "+odb1:mem)
odb1:SKIP()
enddo
oWnd1:oClient:=oTree
oTree:Expand()
SET MESSAGE OF oWnd1 TO "BOM树型展开表" FONT ofont14
ACTIVATE WINDOW oWnd1 VALID (oBmp1:End(),oBmp2:End(),.t.)
odb1:end()
oImageList:End()
oBmp1:End()
oBmp2:End()
return
FUNCTION eng050401(oItem)
local odb1
if LEN(oItem:aItems)=0
odb1:=oserver:Query("select bom2.itemidc itemidc,goods2.descrip descrip,unit.unit unit,substring(bom2.mem,1,25) mem,bom2.qty/bom2.qtydevisor/(1-ifnull(bom2.scraprate,0)/100) qty,bom1.version version ";
+" from bom1,bom2,goods2 ";
+" left outer join unit on unit.itemid=bom2.itemidc and unit.unitid=bom2.unitid";
+" where bom1.itemid='"+LEFT(oitem:cprompt,nitemidlen)+"' and bom1.startdate<=curdate() and bom1.enddate>=curdate() and bom2.itemid='"+LEFT(oitem:cprompt,nitemidlen)+"' and bom2.version=bom1.version and goods2.itemid=bom2.itemidc ")
while !odb1:EOF()
oItem:Add(odb1:itemidc+" "+odb1:descrip+" "+odb1:unit+" "+STR(odb1:qty*val(substr(oitem:cprompt,nitemidlen+len(odb1:descrip)+len(odb1:unit)+4,nqtylen)),nqtylen,nqtydec)+" V"+odb1:version+" "+odb1:mem)
odb1:SKIP()
enddo
oitem:expand()
odb1:end()
endif
return |
tree control needed | I'm actually looking for the source to tree32.lib, so I can rebuild for xHarbour builder.
Alex |
tree control needed | I have the source for V5 but do not know how or what to change. The C files are what is the problem. |
tree control needed | I can recompile the c with xharbour builder |
tree control needed | Where would you like me to send it..... |
tree control needed | Please send to
alexs at quicksoftware dot co dot za |
tree control needed | Done - check your mail. |
tree en xbrowse | Compañeros, tengo un tree en un xbrowse ( ver imagen ). Necesitaría saber a que nodo pertenece el registro seleccionado. En este ejemplo el concepto "ENS. EXTRAPROGRAMATICA" pertenece a "OWDIEJCZUK ZOE ELUNEI" . Alguien sabe el método para ubicarlo ? Desde ya muchísimas gracias.
[img:51c09147]http://i68.tinypic.com/2zid89f.jpg[/img:51c09147]
Saludos |
tree in a dialog with multiples dialogs | How I can create a tree on sx with multiple dialog at dx as a setup configuration dialog ? ( see the picture)
[img:x60otnqk]https://s8.postimg.org/wx3bolg2d/image.jpg[/img:x60otnqk] |
tree in a dialog with multiples dialogs | +1 |
tree in a dialog with multiples dialogs | I found testtre4.prg but it is on Window I wish on Dialog |
tree in a dialog with multiples dialogs | Silvio,
it is possible to paint a dialog on dialog to display something selected from the tree
the SPLITTER is replaced with a sub-dialog connected to the main-dialog.
You tested < testtre4.prg > as a solution. I changed window with dialog that was Your question.
[quote:sg92cmzx]I found testtre4.prg but it is on Window I wish on Dialog[/quote:sg92cmzx]
You have to call the buildtree-function on maindialog INIT using sample < testtre4.prg >
replace
[color=#FF0000:sg92cmzx]DEFINE WINDOW oWnd FROM 3, 6 TO 20, 70 ;
TITLE "Welcome to " + FWVERSION COLOR "N/W" [/color:sg92cmzx]
with
[color=#0000FF:sg92cmzx]DEFINE DIALOG oDlgMain FROM 10, 10 TO 360, 450 PIXEL TRUEPIXEL ;
FONT oFont TITLE "MULTIPLE DIALOGS with tree" [/color:sg92cmzx]
[color=#004040:sg92cmzx]
..
..
ACTIVATE DIALOG oDlgMain CENTERED ;
ON INIT ( BUILDTREE( oTree ), ;
...
...[/color:sg92cmzx]
[color=#0000FF:sg92cmzx]FUNCTION BUILDTREE( oTree )
oItem1 := oTree:Add( "Page - 1", 1 )
oItem1:Cargo = {|| CleanSlate( oDlgChild )}
oItem1:Add( "Sub 1", 1 ):Cargo := {|| SHOW_CHILD1() }
oTree:Add( "Page - 2", 1 ):Cargo := {|| SHOW_CHILD2() }
RETURN NIL [/color:sg92cmzx]
[img:sg92cmzx]http://www.pflegeplus.com/IMAGES/Testtree1.jpg[/img:sg92cmzx]
everything is possible : data display on different locations
[img:sg92cmzx]http://www.pflegeplus.com/IMAGES/Testtree2.jpg[/img:sg92cmzx]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
tree in a dialog with multiples dialogs | pls read good my message to charles.. |
tree in a dialog with multiples dialogs | Silvio,
where is this message
<!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[quote:1yb4d3rg]pls read good my message to charles..[/quote:1yb4d3rg]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
tree in a dialog with multiples dialogs | sorry I wrote to manuelcalero
I ask to make another thing... the dialog on my picture have a dialog with scroll
I'm sorry but there are many times that someone pretends not to understand or does it special to make me waste time
such as the "crop" program. you've bolted your shoes all the way to want to use the tgroup class while the solution was another and much simpler, that is to draw with the mouse a dotted box. Sometimes I let you do but know that doing this is wrong...
.....to turn the window into dialog... do you think I am not capable?
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=34872&start=0">viewtopic.php?f=6&t=34872&start=0</a><!-- l --> |
tree in a dialog with multiples dialogs | Silvio,
People in this forum are only trying to help other people !!
Nobody can give total solutions, but parts and mostly they come with a solution.
Not all answers can be given, but keep this please in mind. They are only trying to help !!
With this kind of posts, i'm afraid that users could react : I don't care, and the nobody will get any help anymore.
Marc
Keep up the good work folks ! I benified a lot of all of your post's ;;;; |
tree in a dialog with multiples dialogs | Good Marc....criticisms are good to improve
When I want to give help to someone, if I do not know the answer, I do not answer other suggestions !!!
Example :
If one wants black coffee and I suggest a glass of wisky ... it's not the same thing ...
But you said that people are trying to help, well I helped find a bottle of wisky and not looking for coffee ...
is it this the spirit?
I'm sorry I did not know that a forum is a place where one asks "A" and answers "B" ...
Now that I am aware of what is a forum ... I'm quieter!!
.:: did you read all my posts?... well then you've certainly learned something ::...
NB: When a topic concerns me only, I'm sure I have no answers ... when it will affect the community ... then you will see that everyone will race to be the most beautiful of the chicken ... |
tree in a xbrowse (SOLVED) | I have a tree in a xbrowse (see picture) . He needs to know which node belongs to the selected record. In this example the " ENS . EXTRAPROGRAMATICA " concept belongs to " OWDIEJCZUK ZOE ELUNEI " . Anyone know the method to locate ? From already thank you very much .
[img:27knatgx]http://i68.tinypic.com/2zid89f.jpg[/img:27knatgx]
Regards |
tree in a xbrowse (SOLVED) | oParentItem := oBrw:oTreeItem:Parent() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.