topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
xbrowse fwh2006 sqlrdd erro | desculpa pessoal
como esse erro não acontecia antes, pensei que fosse por conta da nova versão.
o problema eh que na tela que faço backup dos xml (segunda tela) fecha a tabela Exml->(dbCloseArea()) e o xbrawse(Exml) estando aberto corretamente apresenta o erro.
em resumo, ERRO MEU
obrigado a todos |
xbrowse fwh2006 sqlrdd erro | Thanks for clarifying that the problem is not with xbrowse. |
xbrowse fwh2006 sqlrdd erro | XBROWSE lento com grande volume de dados versão 2006
tive que voltar para a versão 1912 <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
amanha posto video com a diferença das duas versões |
xbrowse fwh2006 sqlrdd erro | [quote="Sistem":sqe46610]XBROWSE lento com grande volume de dados versão 2006
tive que voltar para a versão 1912 <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
amanha posto video com a diferença das duas versões[/quote:sqe46610]
You are right. We understand the reason.
Please wait, we will provide a workaround.
Meanwhile, please let us know the number of records in the DBF being browsed. |
xbrowse fwh2006 sqlrdd erro | usando SQLRDD
Tabela 110.000 registros
seek esta demorado um pouco (1912 normal)
PageDown pressionando 10x seguidos trava o xbrowse por 20segundos
PageUP não trava, mais esta mais lento que a versão 1912 |
xbrowse fwh2006 sqlrdd erro | Yes, please help us to improve.
After defining the browse, can you please set
[code=fw:jtjv58af]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">bKeyNo</span> := <span style="color: #000000;">{</span> |n| <span style="color: #000000;">0</span> <span style="color: #000000;">}</span><br /> </div>[/code:jtjv58af]
This should make the Browse work same way as in FWH1912.
Can you please do this and let us know?
Meanwhile, we will also create a 110,000 size table at our end and test.
Can you also let us know if your database is on local server or cloud server over internet? |
xbrowse fwh2006 sqlrdd erro | nageswaragunupudi,
local server
[code=fw:3cfqzic0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ x,y <span style="color: #0000ff;">xbrowse</span> oBrw...<br />...<br />..<br />oBrw:<span style="color: #000000;">bKeyNo</span> := <span style="color: #000000;">{</span> |n| <span style="color: #000000;">0</span> <span style="color: #000000;">}</span><br /> </div>[/code:3cfqzic0]
continua da mesma maneira, Não funcionou.
PageDown Trava
seek 4segundos (fwh1912 super rapido) |
xbrowse fwh2006 sqlrdd erro | [code=fw:2j7h9oj0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">bKeyNo</span> := <span style="color: #000000;">{</span> |n| <span style="color: #000000;">0</span> <span style="color: #000000;">}</span><br /> </div>[/code:2j7h9oj0]
Is the code in FWH1912.
We tried to replace this oBrw:bKeyNo in FWH2006 to support Vertical Scrollbars. This is the only change. This is the reason for delay and we will try our best to improve it.
But if we assign oBrw:bKeyNo := { |n| 0} the behaviour should be identical to FWH1912.
We are also again checking with large tables here, but we will be glad if you can check this once again. |
xbrowse fwh2006 sqlrdd erro | veja o video até o fim...fwh2006
<!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=idPUiCoupeI">https://www.youtube.com/watch?v=idPUiCoupeI</a><!-- m -->
fwh1912 normal |
xbrowse fwh2006 sqlrdd erro | xbrowse FWH1912 funciona bem
<!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=GdKJm51aVLQ">https://www.youtube.com/watch?v=GdKJm51aVLQ</a><!-- m --> |
xbrowse fwh2006 sqlrdd erro | Thanks for the videos.
We will get back to you very soon. |
xbrowse fwh2006 sqlrdd erro | This is my email:
nageswaragunupudi [at] gmail [dot] com
Please write an email to me.
When I am ready with changes, I can send the revised xbrowse.prg to you for testing and feedback. |
xbrowse fwh2006 sqlrdd erro | Please send me an email or give me your email.
I want to send you a revised xbrowse.prg for your testing and feedback. |
xbrowse fwh2006 sqlrdd erro | nageswaragunupudi
jhnsnlb3 [at] gmail [dot] com
obrig. |
xbrowse fwh2006 sqlrdd erro | hi nageswaragunupudi
you saw the email i sent |
xbrowse gradient cell colors | we can set a gradient color for each cell ? |
xbrowse gradient cell colors | Doesn't it work like that?
¿No funciona así?
[code=fw:1e4vr2os]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">3</span> <span style="color: #B900B9;">// Marquee style (row selected) 0 No Marquee 1 Dotted cell 2 Solid cell 3 Highlight cell 4 Highlight row & Raise Cell 5 Highlight row 6 Highlight row & multiselect </span><br /><br />or<br /><br />oBrw:<span style="color: #000000;">bClrRowFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">231</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />or<br /><br />oCol:<span style="color: #000000;">bClrSelFocus</span> := <....><br /><br /><br /><br /> </div>[/code:1e4vr2os]
or
[url:1e4vr2os]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19153&p=100728&hilit=color+celda#p100728[/url:1e4vr2os]
or
[url:1e4vr2os]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=15326&p=79502&hilit=color+en+celda+xbrowse#p79502[/url:1e4vr2os]
C:\FWH..\SAMPLES\XBROWGRD.PRG
Regards, saludos. |
xbrowse gradient cell colors | [quote="karinha":1u6lo44a]Doesn't it work like that?
¿No funciona así?
[code=fw:1u6lo44a]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">3</span> <span style="color: #B900B9;">// Marquee style (row selected) 0 No Marquee 1 Dotted cell 2 Solid cell 3 Highlight cell 4 Highlight row & Raise Cell 5 Highlight row 6 Highlight row & multiselect </span><br /><br />or<br /><br />oBrw:<span style="color: #000000;">bClrRowFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">150</span>,<span style="color: #000000;">231</span>,<span style="color: #000000;">255</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />or<br /><br />oCol:<span style="color: #000000;">bClrSelFocus</span> := <....><br /><br /><br /><br /> </div>[/code:1u6lo44a]
or
[url:1u6lo44a]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19153&p=100728&hilit=color+celda#p100728[/url:1u6lo44a]
or
[url:1u6lo44a]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=15326&p=79502&hilit=color+en+celda+xbrowse#p79502[/url:1u6lo44a]
C:\FWH..\SAMPLES\XBROWGRD.PRG
Regards, saludos.[/quote:1u6lo44a]
Please
I ask [b:1u6lo44a][size=150:1u6lo44a]gradient color [/size:1u6lo44a][/b:1u6lo44a] not only two colors , allready now I have the two colors as you can see here
[img:1u6lo44a]https://i.postimg.cc/RFGNfGGG/l.png[/img:1u6lo44a]
but it not is gradient |
xbrowse gradient cell colors | [quote="Silvio.Falconi":34m75lf6]we can set a gradient color for each cell ?[/quote:34m75lf6]
[code=fw:34m75lf6]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <clrtext>, <aGradient> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span></div>[/code:34m75lf6] |
xbrowse gradient cell colors | [code=fw:39wu8cgt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aRowGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> </div>[/code:39wu8cgt]
Regards, saludos. |
xbrowse gradient cell colors | [quote="nageswaragunupudi":3gb8hvzv][quote="Silvio.Falconi":3gb8hvzv]we can set a gradient color for each cell ?[/quote:3gb8hvzv]
[code=fw:3gb8hvzv]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> <clrtext>, <aGradient> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span></div>[/code:3gb8hvzv][/quote:3gb8hvzv]
Nages,
I tried to make gradient cell color
[img:3gb8hvzv]https://i.postimg.cc/wBjJzNtj/grad.png[/img:3gb8hvzv]
I made ( I have the colors on ini file and load it on a array)
[code=fw:3gb8hvzv]<div class="fw" id="{CB}" style="font-family: monospace;"> aadd<span style="color: #000000;">(</span> aTmpColors, <span style="color: #000000;">{</span>aText<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>, <span style="color: #000000;">{</span>aBack<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>,aGradient<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">}</span><span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:3gb8hvzv]
but this is not a pretty sight or probably I am wrong something and I do not have the right effect I want to give, for example the gradient I see it vertical, how can I modify it to give it a more beautiful shape?
then I tried with
[code=fw:3gb8hvzv]<div class="fw" id="{CB}" style="font-family: monospace;">nClr1:=aGradient<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><br /> nClr2:=aBack<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><br /> aadd<span style="color: #000000;">(</span> aTmpColors, <span style="color: #000000;">{</span> aText<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>, <span style="color: #000000;">{</span><span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, nClr1,nClr2 <span style="color: #000000;">}</span>,<span style="color: #000000;">{</span><span style="color: #000000;">0.5</span>, nClr2,nClr1<span style="color: #000000;">}</span>, .F. <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:3gb8hvzv]
and I had this result
[img:3gb8hvzv]https://i.postimg.cc/prmMMsvJ/g2.png[/img:3gb8hvzv]
with
[code=fw:3gb8hvzv]<div class="fw" id="{CB}" style="font-family: monospace;">nClr1:=aGradient<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><br /> nClr2:=aBack<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><br /> aadd<span style="color: #000000;">(</span> aTmpColors, <span style="color: #000000;">{</span> aText<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>, <span style="color: #000000;">{</span><span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, nClr1,nClr2 <span style="color: #000000;">}</span>,<span style="color: #000000;">{</span><span style="color: #000000;">0.5</span>, nClr2,nClr1<span style="color: #000000;">}</span>, .t. <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:3gb8hvzv]
I had this result
[img:3gb8hvzv]https://i.postimg.cc/rs13k3bW/g.png[/img:3gb8hvzv] |
xbrowse gradiente con bitmap | Al incluir que la fila selecciona del browse se muestre con el fondo en gradiente los bitmap del mismo se muestran con un fondo negro:
[img:1pydqlid]http://img25.imageshack.us/img25/8656/xbrwbitmap.png[/img:1pydqlid]
Si en el mismo browse quito el gradiente y lo dejo con un color solido de fondo para la fila selecciona, funciona correctamente.
Con el gradiente y obrw:lTransparent := .T. tambien funciona bien pero no muestra el color indicado en bclrstd.
[code=fw:1pydqlid]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oRs</span><>NIL .and. ::<span style="color: #000000;">oRs</span>:<span style="color: #000000;">AbsolutePosition</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">{</span> CLR_BLACK, CLR_BRWFONDO1 <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> CLR_BLACK, CLR_BRWFONDO2<span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:1pydqlid] |
xbrowse gradiente con bitmap | Alpha bitmaps are painted correctly over gradient rows, but not normal bitmaps.
You may try this fix to xbrowse.prg:
Locate the following code in xbrowse.prg in method PaintData.
[code=fw:118au376]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> SetAlpha<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. aBitmap<span style="color: #000000;">[</span> BITMAP_ALPHA <span style="color: #000000;">]</span><br /> ABPaint<span style="color: #000000;">(</span> hDC, nBmpCol, nBmpRow,aBitmap<span style="color: #000000;">[</span> BITMAP_HANDLE <span style="color: #000000;">]</span>, ::<span style="color: #000000;">nAlphaLevel</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> <span style="color: #B900B9;">// transparent bitmaps with brush</span><br /> </div>[/code:118au376]
Please change the last line as:
[code=fw:118au376]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lTransparent</span> .or. ValType<span style="color: #000000;">(</span> aColors<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">'A'</span> <br /> </div>[/code:118au376]
With this change non-alpha bitmaps are also painted correctly on gradient rows. |
xbrowse gradiente con bitmap | Muchas gracias por la respuesta.
Ya no muestra el borde negro pero lo muestra con el color de fondo del browse
[img:11m12s9q]http://img180.imageshack.us/img180/8656/xbrwbitmap.png[/img:11m12s9q]
De todas formas trataré de trabajar con imagenes alpha. |
xbrowse gradiente con bitmap | If you want to solve this issue also, please do one more correction to xbrowse.prg method PaintData
Locate this line:
[code=fw:36itt5ce]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #B900B9;">// Paint bitmaps</span><br /> <span style="color: #00C800;">DEFAULT</span> aBitmap<span style="color: #000000;">[</span> BITMAP_ZEROCLR <span style="color: #000000;">]</span> := GetZeroZeroClr<span style="color: #000000;">(</span> hDC, aBitmap<span style="color: #000000;">[</span> BITMAP_HANDLE <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> </div>[/code:36itt5ce]
Please remove "DEFAULT".
Revised code is:
[code=fw:36itt5ce]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #B900B9;">// Paint bitmaps</span><br /> aBitmap<span style="color: #000000;">[</span> BITMAP_ZEROCLR <span style="color: #000000;">]</span> := GetZeroZeroClr<span style="color: #000000;">(</span> hDC, aBitmap<span style="color: #000000;">[</span> BITMAP_HANDLE <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> </div>[/code:36itt5ce]
Now for testing, I am posting here a modified xbrowgrd.prg from samples folder:
[code=fw:36itt5ce]<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> aRowGrad, aSelGrad, aStdGrad<br /><br /> <span style="color: #00C800;">local</span> n := RGB<span style="color: #000000;">(</span> <span style="color: #000000;">157</span>, <span style="color: #000000;">248</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /><br /> XbrNumFormat<span style="color: #000000;">(</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">)</span><br /><br /> aRowGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">251</span>,<span style="color: #000000;">220</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">221</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">251</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">221</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">251</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">251</span>,<span style="color: #000000;">220</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> aSelGrad := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">224</span>,<span style="color: #000000;">126</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">193</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">193</span><span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span><span style="color: #000000;">255</span>,<span style="color: #000000;">224</span>,<span style="color: #000000;">126</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUST<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 /> <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 FWH 9.12'</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;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> COLUMNS <span style="color: #ff0000;">'FIRST'</span>, <span style="color: #ff0000;">'HIREDATE'</span>, <span style="color: #ff0000;">'MARRIED'</span>, <span style="color: #ff0000;">'SALARY'</span> ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> LINES NOBORDER<br /><br /> oBrw:<span style="color: #000000;">Married</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Default FWH Bitmap is Alpha</span><br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">First</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\o</span>pen2.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// non-alpha bitmap</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 /> END<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">HireDate</span><br /> :<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\A</span>lphabmp<span style="color: #000000;">\t</span>ask.bmp'</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// alpha</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 /> END<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> :<span style="color: #000000;">nMarqueeStyle</span> := <span style="color: #000000;">4</span><br /> :<span style="color: #000000;">bClrSelFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aSelGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrRowFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, aRowGrad <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> END<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 /> 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 /> </div>[/code:36itt5ce]
Before corrections:
[url=http://img214.imageshack.us/my.php?image=xbrbmp1.jpg:36itt5ce][img:36itt5ce]http://img214.imageshack.us/img214/5337/xbrbmp1.jpg[/img:36itt5ce][/url:36itt5ce]
Column 1 is normal bitmap and columns 2 and 3 are Alpha bitmaps.
After making the two corrections to xbrowse.prg
[url=http://img130.imageshack.us/my.php?image=xbrbmp2.jpg:36itt5ce][img:36itt5ce]http://img130.imageshack.us/img130/9315/xbrbmp2.jpg[/img:36itt5ce][/url:36itt5ce]
The TWO corrections should solve the issue. Please check with your bitmaps and I hope you will get acceptable result.
In any case we get a better appearance with Alpha Bitmaps. |
xbrowse gradiente con bitmap | Muchas gracias por toda la ayuda
He cambiado las imagenes a Alpha y mejora mucho la visión de las mismas.
Lo que he notado es que la imagen parece que muestra un pequeño borde
[img:1wl2k403]http://img405.imageshack.us/img405/8656/xbrwbitmap.png[/img:1wl2k403]
La columna la defino:
[code=fw:1wl2k403]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> IMG1_CHECKON, IMG1_CHECKOFF <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:1wl2k403] |
xbrowse gradiente con bitmap | Perdón por la tardanza en contestar.
Aplicando los cambios que mencionas, las imagenes de 24 bits se muestran perfectamente
Muchas gracias por tu ayuda. |
xbrowse header | can I insert two lines on header of xbrowse ?
sample :
oCol:cHeader := OemToAnsi( "line1")+CRLF+"line2"
How I can make it ? |
xbrowse header | [code:3snu4pzl]
oBrw:nHeaderLines := 2
...
oCol:cHeader := OemToAnsi( "line1")+CRLF+"line2"[/code:3snu4pzl] |
xbrowse header | THANKS |
xbrowse header bug | [img:z5zhv5kj]http://img546.imageshack.us/img546/5967/errhead.jpg[/img:z5zhv5kj]
I use a empty column to select the rows to print or another selection
when I click on header , the xbrowse class give me this image , I think it should be viewed differently in the presence of columns with empty headers |
xbrowse header refresh() | Los colegas no puede dar un refresco en el encabezado en tiempo de ejecución
Ex:
[code=fw:1hjob0zn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FIGURA1"</span> <span style="color: #000000;">)</span> <br />oCol<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FIGURA2"</span> <span style="color: #000000;">)</span> <br />oCol<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nHeadBmpno</span> := IIF<span style="color: #000000;">(</span>cidade_1->fina1,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> <br /> </div>[/code:1hjob0zn]
si cambia el valor a fina1. f, y para actualizar no se actualiza, tengo que dejar de navegar y venir de nuevo
de ninguna manera las obras
oBrw:refresh()
oBrw:refresh(.t.)
oBrw:bChange:={|| oBrw:refresh() }
Gracias
Luiz Fernando
FWH 9.11 - XHARBOUR 1.2 |
xbrowse header refresh() | Resolvido
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=16621">http://www.fivewin.com.br/forum/topic.a ... C_ID=16621</a><!-- m -->
Gracias
Luiz Fernando |
xbrowse header refresh() | This works:
[code=fw:2h0dd5w9]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">{</span> || oCol:<span style="color: #000000;">nHeadBmpno</span> := IIF<span style="color: #000000;">(</span>cidade_1->fina1,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:2h0dd5w9] |
xbrowse header size | How I can see the size of each header with a click ? |
xbrowse header size | [quote="Silvio":3na1zly7]How I can see the size of each header with a click ?[/quote:3na1zly7]
Hello Silvio!
Try this implementation at method HeaderLButtonUp at the end of implementation of original code...
[code:3na1zly7]
METHOD HeaderLButtonUp( nMRow, nMCol, nFlags ) CLASS TXBrwColumn
...
nCol := ::oBrw:MouseColPos( nMCol ) // if the column header was clicked... more than 0, was clicked!
IF nCol > 0 .AND. !lDragged && if not for swapping the column
oCol := ::oBrw:colAtPos( nCol ) // returns the object columns that was clicked
alert( oCol:nWidth )
ENDIF
RETURN
[/code:3na1zly7] |
xbrowse header size | thanks
But I remember there was a xbrowse method made it
I remember of a utility of Otto made it and created the source od each column...
where i can found it ? |
xbrowse header size | <!-- m --><a class="postlink" href="http://www.fwcodesnips.com/">http://www.fwcodesnips.com/</a><!-- m -->
.Snipkeeper
Download snipkeeper + xBTool
Here are videos how to use it:
<!-- m --><a class="postlink" href="http://www.atzwanger.com/fwvideo/xbtool/xBToolSelFont.html">http://www.atzwanger.com/fwvideo/xbtool ... lFont.html</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.atzwanger.com/fwvideo/xBTool2.html">http://www.atzwanger.com/fwvideo/xBTool2.html</a><!-- m -->
Regards,
Otto |
xbrowse header size | thanks
but I remember there was an command to use on xbrowse :
I used it and the when I finished to set all columns size I rem this command
this commando shoed the column size when I drag each column : it shoed a message on video with the size variable and I not Know where I take it !!! |
xbrowse header size | have a look into:
func f_SaveState(oBrw)
in the testxbr.prg. |
xbrowse header size | [quote="Silvio":14in9ikf]thanks
But I remember there was a xbrowse method made it
I remember of a utility of Otto made it and created the source od each column...
where i can found it ?[/quote:14in9ikf]
Exists the method GetDisplayColsWidth( aSizes )... but, internally, it is the same structure... Think fine! |
xbrowse headers fwh 10.1 | Strange behaviour in method paintheader (columns)
if the first column is a bmp (image) , the headers are not painted when the browse is displayed, as soon as you click on any element (header or line item) , the headers get properly displayed.
This only occur if first column is a bitmap and there is no value assigned to the header.
Assigning any value to the header (non blank) will make the browse display normally.
Anyone noticed this before ?
Richard |
xbrowse headers fwh 10.1 | For me it is working correctly with FWH 10.1 also.
This is the sample I tested.
[code=fw:2c6i3et4]<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<br /> use sales<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;">200</span> <span style="color: #0000ff;">PIXEL</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;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'SALES'</span> CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">''</span><br /> :<span style="color: #000000;">AddBmpFile</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>ddrec.bmp'</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">nHeadBmpNo</span> := <span style="color: #000000;">1</span><br /> END<br /><br /><br /> oBrw:<span style="color: #000000;">CreatefromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2c6i3et4]
Result:
[url=http://img38.imageshack.us/my.php?image=xbrbmp.jpg:2c6i3et4][img:2c6i3et4]http://img38.imageshack.us/img38/103/xbrbmp.jpg[/img:2c6i3et4][/url:2c6i3et4]
Can you please reproduce the problem you experienced in small self-contained sample? |
xbrowse help | Hi all,
How i can avoid xbrowse jumps to another column when i press <enter>, cause i want to use a enter key to another thing.
Thanks in advance. |
xbrowse help | Have you tried:
oBrw:bKeyChar:=...
Regards,
James |
xbrowse help | [quote="Wanderson":3hyi5whw]Hi all,
How i can avoid xbrowse jumps to another column when i press <enter>, cause i want to use a enter key to another thing.
Thanks in advance.[/quote:3hyi5whw]
You can try:
::lEnterKey2Edit := .F. |
xbrowse help | Please,
I want different colours in this xbrowse.
aItem is an array that contains folders
Gray folder that does non exist and white existing folder
[code=fw:3ldisjeb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">1</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ARRAY aItem HEADER <span style="color: #ff0000;">"Select folder"</span> <span style="color: #0000ff;">AUTOCOLS</span> CELL LINES <span style="color: #0000ff;">FONT</span> oFont<br /><br /> oBrw:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> CLR_BLUE, IIF<span style="color: #000000;">(</span> <span style="color: #000000;">[</span>b<span style="color: #000000;">]</span>lIsDir<span style="color: #000000;">(</span> aItem<span style="color: #000000;">[</span> oBrw:<span style="color: #000000;">nPos</span> <span style="color: #000000;">]</span> <span style="color: #000000;">[</span>/b<span style="color: #000000;">]</span><span style="color: #000000;">)</span> , CLR_HGRAY, CLR_WHITE <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /> </div>[/code:3ldisjeb]
This is the second time I use xbrowse...
Please...
bye |
xbrowse help | solved! |
xbrowse help | Thanks but doesn't work.
See the images above, first i search in browse and select the record, second i press <enter> in record to transfer to another empty browser, its ok but look in image 2 the first browse jumps to second column, i want to avoid this.
[img:2ljmpsj9]http://imageshack.com/a/img27/464/gt31.jpg[/img:2ljmpsj9]
[img:2ljmpsj9]http://imageshack.com/a/img29/6038/ks1h.jpg[/img:2ljmpsj9]
Thanks in advance. |
xbrowse help | Wanderson,
Did you ever solve this?
I found this in the xbrowse.prg file:
[code=fw:1c4pz2k6]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">DATA</span> nMoveType; <span style="color: #B900B9;">// 1 Move Right</span><br /> AS NUMERIC <span style="color: #B900B9;">// 2 Move Left</span><br /> <span style="color: #B900B9;">// 3 Move Up</span><br /> <span style="color: #B900B9;">// 4 Move down</span><br /> <span style="color: #B900B9;">// 5 No Move</span><br /> <span style="color: #B900B9;">// 6 Move Right with lFastedit features, only work with lFastEdit := .t.</span><br /> <span style="color: #B900B9;">// 7 Move left with lFastedit features, only work with lFastEdit := .t.</span><br /> </div>[/code:1c4pz2k6]
So it seems like doing:
[code=fw:1c4pz2k6]<div class="fw" id="{CB}" style="font-family: monospace;">nMoveType:= <span style="color: #000000;">5</span></div>[/code:1c4pz2k6]
Might solve your problem.
Regards,
James |
xbrowse help | James
In your pre or post xBrowse code blocks you can tell the cursor to go to any column ..
oBrw:nColsel(5) // 5 is the column to jump to
Rick Lipkin |
xbrowse hide columns problem | Hello,
I have a problem when hide columns in a xbrowse()
I have 64 columns.
When the user is pressing a button, I want to show only 32 columns, so I hide the last 32 columns.
[code=fw:3wra59sr]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">oHScroll</span>:<span style="color: #000000;">SetRange</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span>, <span style="color: #000000;">32</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">33</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">64</span><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span>i<span style="color: #000000;">]</span>:<span style="color: #000000;">hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">NEXT</span> i<br />oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:3wra59sr]
So far so good, now it shows only 32 columns, but if I scroll completely to the right column, or press CTRL-RIGHT, I get a error.
Do I missing something? I already set the range to 32, but is seems this is not enough <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Thanks. |
xbrowse hide columns problem | Marc,
I use Fhwx 1204 and this code don't give me any error: (I have 34 cols)
[code=fw:2n69y59q]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">For</span> n := <span style="color: #000000;">15</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">)</span><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Next</span><br /> oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:2n69y59q]
Saludos. |
xbrowse hide columns problem | Francisco,
Thank you for your reply.
Running the code don't give an error.
The error only occurs after running the code and the scrolling completely to the right and then pressing the arrow.
[img:34t590lv]http://www.vms.be/FW/xbr.bmp[/img:34t590lv]
The version I use is still FW710. In the testxbrw.prg example, I don't get the error when I hide the columns by right-clicking the header and hide a column, so I don't think that it is an error in the release..
Thanks |
xbrowse hide columns problem | Hi,
I just found that in the example I get the same error, if I hide the last column!
It is solved in the new release? |
xbrowse hide columns problem | Hi,
Does anyone known what is changed to solved this problem.
The problem is that it's a big existing program that I have to modify, and I'm afraid that I use an newer version of FWH, I will have othe problems... |
xbrowse hide columns problem | [quote:3nnv6k1i]or press CTRL-RIGHT, I get a error.
[/quote:3nnv6k1i]
I can not say what was wrong with the old version, but with latest version, I do not get any error when the right most columns are hidden. |
xbrowse image | Hi,
How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.
Thanks.
Wanderson. |
xbrowse image | Hello Wanderson,
[code=fw:2xljoqmg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #B900B9;">//---------------- Imágen ---------------</span><br /> oCol := :<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #000000;">6001</span> <span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #000000;">6002</span> <span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span>|| IIf<span style="color: #000000;">(</span> ::<span style="color: #000000;">oDbfTemp</span>:<span style="color: #000000;">c_nohist</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">lBmpStretch</span> := .f.<br /> oCol:<span style="color: #000000;">lBmpTransparent</span> := .t.<br /> oCol:<span style="color: #000000;">nHeadStrAlign</span> := oCol:<span style="color: #000000;">nDataBmpAlign</span> := AL_CENTER<br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"P"</span><br /> oCol:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">18</span><br /> <span style="color: #B900B9;">//----------------------------------------</span></div>[/code:2xljoqmg] |
xbrowse image | [quote="Wanderson":dzktjrbp]Hi,
How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.
Thanks.
Wanderson.[/quote:dzktjrbp]
After including this logical column also in the xbrowse in the usual way
[code=fw:dzktjrbp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"RESOURCENAME"</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:dzktjrbp] |
xbrowse image | [quote="jmartial":2j1rrwyy]Hello Wanderson,
[code=fw:2j1rrwyy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #B900B9;">//---------------- Imágen ---------------</span><br /> oCol := :<span style="color: #000000;">AddCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #000000;">6001</span> <span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">AddResource</span><span style="color: #000000;">(</span> <span style="color: #000000;">6002</span> <span style="color: #000000;">)</span><br /> oCol:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">{</span>|| IIf<span style="color: #000000;">(</span> ::<span style="color: #000000;">oDbfTemp</span>:<span style="color: #000000;">c_nohist</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oCol:<span style="color: #000000;">lBmpStretch</span> := .f.<br /> oCol:<span style="color: #000000;">lBmpTransparent</span> := .t.<br /> oCol:<span style="color: #000000;">nHeadStrAlign</span> := oCol:<span style="color: #000000;">nDataBmpAlign</span> := AL_CENTER<br /> oCol:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"P"</span><br /> oCol:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">18</span><br /> <span style="color: #B900B9;">//----------------------------------------</span></div>[/code:2j1rrwyy][/quote:2j1rrwyy]
Thanks, works great! |
xbrowse image | [quote="nageswaragunupudi":2s4vync3][quote="Wanderson":2s4vync3]Hi,
How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.
Thanks.
Wanderson.[/quote:2s4vync3]
After including this logical column also in the xbrowse in the usual way
[code=fw:2s4vync3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"RESOURCENAME"</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:2s4vync3][/quote:2s4vync3]
Thank you! |
xbrowse in FW 1002 | Hello
I have this when I click on the last header
[url=http://img710.imageshack.us/i/immaginerz.jpg/:b0eyjo2b][img:b0eyjo2b]http://img710.imageshack.us/img710/4537/immaginerz.jpg[/img:b0eyjo2b][/url:b0eyjo2b]
Regards Maurizio |
xbrowse in FW 1002 | Maurizio,
We are unable to reproduce it here.
Could you please provide us a small self contained example to reproduce it ? thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
xbrowse in FW 1002 | Antonio ,
the problem is the vertical scrollbar
this is the code [code=fw:283aa7mt]<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<br /><br /> USE CUSTOMER <br /><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;">"Test"</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:283aa7mt]
And this is the RC
[code=fw:283aa7mt]<div class="fw" id="{CB}" style="font-family: monospace;">LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US<br /><br />TEST <span style="color: #0000ff;">DIALOG</span> DISCARDABLE <span style="color: #000000;">68</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">336</span>, <span style="color: #000000;">213</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style="color: #ff0000;">"Test"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">{</span><br /> CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"Edit"</span>, WS_VSCROLL|WS_BORDER|WS_TABSTOP, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">335</span>, <span style="color: #000000;">182</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:283aa7mt] |
xbrowse in FW 1002 | In the RC file, please replace "Edit" with "TXBrowse". It works correctly with this change. Behavior is the same in previous versions also. |
xbrowse in FW 1002 | Rao
Thank |
xbrowse in FW 1002 | Dear Rao,
Very good observation <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
xbrowse in FWH7.10 from resource | Hello,Until now I allways use TWBrowse and TSBrowse, but I want to use xBrowse. Is still have FWH7.10. I saw some examples in the sample-directory, but no for creating it from resource.Is that also possible?Thanks,Marc |
xbrowse in FWH7.10 from resource | Marc,Yes, you can use xbrowse from resources.We do recommend you to upgrade to current FWH 8.10, as there are many changes in Class TXBrowse from version 7.10. Now it is much simpler and easier to be used. i.e. you can do:REDEFINE XBROWSE oBrw ID ... OF ... same as you do with TWBrowse. |
xbrowse in FWH7.10 from resource | Thanks Antonio,I found a solution in the forum that works with FWH7.10Regards,Marc |
xbrowse in a Toolbar? | Is it possible to place an xbrowse on a toolbar?
[code=fw:16zscv6e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br /> <span style="color: #0000ff;">DEFINE</span> REBAR oReBar <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> TOOLBAR oToolBar <span style="color: #0000ff;">OF</span> oReBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">58</span> IMAGELIST oImageList BALLOON <span style="color: #B900B9;">// tooltips balloon style</span><br /><br />...<br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">535</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ARRAY <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"two"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">AUTOCOLS</span> HEADERS <span style="color: #ff0000;">"Schedules"</span><br /> </div>[/code:16zscv6e]
So far I haven't had any luck. The xbrowse does not display. Perhaps we can't place an xbrowse on a toolbar?
My purpose is to have a multi-select list. I'm thinking an xbrowse would be a nice solution.
Thank you, |
xbrowse in a Toolbar? | Reinaldo,
can you build a compilable and runnable sample, please?
EMG |
xbrowse in a Toolbar? | Enrico;
Good idea. Here is a reduced self-contained sample:
[code=fw:28qaidl7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Start<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">LOCAL</span> oImageList, orebar, oToolBar, oBrw, oWnd<br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MDI</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> IMAGELIST oImageList <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">32</span>, <span style="color: #000000;">32</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> IMGBITMAP <span style="color: #0000ff;">OF</span> oImageList <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ViewCal132"</span> <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">(</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> REBAR oReBar <span style="color: #0000ff;">OF</span> oWnd<br /><br /> <span style="color: #0000ff;">DEFINE</span> TOOLBAR oToolBar <span style="color: #0000ff;">OF</span> oReBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">58</span> IMAGELIST oImageList BALLOON <span style="color: #B900B9;">// tooltips balloon style</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> TBBUTTON <span style="color: #0000ff;">of</span> oToolBar <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"only testing"</span> <span style="color: #000000;">)</span> <br /><br /> <span style="color: #0000ff;">DEFINE</span> TBSEPARATOR <span style="color: #0000ff;">OF</span> oToolBar<br /><br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">535</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ARRAY <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"two"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">AUTOCOLS</span> HEADERS <span style="color: #ff0000;">"Header1"</span><br /><br /> oReBar:<span style="color: #000000;">InsertBand</span><span style="color: #000000;">(</span> oToolBar <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <br /> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /> </div>[/code:28qaidl7] |
xbrowse in a Toolbar? | Probably you might have forgotten oBrw:CreateFromCode()
This sample code worked for me:
[code=fw:1qgtlbjn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> XBrwOnToolBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oReBar, oBar, oBrw<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> <span style="color: #0000ff;">DEFINE</span> REBAR oReBar <span style="color: #0000ff;">OF</span> oWnd<br /><br /> <span style="color: #0000ff;">DEFINE</span> TOOLBAR oBar <span style="color: #0000ff;">OF</span> oReBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">58</span> BALLOON <span style="color: #B900B9;">// tooltips balloon style</span><br /><br /> @ <span style="color: #000000;">01</span>, <span style="color: #000000;">535</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ARRAY <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"two"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">57</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">AUTOCOLS</span> HEADERS <span style="color: #ff0000;">"Schedules"</span> CELL<br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">lRecordSelector</span> := .f.<br /> :<span style="color: #000000;">lHScroll</span> := .f.<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> oRebar:<span style="color: #000000;">InsertBand</span><span style="color: #000000;">(</span> oBar <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1qgtlbjn] |
xbrowse in a Toolbar? | Rao;
ooops.
Thank you. |
xbrowse in a Toolbar? | Maybe a colored rounded border needed ( can have a shadow ) ?
[img:1od8ao40]http://www.pflegeplus.com/IMAGES/Bar1.jpg[/img:1od8ao40]
[code=fw:1od8ao40]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">2</span>, <span style="color: #000000;">650</span> <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">68</span> <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">PIXEL</span> SHADOWSIZE <span style="color: #000000;">0</span><br />oTitle:<span style="color: #000000;">lRound</span> := .T. <span style="color: #B900B9;">// Round </span><br />oTitle:<span style="color: #000000;">lTransparent</span> := .F.<br />oTitle:<span style="color: #000000;">lBorder</span> := .F.<br />oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</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;">1</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br /><br />@ <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ARRAY <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"two"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">57</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">AUTOCOLS</span> HEADERS <span style="color: #ff0000;">"Schedules"</span> CELL<br />WITH OBJECT oBrw<br /> :<span style="color: #000000;">lRecordSelector</span> := .f.<br /> :<span style="color: #000000;">lHScroll</span> := .f.<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />END<br /> </div>[/code:1od8ao40]
[img:1od8ao40]http://www.pflegeplus.com/IMAGES/Bar2.jpg[/img:1od8ao40]
[code=fw:1od8ao40]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">2</span>, <span style="color: #000000;">650</span> <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">154</span>, <span style="color: #000000;">62</span> <span style="color: #0000ff;">OF</span> oToolBar <span style="color: #0000ff;">PIXEL</span> SHADOW bottomright SHADOWSIZE <span style="color: #000000;">10</span> <br />oTitle:<span style="color: #000000;">lRound</span> := .F. <span style="color: #B900B9;">// Round </span><br />oTitle:<span style="color: #000000;">lTransparent</span> := .F.<br />oTitle:<span style="color: #000000;">lBorder</span> := .F.<br />oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #000000;">1</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br /><br />@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ARRAY <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"one"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"two"</span> <span style="color: #000000;">}</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"three"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">57</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">AUTOCOLS</span> HEADERS <span style="color: #ff0000;">"Schedules"</span> CELL<br />WITH OBJECT oBrw<br /> :<span style="color: #000000;">lRecordSelector</span> := .f.<br /> :<span style="color: #000000;">lHScroll</span> := .f.<br /> :<span style="color: #000000;">lHeader</span> := .f.<br /> :<span style="color: #000000;">nStretchCol</span> := <span style="color: #000000;">1</span><br /> <span style="color: #B900B9;">//</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />END<br /> </div>[/code:1od8ao40]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
xbrowse in a Toolbar? | Rao,
How about removing the header? is it possible?
Thank you,
Reinaldo. |
xbrowse in a Toolbar? | [quote="reinaldocrespo":32mt5lqe]Rao,
How about removing the header? is it possible?
Thank you,
Reinaldo.[/quote:32mt5lqe]
oBrw:lHeader := .f. |
xbrowse in a Toolbar? | Rao,
Yes!
Thank you.
However... as I look at the result, I'm thinking perhaps I should place a multi-selectable dropdown listbox. Can you make a recommendation for a multi-selectable dropdown combobox style control?
Again, thank you. |
xbrowse in a Toolbar? | A combobox is more suitable for this kind of interface than xbrowse.
Unfortunately, combobox does not support multiple selection, as far as I know.
Both listbox and xbrowse support multiple selection and listbox looks more elegant here than xbrowse. But both suffer from the limitation that their display is clipped by the size of the parent window ( In this case, the ToolBar ).
Alternative-1:
Have a Get with Bitmap Button (down arrow is the best) on the toolbar displaying the selected options. This gives a familiar look of a combobox.
The button action is to create a simple list box with multiple selection option, precisely positioned below the Get. The parent window is the parent window of the Rebar. We take care of the display coordinates of the listbox at runtime inside the button-action. We also provide a way to close the listbox. When closed, the selected options are displayed by the Get.
The idea is to give a look and feel of a dropdown combobox with multiple selection.
Alternative-2:
Much simpler.
One of the toolbar buttons to have a drop-down menu with selected items checked.
I prefer the second alternative.
There can probably many other alternative approaches but this strikes to my mind immediately. |
xbrowse in a Toolbar? | This is a sample using 2nd alternative. I used buttonbar instead of rebar, but can be adopted to rebars too.
[code=fw:1hi016qb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> TestSel<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oFont<br /> <span style="color: #00C800;">local</span> aItems := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span>, <span style="color: #ff0000;">"Four"</span> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> aSel := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Three"</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;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> oFont <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">64</span> <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">(</span> aSel <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> aSel <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Select"</span>, FW_ArrayAsList<span style="color: #000000;">(</span> aSel, <span style="color: #ff0000;">", "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">{</span> || ItemMenu<span style="color: #000000;">(</span> aItems, aSel <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">ACTION</span> This:<span style="color: #000000;">ShowPopup</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ItemMenu<span style="color: #000000;">(</span> aItems, aSel <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oPop, cPrompt<br /><br /> <span style="color: #0000ff;">MENU</span> oPop <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br /> <span style="color: #00C800;">FOR</span> EACH cPrompt IN aItems<br /> <span style="color: #0000ff;">MENUITEM</span> cPrompt <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> AScan<span style="color: #000000;">(</span> aSel, o:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, .t. <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oMenuItem:<span style="color: #000000;">lChecked</span>, ;<br /> <span style="color: #000000;">(</span> ADel<span style="color: #000000;">(</span> aSel, AScan<span style="color: #000000;">(</span> aSel, oMenuItem:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span>, .t. <span style="color: #000000;">)</span>, ;<br /> oMenuItem:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ;<br /> <span style="color: #000000;">(</span> AAdd<span style="color: #000000;">(</span> aSel, oMenuItem:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">)</span>, ;<br /> oMenuItem:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">return</span> oPop<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:1hi016qb]
Note: Specifying a codeblock as prompt of a button is possible with recent versions of FWH. In older versions as well as toolbars, we need to keep modifying the prompt and refresh as and when required during runtime. |
xbrowse in a Toolbar? | Rao,
Yes, that will do perfectly. Thank you very much.
Reinaldo. |
xbrowse in a Toolbar? | Excuse me for interrupting but can someone explain what "This:" is for and when to use it? TIA
[code=fw:2swoivr7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> aSel <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Select"</span>, FW_ArrayAsList<span style="color: #000000;">(</span> aSel, <span style="color: #ff0000;">", "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">{</span> || ItemMenu<span style="color: #000000;">(</span> aItems, aSel <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">ACTION</span> This:<span style="color: #000000;">ShowPopup</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:2swoivr7] |
xbrowse in a Toolbar? | [quote="hua":wuwmkkrf]Excuse me for interrupting but can someone explain what "This:" is for and when to use it? TIA
[code=fw:wuwmkkrf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Empty<span style="color: #000000;">(</span> aSel <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Select"</span>, FW_ArrayAsList<span style="color: #000000;">(</span> aSel, <span style="color: #ff0000;">", "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">MENU</span> <span style="color: #000000;">{</span> || ItemMenu<span style="color: #000000;">(</span> aItems, aSel <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">ACTION</span> This:<span style="color: #000000;">ShowPopup</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:wuwmkkrf][/quote:wuwmkkrf]
In this case, This refers to the button (tbtnbmp()) object.
From a reading of command translate "DEFINE BUTTON OF oBar" in fivewin.ch, we see that "ACTION This:ShowPopup()" will be translated by the pre-processor as { |This| This:ShowPopop() } |
xbrowse in a Toolbar? | I see. Thanks for the explanation Rao |
xbrowse listbox | Günther,
[quote:1ms6yma8]I have a Listbox in xbrowse with items leading a,b,c,...
Now i will press z.B. c,... , the cursor turns to the third item and the
i will automatically evaluate the bPostedit and leave the listbox to next cell![/quote:1ms6yma8]
the solution You are looking for <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
You can move to the next column or next row ( the sample moves to the next column and same row )
[img:1ms6yma8]http://www.pflegeplus.com/IMAGES/Cellfocus1.jpg[/img:1ms6yma8]
[color=#0000FF:1ms6yma8][b:1ms6yma8]1. a Listbox in xbrowse with items leading a,b,c
2. selected with dblclick or return. exit with esc or button
3. automatically evaluated the bPostedit and leaves the listbox to next cell[/b:1ms6yma8][/color:1ms6yma8]
do You want to move to the next column ( focus ) or simply down to the next row <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xbrowse listbox | I have a Listbox in xbrowse with items leading a,b,c,...
Now i will press z.B. c,... , the cursor turns to the third item and then i will automatically evaluate the bPostedit and leave the listbox to next cell!
Have anyone a solution for this? |
xbrowse listbox | Uwe,
[quote:3ohc858x]2. selected with dblclick or return. exit with esc or button[/quote:3ohc858x]
only with type a or b..... WITHOUT to press return or dblclick. |
xbrowse listbox | Günther,
to the next column or next row
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
xbrowse listbox | Uwe, next column! |
xbrowse listbox | Günther,
that belongs to my test.
the next column can be in edit-mode or just getting the focus
I'm still working on the called function [color=#0000FF:2u6it4jd]MyCellDlg( ..[/color:2u6it4jd]
that will calculate the needed overall-size in relation to the defined items.
WITH OBJECT :aCols[ 3 ]
:nEditType := EDIT_BUTTON
:bEditBlock := { | nRow, nCol, oCol, nKey | Retvalue := MyCellDlg( oBrw, nRow, nCol, oCol, nKey ), ;
IIF( Retvalue <> NIL, ( oCust:City := Retvalue, oBrw:RefreshCurrent(), [color=#0000FF:2u6it4jd]oBrw:GoRight() [/color:2u6it4jd]), NIL ) }
END
[color=#0000FF:2u6it4jd]next column[/color:2u6it4jd]
:aCols[ 4 ]:nEditType = EDIT_GET
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
xbrowse maketotals fwh 10.1 | Hello
I can't have footers drawn on a browse where i need to total just the last column (6)
I am surely missing something,
Thanks for the help
[code=fw:ac2zdqx7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">155</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> ownd ;<br /> <span style="color: #0000ff;">SIZE</span> ownd:<span style="color: #000000;">nwidth</span> - <span style="color: #000000;">10</span>,ownd:<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">270</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> FIELDS DET->PID,DET01<span style="color: #000000;">(</span>OBRW<span style="color: #000000;">)</span>,DET->LUNITE,DET->NUNITES,DET->PUHT,DET->VALHT ;<br /> PICTURES <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> ,<span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"@Z 999 999.999"</span>, <span style="color: #ff0000;">"@Z 999 999 999 999.99"</span>,<span style="color: #ff0000;">"@Z 999 999 999 999.99"</span> ;<br /> HEADERS <span style="color: #ff0000;">"Code"</span>, <span style="color: #ff0000;">"Désignation"</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">"Quantité"</span>,<span style="color: #ff0000;">"Px Unitaire"</span>,<span style="color: #ff0000;">"Px Total"</span>;<br /> FIELDSIZES <span style="color: #000000;">80</span>,<span style="color: #000000;">400</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">100</span> ;<br /> <span style="color: #0000ff;">FONT</span> AFONT ;<br /> FOOTERS ;<br /> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"DET"</span><br /><br />oBrw:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br />oBrw:<span style="color: #000000;">lColDividerComplete</span> := .t.<br />oBrw:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />oBrw:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br /><span style="color: #B900B9;">//oBrw:nStretchCol := STRETCHCOL_LAST</span><br /><br />obrw:<span style="color: #000000;">obrush</span> := obrush1<br />OBRW:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span>|| <span style="color: #000000;">{</span> CLR_BLUE, CLR_WHITE <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span>:<span style="color: #000000;">lTotal</span> := .t.<br />oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oBrw:<span style="color: #000000;">CreateFromCODE</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />OBRW:<span style="color: #000000;">SETFOCUS</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> </div>[/code:ac2zdqx7] |
xbrowse maketotals fwh 10.1 | oBrw:aCols[6]:lTotal := .t.
oBrw:aCols[6]:nTotal := 0 // this line also is required
oBrw:MakeTotals() |
xbrowse maketotals fwh 10.1 | [code=fw:jna94nar]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nTotal</span> := <span style="color: #000000;">0</span></div>[/code:jna94nar]
It seems like that should be part of the TXBrowse code.
James |
xbrowse maketotals fwh 10.1 | [quote="James Bott":2zb3pc17][code=fw:2zb3pc17]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span>:<span style="color: #000000;">nTotal</span> := <span style="color: #000000;">0</span></div>[/code:2zb3pc17]
It seems like that should be part of the TXBrowse code.
James[/quote:2zb3pc17]
MakeTotals() method totals only those columns where oCol:nTotal is numeric and displays oCol:nTotal in the footer using the oCol:cEditPicture.
oCol:lTotal is used to total in export to Excel and in Report method. |
xbrowse maketotals fwh 10.1 | Rao,
Thanks for clarifying that.
James |
xbrowse maketotals fwh 10.1 | Additional Info:
From version 10.2 onwards it is enough to assign
oCol:nFooterType := AGGR_TOTAL // or AGGR_SUM.
It is not necessary to assign values for oCol:lTotal and oCol:nTotal.
Other available options are :
oCol:nFooterType := AGGR_MAX or AGGR_MIN or AGGR_COUNT or AGGR_AVERAGE/AGGR_AVG or AGGR_STD/AGGR_STDEV or AGGR_STDEVP.
XBrowses computations are compatible with Excel's functions with the same names.
In all these cases, like in all earlier versions, if the value of the column is edited inline, the footer's value is automatically updated with the change and footer refreshed. |
xbrowse method GORIGHT | Notei uma lentidão ao navegar pelo xbrowse(array) VK_RIGHT.
Isso ocorre em BROWSE com muitos registros.
Existe alguma solução para isso? |
xbrowse method GORIGHT | How many elements the array has ?
What database RDD are you using ? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.