topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
xBrowse FW16.06 (Solucionado) | [code=fw:3crj0jp5]<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;">"tdolphin.ch"</span><br /><br />REQUEST HB_LANG_ES<br />REQUEST HB_... |
xBrowse FW16.06 (Solucionado) | Mira se ayuda:
[url:3po6wfrm]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32514&start=0[/url:3po6wfrm] |
xBrowse FW16.06 (Solucionado) | No veo la solucion ahi Karina. Probe con una solucion que indicaba cristobal HB_SETCODEPAGE( "UTF8" ) pero no obtuve resultado.
Sigue colgandose el programa |
xBrowse FW16.06 (Solucionado) | [url:1qn8mzd1]https://www.tapatalk.com/topic/32514-52609[/url:1qn8mzd1] |
xBrowse FW16.06 (Solucionado) | Gracias Joao por tu interes. Sigue colgandose!
Lo que propone el link que me pasaste es usar
FW_SetUnicode( .T. )
HB_SETCODEPAGE( "UTF8" )
Pero sigue sin funcionar.
Joao: Vos probaste el ejemplo que puse con Dolphin? Usas Harbour? Si es asi, no te deja de responder el programa?
Gracias |
xBrowse FW16.06 (Solucionado) | Lo siento, no uso ni un ni otro. |
xBrowse FW16.06 (Solucionado) | This is not necessary
FW_SetUnicode( .T. )
HB_SETCODEPAGE( "UTF8" )
When I build with dolphin.lib in fwh\lib folder, seek on numeric field is working well with current version
My test program
[code=fw:1k7rr9c2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Dlp... |
xBrowse FW16.06 (Solucionado) | Mr Rao:
Eso no lo habia puesto en el ejemplo original.
El error me lo da cuando en un orden por campo numerico tipeo una letra, o en un orden por campo alfanumerico tecleo un numero.
En el ejemplo, ud. tipea un numero en un campo numerico.
En mi equipo, su ejemplo tambien deja de funcionar. |
xBrowse FW16.06 (Solucionado) | Intenta en otro equipo. Cual és la memória RAM de esta computadora? Saludos. |
xBrowse FW16.06 (Solucionado) | I see.
Please try this modification in xbrowse and test.
In xbrowse, please locate
static function DolphinSeek
Towards the end of this function you locate this line:
[code=fw:2i8l4oss]<div class="fw" id="{CB}" style="font-family: monospace;"> lRet := <span style="color: #000000;">(</span> oQry:<span style="col... |
xBrowse FW16.06 (Solucionado) | Estimado Mr Rao:
El error dejo de ocurrir.
Igualmente, reemplace la linea
[code=fw:1fd2onn2]<div class="fw" id="{CB}" style="font-family: monospace;"> lRet := <span style="color: #000000;">(</span> oQry:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> c, cSortOrder, ... |
xBrowse FW16.06 (Solucionado) | César, han quedado solucionados todos los problemas que tenías? |
xBrowse FW16.06 (Solucionado) | Hola Cristobal
Ahora se me cuelga cuando pongo un numero en los campos alfanumericos.
Y no he resuelto el tema de la Ñ
Gracias por preguntar
Saludos |
xBrowse FillRect ( follow up ) -- Rao | Rao
I am re-visiting this topic and I have created the two arrays aSchedule ( first screen shot )
and aDuration ( second screen shot ) and I am struggling to interpret your suggestion on drawing the rectangle .. I would appreciate your help!
Rick Lipkin
[quote:2lbnsiqi]
Just prepare the array like this. Prepare anot... |
xBrowse FillRect ( follow up ) -- Rao | To All
I am still struggling to figure out a way to paint a rectangle in xBrowse. Two problems:
1) Determining the top, bottom, right and left
2) the syntax to draw the rectangle with transparent text and color
Many Thanks!
Rick Lipkin |
xBrowse FillRect ( follow up ) -- Rao | Mr Rick
Sorry
Soon I shall find an answer for u |
xBrowse FillRect ( follow up ) -- Rao | Rao
Thank you !! If you need any code from me I will be happy to share.
Rick Lipkin |
xBrowse FillRect ( follow up ) -- Rao | I have ur email |
xBrowse FillRect ( follow up ) -- Rao | Rao
I will send you the updated code with the secondary array ..
Rick Lipkin |
xBrowse FillRect ( follow up ) -- Rao | Rao
I know you have been quite busy .. I just need a way to be able to interrogate each cell ( array element) at runtime and determine its contents, row and column. .. perhaps something like you suggested earlier ??
That would help me a lot!
Rick Lipkin
[code=fw:36nfnuta]<div class="fw" id="{CB}" style="font-family:... |
xBrowse FillRect ( follow up ) -- Rao | for each oCol in oBrw:aCols
oCol:Value --> gives the value of the cell
next |
xBrowse FillRect ( follow up ) -- Rao | Rick,
a full ready to use sample.
To keep it small in size, nothing special added.
Select any of the < filter-buttons > to fill the cells at runtime.
Maybe it helps.
Download :
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/fw_downloads/Cellcol1.zip">http://www.pflegeplus.com/fw_downloads/Cellcol1.zip<... |
xBrowse FillRect ( follow up ) -- Rao | Mr Rick
sorry for the delay. Please try this logic.
Starting from the data (similar to your data, building the arrays and browsing.
You may make appropriate changes.
[code=fw:3by4s2fz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">... |
xBrowse FillRect ( follow up ) -- Rao | Rao
Thank you for your support .. I will let you know ...
Very Much Appreciated!
Rick Lipkin |
xBrowse FillRect ( follow up ) -- Rao | Rao
I am just now trying to adapt your code without much success. In your example, you create your browse much different than I do, however, in the following code I do not think it makes much difference.
I prefer to use your technique of using a second array which points back to the array element(s) to be colored.
H... |
xBrowse FillRect ( follow up ) -- Rao | [quote:3smrgtkt]I can easily create aDuration with the above charactor codes instead of your logical .. for some reason, I just can not seem to understand how to evaluate the values .. I seem to be able to get one row and that is it .. however, I know the for\next look is evaluating every element.
[/quote:3smrgtkt]
I u... |
xBrowse FillRect ( follow up ) -- Rao | Rao
I think your original code will work .. I just can not seem to get this part working .. I was testing your code against my version of the duration array .. all I was looking to test for was if the value of the array element was blank .. I don't think any of the values are nil ??
Rick Lipkin
[code=fw:14v3ca8f]<di... |
xBrowse FillRect ( follow up ) -- Rao | I tried to keep everything simple in my code. I assigned some value to a cell in the aColor ( or aDuration ) array only when needed and otherwise retained the default nil values. Saves time while preparing the array. And saves confusion while deriving color values later.
Now applying my suggestion to use color pairs ... |
xBrowse FillRect ( follow up ) -- Rao | Rao
Thank you for your diligence .. This has been a good exercise for me in understanding how to mine cell co-ordinants from xBrowse.
Your examples have given me that insight. This code right here was the key piece of understanding for me.
[code=fw:eeu6lv5f]<div class="fw" id="{CB}" style="font-family: monospace;"><b... |
xBrowse Fillrect - How to color multiple rows by column | To All
I am writing a scheduler and would like to be able to put color to the appointment duration for a span of time.
I have looked at Daniel Gil's Calex calendar class to see how he filled in the rows ( must be transparent for the column text ) for a specific column without much success... see below.
I have create... |
xBrowse Fillrect - How to color multiple rows by column | Your program knows the top and bottom rows for the appointment, say nTop and nBot:
[code=fw:3ol6fzpu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">{</span> CLR_BLACK, ... |
xBrowse Fillrect - How to color multiple rows by column | Rao
Thank you for your reply ..
I am struggling to know how to identify the appointment blocks at run time since I have already created the array with the proper values .. all xbrowse does is display the array.
You mentioned bookmarks ... is it possible to create bookmarks at run-time based on the value of the unde... |
xBrowse Fillrect - How to color multiple rows by column | Let us be clear about what oBrw:BookMark means.
oBrw:bBookmark is defined as { |n| If( n == nil, RecNo(), DbGoTo( n ) } for RDD and { |u| If( u == nil, oRs:BookMark, oRs:BookMark := u ) } for RecordSet.
oBrw:BookMark is the same as RecNo() for DBF and oRs:BookMark for RecordSet.
oBrw:BookMark := n means DbGoTo( n ) ... |
xBrowse Fillrect - How to color multiple rows by column | [quote:5f476b69]I am struggling to know how to identify the appointment blocks at run time since I have already created the array with the proper values .. all xbrowse does is display the array.
[/quote:5f476b69]
Please have a look at the following sample:
[code=fw:5f476b69]<div class="fw" id="{CB}" style="font-family... |
xBrowse Fillrect - How to color multiple rows by column | Rao
I thought about labeling each cell as I create the array .. and I may have to do that. I was trying not to add text to each cell .. only color the ones starting from the beginning cell and count down the number of cells in the appointment.
I am trying to re-create an appointment screen like this ..
Rick Lipkin
... |
xBrowse Fillrect - How to color multiple rows by column | You can also use oCol:lMergeVert := .t.
[url=http://img811.imageshack.us/i/rick2p.jpg/:1451fo69][img:1451fo69]http://img811.imageshack.us/img811/6483/rick2p.jpg[/img:1451fo69][/url:1451fo69] |
xBrowse Fillrect - How to color multiple rows by column | Rao
I did think about that and looked at how xBrowse.prg was painting the like cells .. Good food for thought..
I will see how that idea works .. would be nice if you could specify the color of the merged data <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Appreciate your ... |
xBrowse Fillrect - How to color multiple rows by column | [quote:2flamsm8]I will see how that idea works .. would be nice if you could specify the color of the merged data
[/quote:2flamsm8]
Sorry, while working on this I noticed that there is a little bug in painting if we specify a different colour.
Let us keep thinking. |
xBrowse Fillrect - How to color multiple rows by column | Rao
I am re-working the code to build the array .. turning into a nightmare.. hopefully sometime Saturday I will have the re-write on the array and then see if I can do the merge.
I think this will work..
Thanks
Rick Lipkin |
xBrowse Fillrect - How to color multiple rows by column | [quote:1ks2w9c7]nd then see if I can do the merge.[/quote:1ks2w9c7]
Please do not consider this option. I thought about it and with the present xbrowse code, you will get stuck up.
Just prepare the array like this. Prepare another array of same size with duration in the corresponding cell of the second array. Keep the... |
xBrowse Fillrect - How to color multiple rows by column | Rao
Just curious what problems did you encounter with the vertical merge ? I have not yet got too deep into the array re-write.
Let me study your second array option .. the original xBrowse array creates each row starting with the time .. then loops thru a separate employee array used to build the header columns..... |
xBrowse Focus-Error ( on Row-Start-Position ) ? | Hello,
setting the Start Row-Position of a Browser to Bottom, I get a Error.
( Brush-Background is used )
Starting on Top, it works :
// That works
oLbx:nArrayAt := 1
oLbx:nRowSel := 1
// Doesn't work
oLbx:nArrayAt := 2
oLbx:nRowSel := 2
[img:3jdtabpn]http://www.pflegeplus.com/pictures/xbrwfocus1.jp... |
xBrowse Font | Amigos:Es posible asignarle un font al xbrowse y otro a lafila seleccionada que tiene el foco.Deseo mostrar el xbrowse con un font y la filaseleccionada con el mismo font boldMuchas gracias, saludos.Ruben Fernandez |
xBrowse Font | Ruben,Se podría hacer usando:oCol:oDataFont := { || If( ..., oFont1, oFont2 ) }La cuestión es que no se le está pasando ningún parámetro a la evaluación de ese codeblock por lo que no podemos saber si está en el registro seleccionado. Habría que modificar la clase ó que se nos ocurra algún modo... |
xBrowse Font | Gracias Maestro.SaludosRuben Fernandez. |
xBrowse Font | ¿Hay algo nuevo sobre este asunto? ¿Se podría hacer ahora ? |
xBrowse Font | [code=fw:3hy3oqyr]<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 />REQUEST DBFCDX<br /><br /><span styl... |
xBrowse Font | [color=#0000BF:qm7quioo]nageswaragunupudi,[/color:qm7quioo]
Como hacerlo con recursos ?
me da error en la evalucion del BOOKMARK
[color=#00BF00:qm7quioo]// nCurrent:= oBrw:BookMark[/color:qm7quioo]
Application
===========
Path and name: C:\Proyectos\Software\WinPollosa\WinAlma.EXE (32 bits)
Size: 2,823,680 b... |
xBrowse Font | hay que incluir esta linea :
[color=#008040:8gv9fy4u]oDlg:bStart:= {|| nCurrent:= oBrw:BookMark }
[/color:8gv9fy4u] |
xBrowse Font | Sr. Rao, muchas gracias. Desde código funciona perfecto. |
xBrowse Font | Depends on at what stage are you calling the oBrw:BookMark. By that time, the browse object must have been initialized with the corresponding database, array or recordset.
The logic in my sample works for source code or resources and for dbf, array, recset, etc.
[code=fw:2au8urwg]<div class="fw" id="{CB}" style="fo... |
xBrowse Font Problem | After I have upgrade to December 2016, I faced with a font problem.
The fonts are changing when I use a xbrowse on dialog.
Please look at the example below.
When I double click on the xbrowse the fonts are both "Ms Sans Serif" with build May 2016
But, with build December 2016 both are "Segoe UI".
Because of this all of... |
xBrowse Font Problem | This is the change made in FWH 16.07
Extract from whatsnew.txt
[quote:hxejxhuo]* Enhancement: function GetSysFont() now returns "Segoe UI" if Windows
10 or 8 is being used:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=193067">viewtopic.php?p=193067</a><!-- l -->
... |
xBrowse Font Problem | I tried this program on Windows 10.
This is the result with Segoe UI font
[url=https://imageshack.com/i/pnM0UV2Np:13vjwj03][img:13vjwj03]http://imagizer.imageshack.us/v2/xq90/923/M0UV2N.png[/img:13vjwj03][/url:13vjwj03]
It appears the Turkish characters are shown correctly |
xBrowse Font Problem | Yes you are right. It appears that the characters are shown correctly.
Can you double click on xbrowse please. I want to see the oFont:cFaceName.
If it is Segoe UI, I will check my windows settings.
Temporarily I have solved my problem by changing GetSysFont() in getsysin.prg
Thanks for your help. |
xBrowse Font Problem | [quote="betoncu":1gwadqdx]Yes you are right. It appears that the characters are shown correctly.
Can you double click on xbrowse please. I want to see the oFont:cFaceName.
If it is Segoe UI, I will check my windows settings.
Temporarily I have solved my problem by changing GetSysFont() in getsysin.prg
Thanks for your h... |
xBrowse Font Problem | [quote:1l0xn4it]If it is Segoe UI, I will check my windows settings.
[/quote:1l0xn4it]
Yes, it is Segoe UI.
But what is the difference? Both fonts show Turkish characters correctly.
If you have a personal preference for MS Sans Serif, that is upto you. |
xBrowse Font Problem | Somewhat off-topic: I personally like Segoe UI but unfortunately it is slightly wider than MS Sans Serif. So dialogs have to be redesigned (or at least, all checked - anyway, not so easy).
EMG |
xBrowse Font Problem | [quote="Enrico Maria Giordano":1f5bfmdq]Somewhat off-topic: I personally like Segoe UI but unfortunately it is slightly wider than MS Sans Serif. So dialogs have to be redesigned (or at least, all checked - anyway, not so easy).
EMG[/quote:1f5bfmdq]
Yes. Not so easy.
In fact, while testing the above sample, I had to ... |
xBrowse Font Problem | Sorry, I have no advice. I'm still using MS Sans Serif.
EMG |
xBrowse Font Problem | [quote="Enrico Maria Giordano":2nfsqmk5]Sorry, I have no advice. I'm still using MS Sans Serif.
EMG[/quote:2nfsqmk5]
But if you run the software on windows8 or win10, the default font is Segoe UI. What are you doing? |
xBrowse Font Problem | Mr Navarro
My operating system is Windows 10 and it is configured with Turkish. |
xBrowse Font Problem | [quote="nageswaragunupudi":lhrlbpga]But if you run the software on windows8 or win10, the default font is Segoe UI. What are you doing?[/quote:lhrlbpga]
Almost all my dialogs are from resources so they use the font defined there.
EMG |
xBrowse Font Problem | It is very strange. This problem occurs only if I use a xbrowse on a dialog.
The Turkish characters in read only fields and static text fields are also not shown correctly.
If I dont use xbrowse, read only and staic text fields are ok. |
xBrowse Font Problem | [quote:14r8dncp]Temporarily I have solved my problem by changing GetSysFont() in getsysin.prg
[/quote:14r8dncp]
Do you still have the problem after changing GetSysFont()? |
xBrowse Font Problem | No, I am using MS Sans Serif and no problem. |
xBrowse Font Size | Dear All,
Pressing CTRL and '+' changes xBrowse data font but not changing the font of headers...
Is this normal behavior? or is there a way to sync data font and header font?
Kind Regards,
Frances |
xBrowse Font Size | Pressing Ctrl+ and Ctrl- changes data font size only. That is how it is programmed now. I also do not think anybody other than you noticed it. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
If you like to change Header font size also, you need to subclass xbrowse and overrid... |
xBrowse Font Size | Dear Mr. RAO,
Thank you so much for your reply. It's a minor thingy.. Looking forward for the next build with header font changes..
i have a lot of xBrowse objects across many apps..
My next FWH upgrade schedule is end of Feb/2011..
Kind Regards,
Frances |
xBrowse Footer Picture | Dear All,
I am using xBrowse to display Dbf file. Numeric column are having AGGR_TOTAL at its footer. I have tried to change the picture of the footer but by doing so, the footer disappears.
I used :
oBrw:oCol('Atri Tax' ):nFooterType := AGGR_TOTAL
For n = 2 To Len(aHead_A[1])
If oBrw:aCols[ n ]:nFooterTyp... |
xBrowse Footer Picture | Ceditpicture solves your problem
oBrw:aCols[ n ]:cEDITPicture := "9,999,999,999.99"
Hth |
xBrowse Footer Picture | Thanks Richard,
It works great now, the cEditPicture clause adjusted the column widths as per picture and applied it into columns and footer totals.
Thanks again..... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | Hi all,
I am using a xBrowse with a .dbf file without an Index...
If I go to the bottom of the database programatically, the browse is shown like this:
[img:39re3tz1]http://www.mayapos.com/FiveWin/brow1.png[/img:39re3tz1]
I think it should not be that way, because there are more records in the datab... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | Mr Rao,
Is there a way to have xBrowse to detect the mouse wheel when the pointer is over it, even when it does not have the focus??? |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | [quote="Bayron":36yo92gt]Mr Rao,
Is there a way to have xBrowse to detect the mouse wheel when the pointer is over it, even when it does not have the focus???[/quote:36yo92gt]
Not with any simple code.
Probably other window which has the focus can capture the mouse and check where the mouse is located when the wheel ... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | Do not use DbGoBottom()
Instead, call oBrw:GoBottom() in the ON INIT clause of the dialog.
[code=fw:3mfjtnsq]<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... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | Thanks Mr Rao, I tried to place that command after creating the browse and that was the reason why it did not work....
By the way, I placed it just after oBrw:CreateFromCode() and worked as well... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | Yes I see...
I will investigate this further my self... The easy way is to create a class, but I do't know Class Programming (Just thinking out loud)
Thanks for your help Mr. Rao... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | Got It, thanks to your help.
[code=fw:26zap9f4]<div class="fw" id="{CB}" style="font-family: monospace;"> oDialog:<span style="color: #000000;">bMouseWheel</span> = <span style="color: #000000;">{</span> | nKeys, nDelta, nXPos, nYPos | <span style="color: #00C800;">If</span><span style="color: #000000;">(</... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | I have it working half way, but I think I am screwing something in the coordinate conditions...
[code=fw:19f1qv8h]<div class="fw" id="{CB}" style="font-family: monospace;">oDialog:<span style="color: #000000;">bMouseWheel</span> = <span style="color: #000000;">{</span> | nKeys, nDelta, nXPos, nYPos | ;<br /> <s... |
xBrowse GoBottom /xBrowse MouseWheel (SOLVED) | This way it Works:
[code=fw:2ei5zihv]<div class="fw" id="{CB}" style="font-family: monospace;">oDialog:<span style="color: #000000;">bMouseWheel</span> = <span style="color: #000000;">{</span> | nKeys, nDelta, nXPos, nYPos | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nXPos >... |
xBrowse GoLeft() | Amigos del foro:Tengo un xbrowse con 8 columnas. Cada celda de las 4 primeras columnas debe ser validada, no permitiendo pasar a la siguiente col si se valida .f..Utilizo oBrw:lFastEdit:=.t.He leído en este foro algunos post parecidos pero no encuentro solución.Este es el codigo que no he logrado hacer funcionar. Agrad... |
xBrowse GoLeft() | Francisco,Tienes que poner oBrw:lFastEdit := .F. para que te funcione el :GoLeft()Es algo que tenemos que modificar en la clase. |
xBrowse GoLeft() | [quote="Antonio Linares":wh2bmyss]Francisco,
Tienes que poner oBrw:lFastEdit := .F. para que te funcione el :GoLeft()
Es algo que tenemos que modificar en la clase.[/quote:wh2bmyss]Antonio, gracias.FranciscoA |
xBrowse GoLeft() | Tenia el mismo problema, lo que hice fue muy sencilloagrege una nueva data a la xBrowse llamada lAutoAppendsin la necesidad de colocar [b:1a55modb]lFastEdit=.f. [/b:1a55modb][b:1a55modb]DATA lAutoAppend[/b:1a55modb]en el metodo New() agrege[b:1a55modb]::lAutoAppend := .f.[/b:1a55modb]y en el metodo METHOD GoNextCtrl()... |
xBrowse GoLeft() | le agrege algo nuevo a lo anterior, de manera que pueda seguir usando el fastedit correctamente, es decir, que pase el foco a la proxima celda editable, sin que se pase del final del browse, si no tienes el lAutoAppend activado[code:1wxxir9p]
if ::lAutoAppend .or. ::nDataRows > ::nRowSel... |
xBrowse GoLeft() | Si quieres pulir un poco mas podrias agregar esto para validar que incluyas el ::bPastEof[code:58wqj00r]
if ::lAutoAppend .or. ::nDataRows > ::nRowSel
if ::bPastEof == NIL .and. ::nDataRows = ::nRowSel
MsgStop( "::bPastEof not defined","... |
xBrowse GoLeft() | mxfox, gracias por tu ejemplo. Encuentro interesante lo del lAutoAppend y voy a tratar de implementarlo, aunque parece que tu version de FWH es más reciente que la mía (7.12).Mi problema específico es que cuando se valida falso (.f.) en una celda, deseo que el cursor no salte a la siguiente columna, sino que quede en l... |
xBrowse GoLeft() | Tienes tambien bEditValid, que valida la celda activa, si es .T. pasa a la siguiente celda disponible para editar y si es .f. mantiene en estado de edicion hasta que oprimas escape y no se va pra ningun otro lado |
xBrowse GoLeft() | [quote="mcfox":1fkjsce5]Tienes tambien bEditValid, que valida la celda activa, si es .T. pasa a la siguiente celda disponible para editar y si es .f. mantiene en estado de edicion hasta que oprimas escape y no se va pra ningun otro lado[/quote:1fkjsce5]mcfox, gracias. FranciscoA |
xBrowse GoLeft() problem | HiI want to edit an array in xBrowse 8.08: REDEFINE XBROWSE oBrw ID 231 ; HEADERS "Type", "Tax Base", "Rate", "Amount", "Method" ; COLSIZES 60, 80, 80, 80, 60 ; ARRAY aBox47 AUTOCOLS oBrw:aCols[1]:cHeader := "Type" oBrw:aCols[1]:cEditPicture := "@K !!!" oBrw:aCols[1]:nDataStrAlign := AL_LEFT oBrw:a... |
xBrowse GoLeft() problem | David,This is a modified version of fwh\samples\mallorca.prg. I have included oBrw:GoDown() and oBrw:GoLeft() in the second column, and here it is working fine:mallorca.prg (modified)[code:2f2i7pwi]
#INCLUDE "FiveWin.ch"
#INCLUDE "XBrowse.ch"
function Main()
local oWnd, aLin := {}, i,... |
xBrowse GoLeft() problem | Antonio,> oBrw:aCols[2]:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN, ( aLin[ oBrw:nArrayAt,2] := xVal, oBrw:GoDown(), oBrw:GoLeft() ),) } Can you show us an example using a DBF object and a regular DBF?Regards,James |
xBrowse GoLeft() problem | James,Using a DBF:[code:3euqvijt]
#include "FiveWin.ch"
#include "XBrowse.ch"
function Main()
local oWnd, oBrw, oCol
USE Customer
DEFINE WINDOW oWnd
@ 0, 0 XBROWSE oBrw OF oWnd ALIAS "Customer"
oCol = oBrw:AddCol()
oCol:bStrData = { || Cust... |
xBrowse GoLeft() problem | James,Using a DATABASE object:[code:26v92v9s]
#include "FiveWin.ch"
#include "XBrowse.ch"
function Main()
local oWnd, oDbf, oBrw, oCol
USE Customer
DATABASE oDbf
DEFINE WINDOW oWnd
@ 0, 0 XBROWSE oBrw OF oWnd OBJECT oDbf
oBrw:CreateFromCode()
oBrw&#... |
xBrowse GoLeft() problem | Using a DATABASE object and just some columns:[code:1bwoxair]
#include "FiveWin.ch"
#include "XBrowse.ch"
function Main()
local oWnd, oDbf, oBrw, oCol
USE Customer
DATABASE oDbf
DEFINE WINDOW oWnd
@ 0, 0 XBROWSE oBrw OF oWnd OBJECT oDbf
oCol = oBrw:AddCol() ... |
xBrowse GoLeft() problem | Thanks, Antonio, these are very helpful.Regards,James |
xBrowse GoLeft() problem | There is a problem with the movement when editing using the above oDBF example. When you exit the edit (GET) using an up or down arrow key, the new value is lost. Here is a fix:[code:31zbn24l] oBrw:aCols[ 1 ]:bOnPostEdit = { | oCol, xVal, nKey | If( nKey == VK_RETURN, ( oDbf:First ... |
xBrowse GoLeft() problem | I found the answer to my own question about alpha-numeric keys triggering the edit-- use oBrw:lFastEdit := .t.Here is an example of XBrowse that acts like a spreadsheet edit.Regards,James[code:2pv0q7er]/*
Purpose: XBrowse example with spreadsheet style editing
Note : Any alpha-numeric key triggers the edit, ... |
xBrowse GoLeft() problem | James,Thanks for your example <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.