topic
stringlengths
1
63
text
stringlengths
1
577k
mousewheel on get
You have to inherit your own TMyGet and add MouseWheel() or HandleEvent() methods to it (or modify the standard TGet class). Have a look at TWBrowse and TRichEdit for a sample. EMG
mousewheel on get
Hi Enrico, i feared you were in holiday <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Until now i didn't yet work with inherited classes. Do you mean something like : TMyGet from TGet and then overide the method MouseWheel() from the window class with my own code? I will try this. I think i remember a description from James Bott how to do such things. Thanks and regards, Detlef
mousewheel on get
[quote="Detlef Hoefner":3te0itv4]Hi Enrico, i feared you were in holiday <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> [/quote:3te0itv4] <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [quote="Detlef Hoefner":3te0itv4]Until now i didn't yet work with inherited classes. Do you mean something like : TMyGet from TGet and then overide the method MouseWheel() from the window class with my own code?[/quote:3te0itv4] Yes, exactly. EMG
move a bitmap
I want create a test to draw a room ( wall) look this sample [code=fw:2zxf3dwr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> oWnd <br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nItem,oRBar ,oGr3,oBtn2<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Sala "</span> &nbsp;<span style="color: #0000ff;">from</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">600</span> <span style="color: #0000ff;">pixel</span><br /><span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Configurazione sala"</span> HEIGHT <span style="color: #000000;">160</span> TOPMARGIN <span style="color: #000000;">55</span><br /><br />&nbsp; &nbsp;ADD GROUP oGr3 RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Pannelli"</span> width <span style="color: #000000;">420</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">5</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Orizontale"</span> &nbsp;BITMAP <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>estsmall.BMP"</span> GROUP oGr3 &nbsp;<span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">75</span> ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">action</span> <span style="color: #000000;">&#40;</span>nItem :=<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">" Class RibbonBar"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">CENTERED</span> CLOCK KEYBOARD <span style="color: #000000;">2007</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd:<span style="color: #000000;">bLClicked</span> &nbsp; &nbsp;= <span style="color: #000000;">&#123;</span> | nRow, nCol, nFlags | crea_oggetto<span style="color: #000000;">&#40;</span>nItem, nRow,nCol<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;oRBar:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> crea_oggetto<span style="color: #000000;">&#40;</span>nItem, nRow,nCol<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oSprite<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cBitmap<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nItem = <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; cBitmap=<span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>est.bmp"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endcase</span><br /><br /><br /><br /><br />&nbsp;@ nRow, nCol BITMAP oSprite;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILE cBitmap;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PIXEL</span> NOBORDER &nbsp;<span style="color: #0000ff;">of</span> oWnd<br /><br />&nbsp;oSprite:<span style="color: #000000;">lTransparent</span> = .T.<br /><br />&nbsp; oSprite:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span>oSprite:<span style="color: #000000;">nTop</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">nLeft</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;oSprite:<span style="color: #000000;">lDrag</span> &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp;oSprite:<span style="color: #000000;">bMoved</span> := <span style="color: #000000;">&#123;</span>|| oSprite:<span style="color: #000000;">CoorsUpdate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpRow := oSprite:<span style="color: #000000;">nTop</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol := oSprite:<span style="color: #000000;">nLeft</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2zxf3dwr] [b:2zxf3dwr]test.bmp[/b:2zxf3dwr] [img:2zxf3dwr]http&#58;//img132&#46;imageshack&#46;us/img132/8391/res466&#46;png[/img:2zxf3dwr] with this test I can insert a bitmap on window and move it [img:2zxf3dwr]http&#58;//img84&#46;imageshack&#46;us/img84/2333/sala&#46;png[/img:2zxf3dwr] But if I have two bitmaps (the same bitmaps ) and I must draw a line it is too hard to move them as you can see on this picture and when I click on each bitmaps I see a hand cursor and I see a big box It can be hard to draw a line for a sample How I can make to resolve it ?
move a bitmaps
I must movre a bitmap into a window [code=fw:2lc35p1z]<div class="fw" id="{CB}" style="font-family: monospace;"> @ nRow, nCol BITMAP oSprite;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILE cBitmap;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PIXEL</span> NOBORDER &nbsp;<span style="color: #0000ff;">of</span> oWnd<br /><br />&nbsp; &nbsp;nTipo:=nItem<br /><br />&nbsp; &nbsp;oSprite:<span style="color: #000000;">lTransparent</span> = .T.<br /><br />&nbsp; oSprite:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span>oSprite:<span style="color: #000000;">nTop</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">nLeft</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;oSprite:<span style="color: #000000;">lDrag</span> &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp;oSprite:<span style="color: #000000;">bMoved</span> := <span style="color: #000000;">&#123;</span>|| oSprite:<span style="color: #000000;">CoorsUpdate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpRow := oSprite:<span style="color: #000000;">nTop</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBmpCol := oSprite:<span style="color: #000000;">nLeft</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">cargo</span> := <span style="color: #000000;">&#123;</span>cBitmap,nTipo &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> | nRow, nCol | Menu_azioni<span style="color: #000000;">&#40;</span> oSprite, nRow, nCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSprite:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2lc35p1z] on this window I have a ribbonbar 1. How I can make to not move the bitmap over this ribbonbar ? 2. How I can to move this bitmap over the coor of the same window ?
move a image on a image control
When I load an image into a image control it put the image at the left angle as you can see on this picture [img:4fa35slw]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/06/err&#46;jpg[/img:4fa35slw] how I can make to move the image at center of image control ?
move a image on a image control
Please provide a small and self contained example to see how you are doing it, thanks
move a image on a image control
Use TXImage
move a image on a image control
@ 1, 0 IMAGE oImage SIZE 250, 250 OF oAllegati SCROLL Local cPdfImage :=".\bitmaps\files\1.bmp" oImage:LoadBmp( cPdfImage ) Mr Rao I not Have tximage I have jannuary 20115 version of fwh
move a image on a image control
Silvio, my testtool : Image centered on defined image. Alpha on JPG and jpg on jpg ( or other formats ) select any combination of image 1 and image 2 Download ( complete with exe, prg and images ) : http:((<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/Center2.zip">http://www.pflegeplus.com/DOWNLOADS/Center2.zip</a><!-- m --> Images to be loaded from the subdirectory [b:ulcekmo6]/IMAGES[/b:ulcekmo6] [img:ulcekmo6]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Center3a&#46;jpg[/img:ulcekmo6] [img:ulcekmo6]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Center1&#46;jpg[/img:ulcekmo6] [img:ulcekmo6]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Center2&#46;jpg[/img:ulcekmo6] best regards Uwe <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
move a image on a image control
thanks uwe the image is on the center now but I have a problem I have 3 button s when I can change the zoom of image if I use your function I cannot change the zoom of oImage because your function recreate another object
move a image on a image control
Silvio, what image do You want to zoom ? the main-image-area or the centered image ? best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
move a image on a image control
Uwe, I use this function @ 0, 0 IMAGE oImage SIZE 250, 250 OF oDlg SCROLL @ 230,275 BTNBMP obtn[1] PROMPT "A" of oDlg SIZE 15,10 NOBORDER PIXEL ACTION AjustaZoom(oImage,"S",oSay[7]) @ 230,295 BTNBMP obtn[2] PROMPT "Z-" of oDlg SIZE 15,10 NOBORDER PIXEL ACTION AjustaZoom(oImage,"R",oSay[7]) @ 230,315 BTNBMP obtn[3] PROMPT "Z+" of oDlg SIZE 15,10 NOBORDER PIXEL ACTION AjustaZoom(oImage,"A",oSay[7]) Function AjustaZoom(oBmp,cAccion,oSay) local nZoom:=oBmp:Zoom() do case case cAccion == "S" oBmp:lStretch := !oBmp:lStretch oBmp:ScrollAdjust() oBmp:Refresh( .t. ) oChk[2]:refresh() case cAccion == "R" if nZoom*10>1 oBmp:lStretch := .f. nZoom:=nZoom-(0.10) oBmp:Zoom(nZoom) oBmp:Refresh() oBmp:ScrollAdjust() oChk[2]:refresh() endif case cAccion == "A" oBmp:lStretch := .f. nZoom:=nZoom+0.10 oBmp:Zoom(nZoom) oBmp:Refresh() oBmp:ScrollAdjust() oChk[2]:refresh() endcase if oBmp:lStretch oSay:SetText(Oemtoansi("Immagine allargata")) else oSay:SetText(Oemtoansi( "Zoom immagine...: "+alltrim(str(nZoom*100,10,0))+"%")) endif return NIL
move a image on a image control
Added ZOOM on buttonaction. is it the solution, You are looking for`? [img:33zso224]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Zoom1&#46;jpg[/img:33zso224] [img:33zso224]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Zoom2&#46;jpg[/img:33zso224] best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
move a record from xbrowse
it is possible move a record from position x to position y into a xbrowse because my customer want the possibility to move a record into a table of order ( made with xbrowse) to another position the customer let me see an old prg made in vb6 he moved the record taking with the mouse and press on recordselector and move it into another position my customer sad me need it to group products and comments
move a record from xbrowse
Silvio, Surely Rao will provide us here the best advise to do it
move a record from xbrowse
I think it can be hard to create ...
move a record from xbrowse
Silvio, I have the same problem changing the position. My solution for the moment : selecting the 2 records I want to change the position. Doing the change on button-click Now the [color=#4000FF:htn1exkl]COMPLETE[/color:htn1exkl] records are changing the position [img:htn1exkl]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Position1&#46;jpg[/img:htn1exkl] best regards Uwe <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
move a record from xbrowse
I'm traying it, also. With arrays.
move a record from xbrowse
Disculpen mi ignorancia, si es con un array no seria mas facil si solo le cambian el valor a oBrw:nArrayAt en ambos lados con el juego de 3 casillas.? digo, si es que se le puede reasignar el valor a nArrayAt y luego hacer un refresh. La otra idea es crear un registro en blanco, copiar alli uno de los registros, reemplazar los valores a uno de los registros por el que se quiere cambiar, luego copiar el del registro nuevo al cambiado y por ultimo borrar el registro nuevo dublicado...nose si es una loquera lo que digo, solo lo veo en forma de SEUDOCOIDE, habria que ver si es factible en codigo, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
move a record from xbrowse
[quote:f8fmoznw]Silvio wrote: ...the customer let me see an old prg made in vb6 he moved the record taking with the mouse and press on recordselector and move it into another position [/quote:f8fmoznw] José Luis. La pregunta es: ¿Cómo hacerlo con Drag and Drop? The question is: How to do it using Drag and Drop?
move a record from xbrowse
[quote="FranciscoA":esc56ko0][quote:esc56ko0]Silvio wrote: ...the customer let me see an old prg made in vb6 he moved the record taking with the mouse and press on recordselector and move it into another position [/quote:esc56ko0] José Luis. La pregunta es: ¿Cómo hacerlo con Drag and Drop? The question is: How to do it using Drag and Drop?[/quote:esc56ko0] Ha bueno, ya eso es otra cosa, yo lo vi solo como un intercambio de posiciones, no por DRAG/DROP.? ya aca debera ver nuestro Mr.Noa o Daniel o AL, que son mas expertos, digo yo ..nose..solo fue una loca idea que se me vino, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
move a record from xbrowse
Silvio, If I click on a row and keep the mouse pressed and move it downwards, then two selected records appear. Could you try this on your browses and let me know if you get it too ? [img:1b65gjj0]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/browse_drag&#46;JPG[/img:1b65gjj0]
move a record from xbrowse
Dear Antonio, what you see is from kinetic behavior. Best regards, Otto
move a record from xbrowse
This is an example of moving a row from one position to another position by drag and drop. This is demonstrated with an array [code=fw:3ejse1ln]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBrw, oFont, oCur, aData<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span> |u,i| aData<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> := NtoCMonth<span style="color: #000000;">&#40;</span> i <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE aData COLUMNS <span style="color: #000000;">1</span> CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">oDragCursor</span> &nbsp; &nbsp; &nbsp;:= oCur<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bDragBegin</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |r,c,f,o| SetDropInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> oBrw:<span style="color: #000000;">nArrayAt</span>, oBrw:<span style="color: #000000;">aRow</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bDropOver</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aDel<span style="color: #000000;">&#40;</span> aData, u<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AIns<span style="color: #000000;">&#40;</span> aData, oBrw:<span style="color: #000000;">nArrayAt</span>, u<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3ejse1ln]
move a record from xbrowse
Thanks, Rao. I tried it and it works well for me. Tomorrow I will do more tests on medium and large arrays. Best regards.
move a record from xbrowse
Mr. Nages, Can we please have this sample with a DBF?. Thank you.
move a record from xbrowse
[quote="FranciscoA":1zhn1en9]Thanks, Rao. I tried it and it works well for me. Tomorrow I will do more tests on medium and large arrays. Best regards.[/quote:1zhn1en9] This is a very simple case, works only when the start and destination are both visible on the same screen. This example also does not have any error handling. In real life we may need to handle scrolling also if the destination is several rows away. This should serve as a simple example to form the basis of a complex final product. Cut and Paste instead of Drag and Drop: Instead of using Drag/Drop, we can also use Cut and Paste. Cut the source record, navigate to the new position and then move the record there .
move a record from xbrowse
[quote="elvira":2q07m6n3]Mr. Nages, Can we please have this sample with a DBF?. Thank you.[/quote:2q07m6n3] This xbrowse example, after the end of the drag, informs the programmer, start record number and destination record number. The programmer has to decide if he wants to swap data of some fields between these two records or wants a visual re-ordering of the rows where the moved record appears in the new position. First thing to decide is how the programmer wants to record the change in the dbf. Once that is clear, it can be plugged into the bDropOver.
move a record from xbrowse
My solution for the moment with the following problem 1. A table is splitted in different groups ( index on group ) 2. Inside a group, I have to switch 2 positions. 3. A visual display of the 2 selected records is added [code=fw:2n1jt3o5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// ------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CHANGE_POS<span style="color: #000000;">&#40;</span>cMonth<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> I := <span style="color: #000000;">0</span>, h1, h2, nRecord1, nRecord2, cGroup1 := <span style="color: #ff0000;">""</span>, cGroup2 := <span style="color: #ff0000;">""</span><br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGOTOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />I := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>->CHANGE = <span style="color: #ff0000;">"X"</span>     <span style="color: #B900B9;">// detects 2 selected records</span><br />                                                  <span style="color: #B900B9;">// to change the position</span><br />        I++<br />    <span style="color: #00C800;">ENDIF</span><br />     <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSKIP<span style="color: #000000;">&#40;</span><span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDDO</span><br /><br /><span style="color: #00C800;">IF</span> I = <span style="color: #000000;">0</span><br />    MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No records selected"</span>, <span style="color: #ff0000;">"ERROR"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />ELSEIF I = <span style="color: #000000;">1</span><br />    MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Only 1 record selected"</span>, <span style="color: #ff0000;">"ERROR"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />I := <span style="color: #000000;">0</span><br /><span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGOTOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>->CHANGE = <span style="color: #ff0000;">"X"</span>  <span style="color: #B900B9;">// selected for change</span><br />        I++<br />        <span style="color: #00C800;">IF</span> I = <span style="color: #000000;">1</span><br />            cGroup1 := <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>->GROUP        <span style="color: #B900B9;">// 1. selected group  </span><br />            nRecord1 := <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// 1. selected record</span><br />            h1 := FW_RecToHash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        ELSEIF I = <span style="color: #000000;">2</span><br />            cGroup2 := <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>->GROUP             <span style="color: #B900B9;">// 2. selected group  </span><br />            nRecord2 := <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">// 2. selected record</span><br />            h2 := FW_RecToHash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        ELSEIF I > <span style="color: #000000;">2</span>                                <span style="color: #B900B9;">// 2 selections reached</span><br />            EXIT<br />        <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSKIP<span style="color: #000000;">&#40;</span><span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDDO</span><br /><br /><span style="color: #00C800;">IF</span> cGroup1 <> cGroup2<br />    MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Not possible, to change"</span> + CRLF + ;<br />                       <span style="color: #ff0000;">"the position using different groups !"</span>, <span style="color: #ff0000;">"ERROR"</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #B900B9;">// write data to the 2 selected records ( 1 to 2 and 2 to 1 )</span><br /><br /><span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGOTO<span style="color: #000000;">&#40;</span>nRecord1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />FW_HashToRec<span style="color: #000000;">&#40;</span> h2 <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGOTO<span style="color: #000000;">&#40;</span>nRecord2<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />FW_HashToRec<span style="color: #000000;">&#40;</span> h1 <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#40;</span> cMonth <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGOTOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2n1jt3o5] best regards Uwe <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
move a record from xbrowse
[quote="nageswaragunupudi":2lj4w2gb] This is a very simple case, works only when the start and destination are both visible on the same screen. This example also does not have any error handling. In real life we may need to handle scrolling also if the destination is several rows away. This should serve as a simple example to form the basis of a complex final product. Cut and Paste instead of Drag and Drop: Instead of using Drag/Drop, we can also use Cut and Paste. Cut the source record, navigate to the new position and then move the record there .[/quote:2lj4w2gb] I agree.
move a record from xbrowse
[quote="nageswaragunupudi":2a7cu9a5]This is an example of moving a row from one position to another position by drag and drop. This is demonstrated with an array [code=fw:2a7cu9a5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, oFont, oCur, aData<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span><br /><br />   AEval<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span> |u,i| aData<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> := NtoCMonth<span style="color: #000000;">&#40;</span> i <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</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;">250</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<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 />      DATASOURCE aData COLUMNS <span style="color: #000000;">1</span> CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nStretchCol</span>      := <span style="color: #000000;">1</span><br />      :<span style="color: #000000;">oDragCursor</span>      := oCur<br />      :<span style="color: #000000;">bDragBegin</span>       := <span style="color: #000000;">&#123;</span> |r,c,f,o| SetDropInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> oBrw:<span style="color: #000000;">nArrayAt</span>, oBrw:<span style="color: #000000;">aRow</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bDropOver</span>        := <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />                                       oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                                       aDel<span style="color: #000000;">&#40;</span> aData, u<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />                                       AIns<span style="color: #000000;">&#40;</span> aData, oBrw:<span style="color: #000000;">nArrayAt</span>, u<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />                                       oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      <span style="color: #B900B9;">//</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2a7cu9a5][/quote:2a7cu9a5] Dear Mr Rao, thank for your sample. I use a Dbf into Order application and I must move all the row at n position as this: [img:2a7cu9a5]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/11/dd&#46;jpg[/img:2a7cu9a5] and this is my source [code=fw:2a7cu9a5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> TB<br />                         TB-><span style="color: #000000;">&#40;</span>DbSetOrder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />                         TB-><span style="color: #000000;">&#40;</span> OrdScope<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span> || cPreNumDoc <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />                         TB-><span style="color: #000000;">&#40;</span> OrdScope<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, <span style="color: #000000;">&#123;</span> || cPreNumDoc <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                         TB-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />        aBrowse     :=  <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"PAITEM"</span>      ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Codice"</span><span style="color: #000000;">&#41;</span>       ,<span style="color: #00C800;">nil</span>                  ,<span style="color: #000000;">50</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PADESC"</span>      ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Descrizione"</span><span style="color: #000000;">&#41;</span>  ,<span style="color: #00C800;">nil</span>                 ,<span style="color: #000000;">290</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PAQTY"</span>       ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Quantità"</span><span style="color: #000000;">&#41;</span>     ,<span style="color: #ff0000;">"9999"</span>               ,<span style="color: #000000;">45</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PAMISURA"</span>    ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Misura"</span><span style="color: #000000;">&#41;</span>       ,<span style="color: #00C800;">nil</span>                  ,<span style="color: #000000;">37</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PAUNITARIO"</span>  ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Unitario"</span><span style="color: #000000;">&#41;</span>     ,pict_money_Euro      ,<span style="color: #000000;">80</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PASCONTO"</span>    ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"%Sconto"</span><span style="color: #000000;">&#41;</span>       , <span style="color: #00C800;">nil</span>                ,<span style="color: #000000;">60</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PAPROVV"</span>     ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"%Provv."</span><span style="color: #000000;">&#41;</span>      ,<span style="color: #ff0000;">'@ 999.99%'</span>          ,<span style="color: #000000;">50</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PARIT"</span>       ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Ritenuta"</span><span style="color: #000000;">&#41;</span>     ,<span style="color: #00C800;">nil</span>                  ,<span style="color: #000000;">80</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PAIVA"</span>       ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Iva"</span><span style="color: #000000;">&#41;</span>          ,<span style="color: #ff0000;">"99%"</span>                ,<span style="color: #000000;">36</span> <span style="color: #000000;">&#125;</span>,;<br />                        <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PATOTALE"</span>    ,i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Importo"</span><span style="color: #000000;">&#41;</span>      ,pict_money_Euro      ,<span style="color: #000000;">80</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0.2</span> <span style="color: #0000ff;">XBROWSE</span> oBrw       ;<br />      <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> DATASOURCE <span style="color: #ff0000;">"TB"</span> ;<br />      COLUMNS aBrowse CELL LINES  FOOTERS NOBORDER   <span style="color: #0000ff;">FONT</span> oFont<br /><br /><br /> oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:2a7cu9a5] How I can make it with a dbf ? .. thanks
move a record from xbrowse
***** Italiano io farei cosi : all'indice da te creato aggiungo un campo num_riga ( preferibile un campo carattere con riempimento automatico con zeri a sinistra ) Nuovo Indice -> cPreNumDoc + Num_Riga crea campo num_riga con passo 1 ( 001, 002, 003, 004, etc.. ) (posso anche non far vedere il campo num_riga nel browse ) Poi clicco con il pulsante destro del mouse sul record/riga da muovere, memorizzo il record. (posso far apparire un messaggio che dica "copiato/selezionato" il num_riga). Poi clicco con il pulsante destro del mouse nel record/riga dove copiarlo/spostarlo e faccio uno scambio sul campo num_riga. saluti ( uso un traduttore automatico ) ***** English I would do so: the index you created to add a field num_riga (preferable a field with automatic filling with zeros to the left) New Index -> cPreNumDoc + Num_Riga creates filed num_riga with step number 1 (001, 002, 003, 004, etc ..) (I can also not to show the field num_riga in browse) Then I click them with the right mouse button on the record / row to move, I memorize the record. (I can bring up a message saying "copied / selected" the num_riga). Then I click with the right mouse button in the record / line where to copy / move it and do an exchange on the field num_riga. example: record 1 num_riga 001 record 2 num_riga 002 record 3 num_riga 003 .... ... record 10 num_riga 010 (to move) ... ... record 30 num_riga 030 (where to move) ... ... recod 100 num_riga 100 Step 1 click in the record 10 num_riga 010 Step 2 click in the record 30 num_riga 030 -----> function that reverse /swap num_riga at the end I'll have ' record 10 num_riga = 030 record 30 num_riga = 010 Greetings (Use an automatic translator)
move a record from xbrowse
[quote="nageswaragunupudi":cyy2goz5][quote="elvira":cyy2goz5]Mr. Nages, Can we please have this sample with a DBF?. Thank you.[/quote:cyy2goz5] This xbrowse example, after the end of the drag, informs the programmer, start record number and destination record number. The programmer has to decide if he wants to swap data of some fields between these two records or wants a visual re-ordering of the rows where the moved record appears in the new position. First thing to decide is how the programmer wants to record the change in the dbf. Once that is clear, it can be plugged into the bDropOver.[/quote:cyy2goz5] can you create asmal ltest with dbf thanks
move a record from xbrowse
Hello this works with ADO and field LINE_NUMBER [code=fw:149w78nf]<div class="fw" id="{CB}" style="font-family: monospace;"> :<span style="color: #000000;">oDragCursor</span> &nbsp; &nbsp; &nbsp;:= oCur<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bDragBegin</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |r,c,f,o| SetDropInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> oRs:<span style="color: #000000;">AbsolutePosition</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LINE_NUMBER"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> ,<span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bDropOver</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;u<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> := oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LINE_NUMBER"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LINE_NUMBER"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := u<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> ,oRS:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style="color: #000000;">AbsolutePosition</span> := u<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LINE_NUMBER"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := u<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> ,oRS:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRs:<span style="color: #000000;">ReQuery</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:149w78nf] Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
move a record from xbrowse
I wish move all fields and I not use oRs
move a record from xbrowse
Silvio, this sample moves record n to row-pos x. The record from pos x moves to the position of record n [img:1rw2o0qd]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Gradline&#46;png[/img:1rw2o0qd] [code=fw:1rw2o0qd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><span style="color: #00C800;">local</span> nMaxSal  := <span style="color: #000000;">0</span>, oCur, nPos1, h1, h2 <br /><span style="color: #00C800;">local</span> nProgClr := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">161</span>, <span style="color: #000000;">224</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br /><br />XBrNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />USE customer <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> CUST VIA <span style="color: #ff0000;">'DBFCDX'</span><br /><br />DBEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || nMaxSal := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nMaxSal, FIELD->Salary <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />GO TOP<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Progress Bars in XBrowse"</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont<br /><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />      COLUMNS <span style="color: #ff0000;">'First'</span>, <span style="color: #ff0000;">'Age'</span>, <span style="color: #ff0000;">'Salary'</span> ;<br />      <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 />      PICTURES <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'999.99 %'</span> ;<br />      <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> ;<br />      CELL LINES AUTOSORT NOBORDER FOOTERS<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">Salary</span><br />      :<span style="color: #000000;">nTotal</span>     := <span style="color: #000000;">0</span><br />      :<span style="color: #000000;">lTotal</span>     := .t.<br />      :<span style="color: #000000;">SetProgBar</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || nMaxSal <span style="color: #000000;">&#125;</span>,, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> nProgClr, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />END<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">Age</span><br />      :<span style="color: #000000;">cHeader</span>    := <span style="color: #ff0000;">'Percent'</span><br />      :<span style="color: #000000;">SetProgBar</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> nProgClr, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />END<br /><br />oBrw:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || nRPos := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                       nCPos := oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nCreationOrder</span>, ;<br />                       MsgAlert<span style="color: #000000;">&#40;</span> RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Record"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />WITH OBJECT oBrw<br />      :<span style="color: #000000;">nStretchCol</span>   := <span style="color: #000000;">1</span><br />      :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">oDragCursor</span>      := oCur<br />      :<span style="color: #000000;">bDragBegin</span>       := <span style="color: #000000;">&#123;</span> |r,c,f,o| nPos1 := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, h1 := FW_RecToHash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bDropOver</span>        := <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;h2 := FW_RecToHash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FW_HashToRec<span style="color: #000000;">&#40;</span> h1 <span style="color: #000000;">&#41;</span>, ;<br />                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DBGOTO<span style="color: #000000;">&#40;</span> nPos1 <span style="color: #000000;">&#41;</span>, ;<br />                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FW_HashToRec<span style="color: #000000;">&#40;</span> h2 <span style="color: #000000;">&#41;</span>, ;<br />                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1rw2o0qd] best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
move a record from xbrowse
sorry I not have FW_RecToHash() and FW_HashToRec functions
move a record from xbrowse
Silvio, I can show another function to save and write a record to a array if needed. best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
move a record from xbrowse
Silvio, A replacement of FW_RecToHash() and FW_HashToRec that works the same. [code=fw:3aset0j3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><span style="color: #00C800;">local</span> nMaxSal  := <span style="color: #000000;">0</span>, oCur, nPos1, h1, h2 <br /><span style="color: #00C800;">local</span> nProgClr := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">161</span>, <span style="color: #000000;">224</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> COLLECT1 := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, COLLECT2 := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br /><br />XBrNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />USE customer <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> CUST VIA <span style="color: #ff0000;">'DBFCDX'</span><br /><br />DBEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || nMaxSal := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nMaxSal, FIELD->Salary <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />GO TOP<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Progress Bars in XBrowse"</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont<br /><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />      COLUMNS <span style="color: #ff0000;">'First'</span>, <span style="color: #ff0000;">'Age'</span>, <span style="color: #ff0000;">'Salary'</span> ;<br />      <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 />      PICTURES <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'999.99 %'</span> ;<br />      <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> ;<br />      CELL LINES AUTOSORT NOBORDER FOOTERS<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">Salary</span><br />      :<span style="color: #000000;">nTotal</span>     := <span style="color: #000000;">0</span><br />      :<span style="color: #000000;">lTotal</span>     := .t.<br />      :<span style="color: #000000;">SetProgBar</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || nMaxSal <span style="color: #000000;">&#125;</span>,, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> nProgClr, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />END<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">Age</span><br />      :<span style="color: #000000;">cHeader</span>    := <span style="color: #ff0000;">'Percent'</span><br />      :<span style="color: #000000;">SetProgBar</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> nProgClr, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />END<br /><br />oBrw:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || nRPos := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                       nCPos := oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nCreationOrder</span>, ;<br />                       MsgAlert<span style="color: #000000;">&#40;</span> RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Record"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />WITH OBJECT oBrw<br />      :<span style="color: #000000;">nStretchCol</span>   := <span style="color: #000000;">1</span><br />      :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">oDragCursor</span>      := oCur<br />      :<span style="color: #000000;">bDragBegin</span>       := <span style="color: #000000;">&#123;</span> |r,c,f,o| nPos1 := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, COLLECT1 := RECREAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bDropOver</span>        := <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />                   COLLECT2 := RECREAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                   oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                   RECWRITE<span style="color: #000000;">&#40;</span>COLLECT1<span style="color: #000000;">&#41;</span>, ;<br />                   DBGOTO<span style="color: #000000;">&#40;</span> nPos1 <span style="color: #000000;">&#41;</span>, ;<br />                   RECWRITE<span style="color: #000000;">&#40;</span>COLLECT2<span style="color: #000000;">&#41;</span>, ;<br />                   oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RECREAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> FX, COLLECT := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <br /><br />nFields := FCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />FX := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> FX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nFields<br />    AADD<span style="color: #000000;">&#40;</span>COLLECT, FIELDGET<span style="color: #000000;">&#40;</span>FX<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> COLLECT <br /><br /><span style="color: #B900B9;">// ------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RECWRITE<span style="color: #000000;">&#40;</span>COLLECT<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> FX<br /><br />nFields := FCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />FX := <span style="color: #000000;">1</span><br />rlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">FOR</span> FX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nFields  <br />    FIELDPUT<span style="color: #000000;">&#40;</span>FX, COLLECT<span style="color: #000000;">&#91;</span>FX<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br />dbunlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3aset0j3]
move a record from xbrowse
Hello, Very interesting. But when I drag over, I found this error: [quote:3tt88yq8] Error occurred at: 11/15/15, 17:35:22 Error description: Error BASE/1074 Argument error: <= Args: [ 1] = U [ 2] = N 21 Stack Calls =========== Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:HEADERLBUTTONUP( 11096 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:LBUTTONUP( 3528 ) Called from: uvetest.prg => (b)MAIN( 64 ) Called from: .\source\classes\WINDOW.PRG => TXBROWSE:DROPOVER( 3285 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) [/quote:3tt88yq8] Thanks.
move a record from xbrowse
Lucas, What source code do you have there in line 11096 ? Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:HEADERLBUTTONUP( 11096 )
move a record from xbrowse
Uwe. Works fine onto my 12.04 version. Thanks. [code=fw:3etc9rp2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><span style="color: #00C800;">local</span> nMaxSal  := <span style="color: #000000;">0</span>, oCur, nPos1, h1, h2 <br /><span style="color: #00C800;">local</span> nProgClr := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">161</span>, <span style="color: #000000;">224</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> COLLECT1 := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, COLLECT2 := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> nRpos, nCpos<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br /><br />XBrNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">&#41;</span><br /><br />USE customer <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> CUST VIA <span style="color: #ff0000;">'DBFCDX'</span><br /><br />DBEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || nMaxSal := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nMaxSal, FIELD->Salary <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />GO TOP<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Progress Bars in XBrowse"</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont<br /><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />      COLUMNS <span style="color: #ff0000;">'First'</span>, <span style="color: #ff0000;">'Age'</span>, <span style="color: #ff0000;">'Salary'</span> ;<br />      <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 />      PICTURES <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'999.99 %'</span> ;<br />      <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> ;<br />      CELL LINES AUTOSORT NOBORDER FOOTERS<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">Salary</span><br />      :<span style="color: #000000;">nTotal</span>     := <span style="color: #000000;">0</span><br />      :<span style="color: #000000;">lTotal</span>     := .t.<br />      :<span style="color: #000000;">SetProgBar</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || nMaxSal <span style="color: #000000;">&#125;</span>,, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> nProgClr, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />END<br /><br />WITH OBJECT oBrw:<span style="color: #000000;">Age</span><br />      :<span style="color: #000000;">cHeader</span>    := <span style="color: #ff0000;">'Percent'</span><br />      :<span style="color: #000000;">SetProgBar</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> nProgClr, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />END<br /><br />oBrw:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || nRPos := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                       nCPos := oBrw:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nCreationOrder</span>, ;<br />                       MsgAlert<span style="color: #000000;">&#40;</span> RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Record"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />WITH OBJECT oBrw<br />      :<span style="color: #000000;">nStretchCol</span>   := <span style="color: #000000;">1</span><br />      :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">oDragCursor</span>      := oCur<br />      :<span style="color: #000000;">bDragBegin</span>       := <span style="color: #000000;">&#123;</span> |r,c,f,o| nPos1 := RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, COLLECT1 := RECREAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bDropOver</span>        := <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />                   COLLECT2 := RECREAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                   oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />                   RECWRITE<span style="color: #000000;">&#40;</span>COLLECT1<span style="color: #000000;">&#41;</span>, ;<br />                   DBGOTO<span style="color: #000000;">&#40;</span> nPos1 <span style="color: #000000;">&#41;</span>, ;<br />                   RECWRITE<span style="color: #000000;">&#40;</span>COLLECT2<span style="color: #000000;">&#41;</span>, ;<br />                   oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br />Cust-><span style="color: #000000;">&#40;</span>dbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RECREAD<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> FX, COLLECT := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <br /><span style="color: #00C800;">local</span> nFields := FCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />FX := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">FOR</span> FX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nFields<br />    AADD<span style="color: #000000;">&#40;</span>COLLECT, FIELDGET<span style="color: #000000;">&#40;</span>FX<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> COLLECT <br /><br /><span style="color: #B900B9;">// ------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RECWRITE<span style="color: #000000;">&#40;</span>COLLECT<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> FX<br /><span style="color: #00C800;">local</span> nFields := FCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />FX := <span style="color: #000000;">1</span><br />rlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">FOR</span> FX := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nFields  <br />    FIELDPUT<span style="color: #000000;">&#40;</span>FX, COLLECT<span style="color: #000000;">&#91;</span>FX<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br />dbunlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3etc9rp2]
move a record from xbrowse
Antonio, if nMRow <= ::oBrw:nHeaderHeight ; .and. nMCol <= ( ::nWidth + ::nDisplayCol ) Thanks!.
move a record from xbrowse
thank Uwe.
move a record from xbrowse
Lucas, This should solve it: :bDropOver := { |u,r,c,f| oBrw:LButtonDown( r,c ), ; oBrw:LButtonUp( r, c ), ; // r, c were missing aDel( aData, u[ 1 ] ), ; AIns( aData, oBrw:nArrayAt, u[ 2 ] ), ; oBrw:Refresh() }
move bitmap
Hello, I want to move a bitmap across a dialog, but it is really slow, how can I speed up the moving, maybe will be to code some thing in C some help? regards Marcelo [code=fw:1vtivw2h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oBmp, i := <span style="color: #000000;">0</span>, oTimer<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">1000</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> BITMAP oSprite FILE <span style="color: #ff0000;">"face.bmp"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> TRANSPARENT NOBORDER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> <span style="color: #ff0000;">"MOVER"</span> <span style="color: #0000ff;">of</span> odlg <span style="color: #0000ff;">action</span> oTimer:<span style="color: #0000ff;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> oSprite, @i, oTimer <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oTimer:<span style="color: #000000;">hWndOwner</span> := oDlg:<span style="color: #000000;">hWnd</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> <span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> oSprite, i, oTimer <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;i += <span style="color: #000000;">5</span><br />&nbsp; &nbsp;oSprite:<span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> + i, <span style="color: #000000;">10</span> + i <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> i > <span style="color: #000000;">400</span><br />&nbsp; &nbsp; &nbsp; oTimer:<span style="color: #000000;">deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1vtivw2h]
move bitmap
Marcelo, I think that INTERVAL 0 is not allowed. Please try with 1, or higher
move bitmap
Dear Antonio, first thank for your response, with interval 0 or 1 or 2 there are not difference. For linear moving, I can increase the steep displacement and get a better speed sensation, but for non uniform moving it is not smooth For start this work Thanks very much Regards Marcelo
move bitmap
Marcelo, I have not tested it myself but maybe a call to SysRefresh() will improve it
move bitmap
Compiling your sample I get: [code=fw:1bl9i5hp]<div class="fw" id="{CB}" style="font-family: monospace;">test.prg<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> Warning W0001 &nbsp;Ambiguous reference: <span style="color: #ff0000;">'TRANSPARENT'</span></div>[/code:1bl9i5hp] EMG
move bitmap
Hello Enrico, sorry I have my compile parameters very open, try with [code=fw:8jvfpnhl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oBmp, i := <span style="color: #000000;">0</span>, oTimer, oSprite<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">1000</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> BITMAP oSprite FILE <span style="color: #ff0000;">"face.bmp"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> NOBORDER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">100</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">button</span> <span style="color: #ff0000;">"MOVER"</span> <span style="color: #0000ff;">of</span> odlg <span style="color: #0000ff;">action</span> oTimer:<span style="color: #0000ff;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> oSprite, @i, oTimer <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oTimer:<span style="color: #000000;">hWndOwner</span> := oDlg:<span style="color: #000000;">hWnd</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> <span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> oSprite, i, oTimer <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;i += <span style="color: #000000;">5</span><br />&nbsp; &nbsp;oSprite:<span style="color: #0000ff;">move</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> + i, <span style="color: #000000;">10</span> + i <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> i > <span style="color: #000000;">400</span><br />&nbsp; &nbsp; &nbsp; oTimer:<span style="color: #000000;">deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;Sysrefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:8jvfpnhl]
move controls from dialog to window or panel
Hi. I remember there was a way to move dialog resources from the dialog to a window or another similar control. I'm trying to move the controls from a resource dialog to a panel. I remember it was something like odlg:sendtowindow( ownd ) or some like that. Can someone help? Thank you, Reinaldo.
move controls from dialog to window or panel
explain me where it can be usefull , because I not understood!!
move controls from dialog to window or panel
Ok... finally I was able to remember the trick. I'm posting it here because I know I will forget and now I know I can look at my previous posts and find the answer: [code=fw:1xcgb55i]<div class="fw" id="{CB}" style="font-family: monospace;">    <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">NOWAIT</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> ChangeParent<span style="color: #000000;">&#40;</span> oDlg, oOtherDlgOrWnd <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> ChangeParent<span style="color: #000000;">&#40;</span> oDlg, oChild <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n<br />   <br />    <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span><br />        SetParent<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hWnd</span>, oChild:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />        AAdd<span style="color: #000000;">&#40;</span> oChild:<span style="color: #000000;">aControls</span>, oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">next</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> </div>[/code:1xcgb55i] Reinaldo.
move controls from dialog to window or panel
[quote="Silvio":1nmlsl6h]explain me where it can be usefull , because I not understood!![/quote:1nmlsl6h] One example is :- You can use a resource editor to design your screen layouts on a [b:1nmlsl6h]DIALOG[/b:1nmlsl6h] and using the above posted example, you can move the controls (For eg. GET, SAY etc) from the dialog to a [b:1nmlsl6h]WINDOW[/b:1nmlsl6h] at runtime. Using a resource editor saves your screen designing time and once you have designed the screen, later you can move all the controls from the dialog to a window at run time. This becomes useful mostly when you want to use a window in your application and you need to design the screen layout using a resource editor. I have not used any resource editors till now, and what I understand is that you can design only [b:1nmlsl6h]DIALOG's[/b:1nmlsl6h] using a resource editor and [b:1nmlsl6h]NOT a WINDOW[/b:1nmlsl6h] Regards [b:1nmlsl6h]Anser[/b:1nmlsl6h]
move controls from dialog to window or panel
Perhaps with a pratical sample Can I understand But on Windows seven I not use a resource editor for the dialog because it too leak memory, i use pellesc only to save bmps We need an editor to create easy dialog on source code to create easy our applications
move controls from dialog to window or panel
Silvio; How are you? Anser's response is quite complete. There are also other situations where you MUST use a redefined control. I could list some. But I suppose one example is plenty. So far, I have never been able to create a dtpicker control with style DTS_SHOWNONE from source. That's a dtpicker control that might return an empty date. But with this technique I am able to place such control on a explorer panel. See below: [img:22kzgr1a]http&#58;//ssfl&#46;dynalias&#46;com/temp_files/2011-02-22_0935&#46;png[/img:22kzgr1a] Hope this helps, Reinaldo.
move data between xbrowse files
Hi, I wish to move the data from a cell of a list to another list based on mouse release position. can someone please help. Thanks and regards, Alfred
move data between xbrowse files
Set oBrw:lAllowPaste in the second browse. Press Ctrl-C in the cell of the first browse and then press Ctrl-V in the cell of the second browse.
move data between xbrowse files
This is an example of drag and drop [code=fw:3odc641n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBrw1, oBrw2, oCur<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aData := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE STATES <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">640</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"DRAG AND DROP"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"STATES"</span> <span style="color: #0000ff;">AUTOCOLS</span> ;<br />&nbsp; &nbsp; &nbsp; COLSIZES <span style="color: #000000;">60</span>,<span style="color: #000000;">180</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw1<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">oDragCursor</span> &nbsp; := oCur<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bDragBegin</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |r,c,f| SetDropInfo<span style="color: #000000;">&#40;</span> oBrw1:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>,<span style="color: #000000;">320</span> <span style="color: #0000ff;">XBROWSE</span> oBrw2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE aData <span style="color: #0000ff;">AUTOCOLS</span> ;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"CODE"</span>, <span style="color: #ff0000;">"NAME"</span> ;<br />&nbsp; &nbsp; &nbsp; COLSIZES <span style="color: #000000;">60</span>,<span style="color: #000000;">180</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw2<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bDropOver</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |u,r,c,f| DropOver<span style="color: #000000;">&#40;</span> u,r,c, oBrw1, oBrw2 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<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 /><br /><span style="color: #00C800;">function</span> DropOver<span style="color: #000000;">&#40;</span> uInfo, nRow, nCol, oBrw1, oBrw2 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aPoint<br /><br />&nbsp; &nbsp;aPoint &nbsp; &nbsp; &nbsp;:= ClientToScreen<span style="color: #000000;">&#40;</span> oBrw1:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">&#123;</span> nRow, nCol <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aPoint &nbsp; &nbsp; &nbsp;:= ScreenToClient<span style="color: #000000;">&#40;</span> oBrw2:<span style="color: #000000;">hWnd</span>, aPoint <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBrw2:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> aPoint<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aPoint<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw2:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> uInfo <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3odc641n] You can drag cell contents from left browse over to the right browse and drop on the destination cell.
move data between xbrowse files
From version FWH 1805, bDropOver can be simplified like this: [code=fw:2pzw39wl]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bDropOver</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |uInfo,r,c,f,aPt| oBrw2:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> aPt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aPt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, .t. <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span> uInfo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2pzw39wl] There is no need for separate function DropOver(...) as in the above sample.
move data between xbrowse files
this is very very nice !! Can we do this also with visual colors ? I have 2 ways that I use : 1. with jpg's that are color motives 2. Hex values that are used as colors references [img:wzm7nny5]https&#58;//www&#46;maveco&#46;be/fivewin/kleuren2&#46;jpg[/img:wzm7nny5] I my setup, It would be great to drop from the xbrowse (fotos or attribute) most right the color or jpg into colpic from the first xbrowse. Can this also work ?
move data between xbrowse files
1) You can. When the drag begins, set the information to be sent using SetDropInfo(). When the drop finishes, use the uInfo (1st parameter of bDropInfo) the way you want to. 2) Can you show me the part of your code dislaying the image on the top and title in the bottom?
move data between xbrowse files
You mean this part .. [code=fw:25s9mn60]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WITH OBJECT:<span style="color: #000000;">colpic</span><br />&nbsp; &nbsp;:<span style="color: #000000;">bStrImage</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">"r:<span style="color: #000000;">\p</span>ictures<span style="color: #000000;">\"</span>+alltrim(ATT->colpic) }<br />&nbsp; &nbsp;:oDataFont &nbsp; &nbsp; := oFontS<br />&nbsp; &nbsp;:nDataStrAlign := AL_CENTER + AL_BOTTOM<br />&nbsp; &nbsp;:nDataBmpAlign := AL_CENTER<br />&nbsp; &nbsp;:aImgRect &nbsp; &nbsp; &nbsp;:= { nil, nil, -10, nil }<br />END<br /></span></div>[/code:25s9mn60]
move data between xbrowse files
[quote="Marc Venken":2vemjcsg]You mean this part ? WITH OBJECT:colpic :bStrImage := { || "r:\pictures\"+alltrim(ATT->colpic) } <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->DataFont := oFontS :nDataStrAlign := AL_CENTER + AL_BOTTOM :nDataBmpAlign := AL_CENTER :aImgRect := { nil, nil, -10, nil } END[/quote:2vemjcsg] Yes. Very good.
move data between xbrowse files
Thanks Mr. G. N. Rao., tested your sample and work very well. regards alfred
move dialog
Dear Antonio, can you show us an example how we can handle the input for example in the marked field. How can we reposition the input fields automatically. Do we move the whole dialog. Thanks in advance and best regards, Otto [img:1polommu]http&#58;//www&#46;atzwanger-software&#46;com/fw/touchscreenClip7&#46;jpg[/img:1polommu]
move dialog
Dear Otto, We are checking it
move the bitmap of the xbrowse sort
[img:mdaw4foo]https&#58;//i&#46;postimg&#46;cc/bJGG9JzP/dd&#46;png[/img:mdaw4foo] I have this bitmap on Header to make the sort of the column of Xbrowse Ho I can to move the bitmap on the left before of the name of the column ? I make only WITH OBJECT oBrw :AddBitmap( { "SOR_TUP","SOR_TDW" } ) :lHScroll := .f. :CreateFromCode() END
move the bitmap of the xbrowse sort
Please try [code=fw:2j760i8r]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">SetSortBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SOR_TUP"</span>,<span style="color: #ff0000;">"SOR_TDW"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2j760i8r]
move the bitmap of the xbrowse sort
[quote="nageswaragunupudi":1797p3ac]Please try [code=fw:1797p3ac]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">SetSortBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SOR_TUP"</span>,<span style="color: #ff0000;">"SOR_TDW"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:1797p3ac][/quote:1797p3ac] Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A {} length: 0 [ 2] = N 1 Stack Calls =========== Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTBMPANDTEXT( 13879 ) Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTHEADER( 14044 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINTHEADER( 2825 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT( 2350 ) my config [code=fw:1797p3ac]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SOR_TUP"</span>,<span style="color: #ff0000;">"SOR_TDW"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lHScroll</span> &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetMultiSelectCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//---</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lIncrFilter</span> &nbsp; &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bOnSort</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |b,oCol| oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">cFilterFld</span> := oCol:<span style="color: #000000;">cExpr</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">oSeek</span> := oGet<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//----</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">SetSortBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SOR_TUP"</span>,<span style="color: #ff0000;">"SOR_TDW"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">RestoreState</span><span style="color: #000000;">&#40;</span> cState <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1797p3ac]
mover un elemento de un array
hola. Se puede, sin usar ains y luego copiar y luego adel, mover un elemento de un array a otra posicion del mismo arrray? a[1]:= "a" a[2]:= "b" a[3]:= "c" quedando como resultado final [quote:1x34xb9f]a[1]:= "a" a[2]:= "c" a[3]:= "b"[/quote:1x34xb9f] gracias.
mover un elemento de un array
Dependiendo de lo que quieras hacer y del tamaño del Array tal vez te funcione lo siguiente: cTmp := a[2] a[2] := a[3] a[3] := cTmp
mover un elemento de un array
Si a lo que te refieres es a inter-cambiar filas, prueba el siguiente codigo. [code=fw:1tve7ilz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> interCambFILA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oDlg, oBrw, oFont, oCur  <br />   <span style="color: #00C800;">local</span> aData<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span><br /><br />   AEval<span style="color: #000000;">&#40;</span> aData, <span style="color: #000000;">&#123;</span> |u,i| aData<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#123;</span> NtoCMonth<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>, i <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCur DRAG<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"DRAG/DROP: INTER-CAMBIAR FILAS"</span><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />           DATASOURCE aData COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span> CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nStretchCol</span>      := <span style="color: #000000;">1</span><br />      :<span style="color: #000000;">oDragCursor</span>      := oCur<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bDragBegin</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |r,c,f,o| SetDropInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> oBrw:<span style="color: #000000;">nArrayAt</span>, oBrw:<span style="color: #000000;">aRow</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bDropOver</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |u,r,c,f| oBrw:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> r,c <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span>r,c<span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aData<span style="color: #000000;">&#91;</span>u<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span> := oBrw:<span style="color: #000000;">aRow</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aData<span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span> := u<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">CURSOR</span> oCur<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1tve7ilz] Saludos.
mover un elemento de un array
Hola. No precisamente. Hoy por hoy tengo este codigo. [code=fw:2i8z1eo2]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; AIns<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aDatos</span>, nDestino + <span style="color: #000000;">1</span>, ::<span style="color: #000000;">aDatos</span><span style="color: #000000;">&#91;</span> nOrigen <span style="color: #000000;">&#93;</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ADel<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aDatos</span>, nOrigen + <span style="color: #000000;">1</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2i8z1eo2] y queria mejorarlo, pense que habia una funcion interna que podría utilizar. gracias.
mover un item de un arbol a otra posicion
Hola. Una vez añadido el item on item:= tree:add("valor nuevo") necesito ese item agregado moverlo por la rama (para arriba o para abajo) para posicionarlo donde deberia ir, hay algun metodo que pueda utlizar? Supongamos que tengo estas ramas 2021 2022 2023 y el insertado es 2020 a esta rama la necesito poner sobre la de 2021. gracias.
mover un item de un arbol a otra posicion
Gustavo, Puedes usar oItem:SwapUp() y oItem:SwapDown() pero de momento esto solo funciona dentro de los items de una misma rama y hay un error al intentar llegar a la primera posición que estamos intentando solucionar Revisa samples\pim.prg para ver como usarlos. Desde un elemento del árbol pulsa el botón derecho del ratón y verás las opciones que hay disponibles y puedes probar cada una de ellas
movimiento de splitter
Es posible capturar este evento. Necesitaria modificar el ancho de las columnas de un browse cuando muevo el splitter. Muchas gracias de antemano.
movimiento de splitter
IntentooBrw:onResizeoBrw:bResized
movimiento de splitter
utiliza la clausula ON CHANGE del SpliterSaludos
movimiento de splitter
Gracias por responder. Probaré las dos opciones. saludos
moving between DBF workareas
I am facing problem of co-cordinating my workareas usage and I need advice of how moving between them in that module . I need to execute aBase and reset modules for different DBF files but always I face error its fixing cost me to do select statemetn. [code:1fvp1r08] select 4 use mete index on mete->ME_mc_serl to mete index on str&#40;mete->year&#41; + str&#40;mete->month&#41; to mete1 index on mete->me_date to mete2 /* select 1 USE cust INDEX ON upper&#40;cust->cu_acct&#41; TO cust INDEX ON upper&#40;cust->cu_name&#41; TO cust1 INDEX ON upper&#40;cust->cu_coun&#41; TO cust2 INDEX ON upper&#40;cust->cu_city&#41; TO cust3 INDEX ON upper&#40;cust->cu_gove&#41; TO cust4 INDEX ON upper&#40;cust->cu_stre&#41; TO cust5 INDEX ON upper&#40;cust->cu_phon&#41; TO cust6 INDEX ON upper&#40;cust->cu_fax &#41; TO cust7 INDEX ON upper&#40;cust->cu_mobi&#41; TO cust8 INDEX ON upper&#40;cust->cu_man &#41; TO cust9 INDEX ON upper&#40;cust->cu_appr&#41; TO cust10 set INDEX TO cust select 3 use mach index on mach->MC_CU_ACCT to mach index on UPPER&#40;mach->MC_CU_name&#41; to mach1 index on UPPER&#40;mach->MC_ct_ctna&#41; to mach2 index on UPPER&#40;mach->MC_model&#41; to mach3 index on UPPER&#40;mach->MC_TYPE&#41;+UPPER&#40;mach->MC_model&#41; to mach4 index on UPPER&#40;mach->MC_serial&#41; to mach5 index on UPPER&#40;mach->MC_meres&#41; to mach6 index on UPPER&#40;mach->MC_brn&#41; to mach7 index on UPPER&#40;mach->MC_gateway&#41; to mach8 set index to mach1 select 2 USE cont INDEX ON cont->CT_CU_ACCT+dtoc&#40;cont->ct_strd&#41; TO cont INDEX ON cont->CT_CU_name TO cont1 INDEX ON cont->ct_strd TO cont2 INDEX ON cont->ct_endd TO cont3 INDEX ON cont->CT_machno TO cont4 INDEX ON cont->CT_mamc TO cont5 INDEX ON cont->ct_paymet TO cont6 INDEX ON cont->ct_payamt TO cont7 INDEX ON cont->ct_currenc TO cont8 INDEX ON cont->ct_excmet TO cont9 INDEX ON cont->ct_excamt TO cont10 INDEX ON cont->ct_minvol TO cont11 INDEX ON cont->ct_ctna TO cont12 SET INDEX TO cont12*/ DEFINE DIALOG oDlgn TITLE "Meter Reads Sheet Filtering Creteria" ; From 8, 2 TO 600, 700 PIXEL @ 45,2 SAY "Customer name" OF oDlgn PIXEL @ 45,50 SAY "&#58;" OF oDlgn PIXEL @ 45,55 COMBOBOX oCbx VAR v_cuna_cocmbo ITEMS aBase&#40;4,"mete",256,"me_cu_name"&#41; SIZE 110,80 ; OF oDlgn PIXEL ; valid &#40; reset&#40; v_cuna_cocmbo, oCbx2,"mete","me_cu_acct","me_cu_name"&#41; , &#46;t&#46; &#41; @ 60,2 SAY "Customer Account" OF oDlgn PIXEL @ 60,50 SAY "&#58;" OF oDlgn PIXEL @ 60,55 COMBOBOX oCbx2 VAR v_cuac_cocmbo ITEMS aItems size 110,80 ; OF oDlgn PIXEL; valid &#40; reset&#40; v_cuac_cocmbo, oCbx3,"mete","me_ct_ctna","me_cu_acct"&#41; , &#46;t&#46; &#41; @ 75,2 SAY "Contract name" OF oDlgn PIXEL @ 75,50 SAY "&#58;" OF oDlgn PIXEL @ 75,55 COMBOBOX oCbx3 VAR v_cona_cocmbo ITEMS aItems size 110,80 OF oDlgn PIXEL &#46;&#46;&#46; &#46;&#46; function reset&#40; cItem,oCbx,cFile,fld_na,filter_name&#41; //--------------------------------------------------- local aItems&#58;=&#123;&#125; local nArea&#58;= select&#40;&#41; local y&#58;=0 use &#40;cFile&#41; new set filter to cItem = &&#40;filter_name&#41; go top do while ! eof&#40;&#41; y&#58;=ASCAN&#40;aItems,&#40;cFile&#41;->&fld_na&#41; if y==0 aAdd&#40;aItems,&#40;cFile&#41;->&fld_na&#41; dbSkip&#40;&#41; else dbSkip&#40;&#41; endif ENDDO *use select&#40; nArea &#41; oCbx&#58;setItems&#40; aItems &#41; oCbx&#58;refresh&#40;&#41; return nil //-----------------------------------------// function aBase&#40;x,cFile,xx,cField&#41; *-------------------------------- local aItems&#58;=&#123;&#125; local y&#58;=0 local nArea&#58;=select&#40;&#41; aAdd&#40;aItems,space&#40;256&#41;&#41; //Put First element empty use &#40;cFile&#41; new index on &&#40;cField&#41; to temp go top do while ! eof&#40;&#41; y&#58;=ASCAN&#40;aItems,&#40;cFile&#41;->&cField&#41; if y==0 aAdd&#40;aItems,&#40;cFile&#41;->&cField&#41; dbSkip&#40;&#41; else dbSkip&#40;&#41; endif enddo ferase&#40;"temp&#46;ntx"&#41; select&#40;nArea&#41; return aItems [/code:1fvp1r08]
moving between DBF workareas
Try removing aliases from index keys. EMG
moving between DBF workareas
Insert "SET INDEX TO" before FERASE() in aBase().
moving between DBF workareas
Ehab, I know it is all new to you, but if you use the database class you don't have to deal with aliases and workareas at all. It is so much easier to program after you learn the basics of the database class. And you will have few bugs. As I may have mentioned before, there are two articles on this on my website. James
moving the wheel of the mouse
I need to use the wheel of the mouse for a long dialog to move up and down instead of Horizontal bar. Can any body help me find the code for it ?Thanks
moving the wheel of the mouse
bMMoved:={|row,col|MyFun()}
moving the wheel of the mouse
what will be myfun in this dialog ?
moving to MSVC 32 bits
Hello, I am going to move to MSVC and I think it is a good idea to start a new topic with the questions I have, so it would be very usefull for further users. In first place, Antonio please would be possible for FW 13.02 to have updated Harbour build and fwh\makes\msmakes.zip please?. What version of MSVC should I use, 2010 or 2010?. Also, I please need the make file for making a lib. This is how I build it under BCC: [quote:1ypuo8gb]REM @echo off cls del obj\*.* /q del lib\*.lib rem rem SET HB_DIR=c:\harbour SET BCC_DIR=c:\bcc582 SET FW_DIR=c:\FWH if "%1" == "clean" goto CLEAN if "%1" == "CLEAN" goto CLEAN :BUILD %BCC_DIR%\bin\make -fLIB.mak %1 %2 %3 >> make_libh.log if errorlevel 1 goto BUILD_ERR :BUILD_OK goto EXIT :BUILD_ERR notepad make_libh.log goto EXIT :CLEAN if exist lib\*.lib del lib\*.lib if exist source\obj\*.obj del source\obj\*.obj goto EXIT :EXIT del *.log [/quote:1ypuo8gb] The lib.mak file: [code=fw:1ypuo8gb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># Libray directories & filenames #############################################<br /><br />LIB_NAME &nbsp; &nbsp; &nbsp; &nbsp; = lib\custom_fivewin.lib<br />LIB_PRG_DIR &nbsp; &nbsp; &nbsp;= source<br />LIB_OBJ_DIR &nbsp; &nbsp; &nbsp;= obj<br />LIB_INCLUDE_DIR &nbsp;= include<br /><br /><br /># <span style="color: #0000ff;">LIBRARY</span> PRG files <span style="color: #000000;">&#40;</span>your PRG files go here<span style="color: #000000;">&#41;</span> #################################<br /><br />LIB_PRG_LIST = &nbsp;rpreview.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; meter.prg &nbsp;\<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msgget.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; varios.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">xbrowse</span>.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errsysw.prg <br /><br /><br />LIB_C_LIST = funcionesc.c<br /><br /># Make directives ############################################################<br /><br />.autodepend<br />.swap<br />.suffixes: .prg .hrb .c<br /><br /># Paths <span style="color: #00C800;">for</span> dependent files ##################################################<br /><br />.path.prg = $<span style="color: #000000;">&#40;</span>LIB_PRG_DIR<span style="color: #000000;">&#41;</span><br />.path.c &nbsp; = $<span style="color: #000000;">&#40;</span>LIB_PRG_DIR<span style="color: #000000;">&#41;</span><br />.path.hrb = $<span style="color: #000000;">&#40;</span>LIB_OBJ_DIR<span style="color: #000000;">&#41;</span><br />.path.obj = $<span style="color: #000000;">&#40;</span>LIB_OBJ_DIR<span style="color: #000000;">&#41;</span><br /><br /># Contruction <span style="color: #0000ff;">of</span> the rest dependency lists ###################################<br /><br />LIB_PRGS &nbsp;= $<span style="color: #000000;">&#40;</span>LIB_PRG_LIST<span style="color: #000000;">&#41;</span><br />LIB_C &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>LIB_C_LIST<span style="color: #000000;">&#41;</span><br />LIB_HRB &nbsp; = $<span style="color: #000000;">&#40;</span>LIB_PRG_LIST:.prg=.hrb<span style="color: #000000;">&#41;</span><br />LIB_OBJS &nbsp;= $<span style="color: #000000;">&#40;</span>LIB_PRG_LIST:.prg=.obj<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_C_LIST:.c=.obj<span style="color: #000000;">&#41;</span><br /><br /># FiveWin directories & flags ################################################<br /><br />FW_INCLUDE_DIR = $<span style="color: #000000;">&#40;</span>FW_DIR<span style="color: #000000;">&#41;</span>\include<br />FW_LIB_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>FW_DIR<span style="color: #000000;">&#41;</span>\lib<br /><br /># Harbour directories & flags ################################################<br /><br />HARBOUR_INCLUDE_DIR = $<span style="color: #000000;">&#40;</span>HB_DIR<span style="color: #000000;">&#41;</span>\include<br />HARBOUR_EXE_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>HB_DIR<span style="color: #000000;">&#41;</span>\bin<br />HARBOUR_LIB_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>HB_DIR<span style="color: #000000;">&#41;</span>\lib<br />HARBOUR_FLAGS &nbsp; &nbsp; &nbsp; = -i$<span style="color: #000000;">&#40;</span>LIB_INCLUDE_DIR<span style="color: #000000;">&#41;</span>;$<span style="color: #000000;">&#40;</span>HARBOUR_INCLUDE_DIR<span style="color: #000000;">&#41;</span>;$<span style="color: #000000;">&#40;</span>FW_INCLUDE_DIR<span style="color: #000000;">&#41;</span> -n -m -w -es2 -gc0<br />HARBOUR_EXE &nbsp; &nbsp; &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>HARBOUR_EXE_DIR<span style="color: #000000;">&#41;</span>\harbour.exe<br /><br /># Borlanc directories & flags ################################################<br /><br />BORLANDC_INCLUDE_DIR = $<span style="color: #000000;">&#40;</span>BCC_DIR<span style="color: #000000;">&#41;</span>\include<br />BORLANDC_EXE_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>BCC_DIR<span style="color: #000000;">&#41;</span>\bin<br />BORLANDC_LIB_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>BCC_DIR<span style="color: #000000;">&#41;</span>\lib<br />BORLANDC_COMP_FLAGS &nbsp;= -c -O2 -I$<span style="color: #000000;">&#40;</span>HARBOUR_INCLUDE_DIR<span style="color: #000000;">&#41;</span>;$<span style="color: #000000;">&#40;</span>BORLANDC_INCLUDE_DIR<span style="color: #000000;">&#41;</span><br />BORLANDC_COMP_EXE &nbsp; &nbsp;= $<span style="color: #000000;">&#40;</span>BORLANDC_EXE_DIR<span style="color: #000000;">&#41;</span>\bcc32.exe<br />BORLANDC_LIB_EXE &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>BORLANDC_EXE_DIR<span style="color: #000000;">&#41;</span>\tlib.exe<br /><br /># Dependencies ###############################################################<br /><br />all: $<span style="color: #000000;">&#40;</span>LIB_OBJS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_HRB<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_NAME<span style="color: #000000;">&#41;</span><br /><br /># Implicit Rules #############################################################<br /><br />.prg.hrb:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>HARBOUR_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HARBOUR_FLAGS<span style="color: #000000;">&#41;</span> $** -o$@<br /><br />.c.obj:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_COMP_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>BORLANDC_COMP_FLAGS<span style="color: #000000;">&#41;</span> -D__HARBOUR__;HB_API_MACROS -o$@ $**<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_LIB_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_NAME<span style="color: #000000;">&#41;</span> -+ $@,,<br /><br />.hrb.obj:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_COMP_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>BORLANDC_COMP_FLAGS<span style="color: #000000;">&#41;</span> -o$@ $**<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_LIB_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_NAME<span style="color: #000000;">&#41;</span> -+ $@,,<br /><br /><br />&nbsp;</div>[/code:1ypuo8gb] Thanks a lot. Best regards,
moving to MSVC 32 bits
Lucas, This is the last Harbour for MSVC build that we published: [url:2chzc5ox]http&#58;//code&#46;google&#46;com/p/harbour-and-xharbour-builds/downloads/detail?name=Harbour-3&#46;1&#46;0-MSVC-Express&#46;zip&can=2&q=microsoft[/url:2chzc5ox] No one else asked for a newer version, so I am happy that you ask for it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I think that Microsoft C is a great compiler, and it is available for free, though it is not open source. If you are using Windows 8, then MSVC 2012 would seem the right choice. But you can keep using MSVC 2010, if you want to. Which one do you prefer ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
moving to MSVC 32 bits
Lucas, In FWH\makes\vs2010_make.zip you have a make file for MS VC 2010. Its quite simple to adapt it to build a library <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
moving to MSVC 32 bits
Antonio, As you use MSVC 2010 I think I will use same version, 2010. Could you please provide the .zip file as this one http:... (edited by A.L.) And also, can you provide please rc.exe to compile .rc files please?. Finally, when you have time I would appreciate the help with the make for the .lib. The flags are different for making an .exe than a .lib. Thank you very much. Also I hope this post will help users to move to MSVC and, also, prepare the road for FWH64 <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->.
moving to MSVC 32 bits
Lucas, You should use MSVC 2010 express installer. As it is, from Microsoft. We are not allowed to provide those files in any way. If we did it, sometimes in the past, is because they were not easily available, just to help users. When an official installer works fine, we always recommend to use the original files from the manufacturer (Microsoft in this case).
moving to MSVC 32 bits
Antonio, Thank you, it was for avoiding installing such garbage of the full product. When you have time, please I would appreciate the make file for building a .lib. Also, it will be very important for users. Thanks.
moving to MSVC 32 bits
[quote:cf6w0717]When you have time, please I would appreciate the make file for building a .lib with MSVC2010[/quote:cf6w0717] Thank you so much.
moving to MSVC 32 bits
Lucas, go.bat [code=fw:2hue5895]<div class="fw" id="{CB}" style="font-family: monospace;">c:\<span style="color: #ff0000;">"Program Files (x86)<span style="color: #000000;">\M</span>icrosoft Visual Studio 10.0"</span>\VC\bin\nmake -ftest.mak</div>[/code:2hue5895] test.mak [code=fw:2hue5895]<div class="fw" id="{CB}" style="font-family: monospace;">HBDIR=c:\harbour<br />FWDIR=c:\fwh<br />VCDIR=<span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files (x86)<span style="color: #000000;">\M</span>icrosoft Visual Studio 10.0<span style="color: #000000;">\V</span>C"</span><br />SDKDIR=<span style="color: #ff0000;">"c:<span style="color: #000000;">\P</span>rogram Files (x86)<span style="color: #000000;">\M</span>icrosoft SDKs<span style="color: #000000;">\W</span>indows<span style="color: #000000;">\v</span>7.0A"</span><br /><br />.SUFFIXES: .prg .c .obj<br /><br />test.lib : <span style="color: #000000;">one</span>.obj two.obj three.obj<br />   <span style="color: #00C800;">if</span> not exist test.lib $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\lib /DEF:<span style="color: #000000;">test</span>.def /OUT:<span style="color: #000000;">test</span>.lib<br />   $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\lib test.lib /OUT:<span style="color: #000000;">test</span>.lib one.obj two.obj three.obj<br />   <br />one.obj   : <span style="color: #000000;">one</span>.c<br />two.obj   : <span style="color: #000000;">two</span>.c<br />three.obj : <span style="color: #000000;">three</span>.c<br /><br />one.c   : <span style="color: #000000;">one</span>.prg<br />two.c   : <span style="color: #000000;">two</span>.prg<br />three.c : <span style="color: #000000;">three</span>.prg<br /><br />.prg.c:<br />   $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< /n /i$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br /><br />.c.obj:<br />   SET PATH=$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin<br />   cl.exe -c -TP -W3 -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>SDKDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\include $<<br /> </div>[/code:2hue5895] test.def [code=fw:2hue5895]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">LIBRARY</span> test<br /><br />EXPORTS<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dummy &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">1</span></div>[/code:2hue5895]
moving to MSVC 32 bits
I can send to you xdevstudio configured to suport harbour and xHarbour for BCC and MVC Regards,
moving to MSVC 32 bits
Nicanor, The script posted by Antonio works fine. The only problem is to indicate a different directory for sources and objs: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewforum.php?f=6">viewforum.php?f=6</a><!-- l --> That´s the remaining issue to rebuild my App. Thanks a lot.
moving to MSVC 32 bits
This is an example script to compile application using make from borland and compiling with MSVC c:\bcc58\bin\make -K -fmakefile0.mak makefile0.mak [code=fw:34q5git2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />#Microsoft make sample, <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech Software <span style="color: #000000;">2005</span><br /><br />HBDIR=c:\devel\hb\hb21<br />VCDIR=c:\devel\c\vc2008<br />FWDIR=c:\devel\fwh\fwh<br /><br />.SUFFIXES: .prg .c .obj .rc .res<br /><br />controleshm.exe : .\resource2\controles.res .\obj\controles.obj .\obj\wbrwlineh_vc.obj .\obj\updftp2.obj .\obj\xbrowse1105.obj .\obj\wbrowseh.obj .\obj\dic.obj .\obj\dsay.obj .\obj\empresas.obj .\obj\errsysw.obj .\obj\fastreph.obj .\obj\femail.obj .\obj\fwcal.obj .\obj\gestionreportes.obj .\obj\mysql_utils.obj .\obj\procesos.obj .\obj\quickwin.obj .\obj\rddarray.obj .\obj\recursosn.obj .\obj\sayref.obj .\obj\setbrw.obj .\obj\tcb1007.obj .\obj\tcbrowse.obj .\obj\testfile2.obj .\obj\testxbr3.obj .\obj\tfilexls.obj .\obj\tmultiuse.obj .\obj\tsysinfo.obj .\obj\usuarios.obj .\obj\xlserror.obj .\obj\xlsfunc.obj .\resource2\controles.res<br />&nbsp; &nbsp;echo .\obj\controles.obj .\obj\wbrwlineh_vc.obj .\obj\xbrowse1105.obj .\obj\wbrowseh.obj .\obj\updftp2.obj .\obj\dic.obj .\obj\dsay.obj .\obj\empresas.obj .\obj\errsysw.obj .\obj\fastreph.obj .\obj\femail.obj .\obj\fwcal.obj .\obj\gestionreportes.obj .\obj\mysql_utils.obj .\obj\procesos.obj .\obj\quickwin.obj .\obj\rddarray.obj .\obj\recursosn.obj .\obj\sayref.obj .\obj\setbrw.obj .\obj\tcb1007.obj .\obj\tcbrowse.obj .\obj\testfile2.obj .\obj\testxbr3.obj .\obj\tfilexls.obj .\obj\tmultiuse.obj .\obj\tsysinfo.obj .\obj\usuarios.obj .\obj\xlserror.obj .\obj\xlsfunc.obj > msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHM.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHCM.lib >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\dolphinhm.lib >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\libmysqlm.lib >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\xhb.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbrtl.lib &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbvm.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\gtgui.lib &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hblang.lib &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbmacro.lib &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbrdd.lib &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\rddntx.lib &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\rddcdx.lib &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\rddfpt.lib &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbsix.lib &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbct.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbdebug.lib &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbcommon.lib &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbpp.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbcpage.lib &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbwin.lib &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbcplr.lib &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\mvc\hbpcre.lib &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\kernel32.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\user32.lib &nbsp; &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\gdi32.lib &nbsp; &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\winspool.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\comctl32.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\comdlg32.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\advapi32.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\shell32.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\ole32.lib &nbsp; &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\oleaut32.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\uuid.lib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\odbc32.lib &nbsp; &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\odbccp32.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\iphlpapi.lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\mpr.lib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\WinMM.Lib &nbsp; &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\psapi.lib &nbsp; &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\mem32i.lib &nbsp; &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\send32i.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\libcmt.Lib &nbsp; &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\OLDNAMES.Lib &nbsp; &nbsp; &nbsp;>> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\version.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\wsock32.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\msimg32.lib &nbsp; &nbsp; &nbsp; >> msvc.tmp<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib\oledlg.lib &nbsp; &nbsp; &nbsp; &nbsp;>> msvc.tmp<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> EXIST .\resource2\controles.res echo .\resource2\controles.res >> msvc.tmp<br /><br />&nbsp; &nbsp;SET LIB=$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\lib<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\link @msvc.tmp /nologo /subsystem:<span style="color: #000000;">windows</span> /force:<span style="color: #000000;">multiple</span> /ignore:<span style="color: #000000;">4006</span> /NODEFAULTLIB:<span style="color: #000000;">libc</span> /OUT:<span style="color: #000000;">bin</span>\controlesHm.exe > link.log<br /><br />&nbsp; &nbsp;@type link.log<br />&nbsp; &nbsp;@copy msvc.tmp msvc.log<br />&nbsp; &nbsp;@del msvc.tmp<br /><br /><br />.\obj\controles.c &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\controles.prg<br />.\obj\dic.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\dic.prg<br />.\obj\dsay.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\dsay.prg<br />.\obj\empresas.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\empresas.prg<br />.\obj\errsysw.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\errsysw.prg<br />.\obj\fastreph.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\fastreph.prg<br />.\obj\femail.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\femail.prg<br />.\obj\fwcal.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\fwcal.prg<br />.\obj\gestionreportes.c &nbsp; : .\source\prg\gestionreportes.prg<br />.\obj\mysql_utils.c &nbsp; &nbsp; &nbsp; : .\source\prg\mysql_utils.prg<br />.\obj\procesos.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\procesos.prg<br />.\obj\quickwin.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\quickwin.prg<br />.\obj\rddarray.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\rddarray.prg<br />.\obj\recursosn.c &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\recursosn.prg<br />.\obj\sayref.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\sayref.prg<br />.\obj\setbrw.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\setbrw.prg<br />.\obj\tcb1007.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\tcb1007.prg<br />.\obj\tcbrowse.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\tcbrowse.prg<br />.\obj\testfile2.c &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\testfile2.prg<br />.\obj\testxbr3.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\testxbr3.prg<br />.\obj\tfilexls.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\tfilexls.prg<br />.\obj\tmultiuse.c &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\tmultiuse.prg<br />.\obj\tsysinfo.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\tsysinfo.prg<br />.\obj\usuarios.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\usuarios.prg<br />.\obj\xlserror.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\xlserror.prg<br />.\obj\xlsfunc.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\xlsfunc.prg<br />.\obj\xbrowse1105.c &nbsp; &nbsp; &nbsp; : .\source\prg\xbrowse1105.prg<br />.\obj\updftp2.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : .\source\prg\updftp2.prg<br />.\obj\wbrowseh.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: .\source\prg\wbrowseh.prg<br />.\obj\wbrwlineh_vc.obj &nbsp; &nbsp;: .\source\c\wbrwlineh_vc.c<br />.\resource2\controles.res : .\resource2\controles.rc<br /><br />.c.obj :<br />&nbsp;$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\cl -c -W3 -GA -D__FLAT__ -D_CRT_SECURE_NO_WARNINGS -D__MVC__ -D__HARBOUR__ -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\sdk\include -Fo$@ $<<br /># $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\cl -c -TP -W3 -GA -D__FLAT__ -D_CRT_SECURE_NO_WARNINGS -D__HARBOUR__ -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\sdk\include -Fo$@ $<<br /><br />.prg.c :<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\mvc\harbour -o$@ -d__MVC__ $< /n /i$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;c:\fuentes\librerias\recurlib\include;c:\tdolphing\include<br /><br />#.c.obj :<br /># &nbsp; $<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\cl -c -TP -W3 -GA -D_CRT_SECURE_NO_WARNINGS -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\sdk\include -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -Fo$@ $<<br /><br />.rc.res:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\bin\rc -r -d__FLAT__ -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\include -I$<span style="color: #000000;">&#40;</span>VCDIR<span style="color: #000000;">&#41;</span>\sdk\include -Fo$@ $<<br /><br /><br /><br /><br />&nbsp;</div>[/code:34q5git2]