topic
stringlengths
1
63
text
stringlengths
1
577k
redirecting index.prg
[url:wbg1tlf5]https&#58;//css-tricks&#46;com/snippets/html/meta-refresh/[/url:wbg1tlf5] Very nice to find that there is a lot of interest for mod_harbour from our Chinese brothers <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
redirecting index.prg
[quote="ssbbs":x89fj8sb]You can use WYSIWYG web design software to design your website and embedded into prg code like PHP in general. but save file name is .prg not .php open browser and open the .prg This is the closest web design mode![/quote:x89fj8sb] We do appreciate if you could post here some screenshots. It seems very interesting <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
redirecting index.prg
*2021.08.21: fix 1. Fix: If there is no'<?prg' and '?>' in the entire webpage, it will cause a failure error message. 2. New addition: <?php ... ?> and <?prg ... ?> can be executed simultaneously in HTML. Description: The execution order: first execute PHP code before execution PRG code. This function cannot be executed correctly when the extension is .hrb, because .hrb is pre-compiled and cannot be called again to recompile PHP! It must be set to call to get php under the path (SET PATH=...). Or to set environment variables: 'PHP_PATH' Execution result & part of the code: [img:2b3249k9]https&#58;//i&#46;imgur&#46;com/lL2zJvt&#46;jpg[/img:2b3249k9] download it:
reduce an image to a fixed size
Good Morning, Can someone please help me with some source code on how to reduce an image to a fixed size. Many thanks in advance Otto
reduce an image to a fixed size
ResizeBitmap( hBitmap, nWidth, nHeight ) --> hResizedBmp
reduce an image to a fixed size
Dear Mr. Rao, Thank you. Would you be so kind as to show me the best way to get the handle and how to save the new BMP. Best regards, Otto
reduce an image to a fixed size
local hBmp local hDib := DibFromBitmap( hBmp := ResizeBitmap( hBitmap, nWidth, nHeight ) ) DibWrite( cFileName, hDib ) GloBalFree( hDib ) DeleteObject( hBmp )
reduce an image to a fixed size
Dear Antonio, Thank you. In my case, the image is now saved with 96 dpi and a bit depth of 32. The size of the picture is 1,920 KB. If I do the whole thing with PAINT, I get a picture that 226 KB, DPI 72, and bit depth 24. How can I reduce the DPIs and the color depth with FIVEWIN. Thank you in advance Otto
reduce an image to a fixed size
Dear Otto, It seems as we need to use the function SetDIBColorTable() [url:2lza5q5g]https&#58;//docs&#46;microsoft&#46;com/en-us/windows/win32/api/wingdi/nf-wingdi-setdibcolortable[/url:2lza5q5g] Maybe there is a simpler way using GDI+
reduce an image to a fixed size
Dear Antonio, I tried with [code=fw:1jgvfrv0]<div class="fw" id="{CB}" style="font-family: monospace;"> oImage &nbsp; := GdiBmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\2</span>04.jpg"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oImage:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span> nWidth, nHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oImage:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"newfile.jpg"</span>, nQuality <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oImage:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:1jgvfrv0] The result is good. Thank you and have a nice weekend. Otto
reduce an image to a fixed size
Hello, Now I can resize all my images in a quick and easy batch mode for WINDOWS QR. This is a web page I made with [b:10vold6e]mod harbour[/b:10vold6e]. The small images are loaded first and the large ones asynchronously. As soon as a large picture is loaded, the small one will be replaced. With this method, the web page loads quickly. The contents of all stick boxes can be displayed on the PC, and then you can zoom into the boxes. The correct box can then be found using the warehouse number. But you can also read the QR code on the stick box with your smartphone, and then the content is displayed on the mobile phone. Best regards, Otto [code=fw:10vold6e]<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 />    <span style="color: #00C800;">local</span> oImage<br />    <span style="color: #00C800;">local</span> nQuality := <span style="color: #000000;">0</span><br />    <span style="color: #00C800;">local</span> I  := <span style="color: #000000;">0</span><br />    <span style="color: #00C800;">local</span> cPfad := <span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>ilder<span style="color: #000000;">\"</span><br />    local aDir := directory(  cPfad +  "</span>*.jpg<span style="color: #ff0000;">","</span>DHS<span style="color: #ff0000;">")<br />    local cSrc := "</span><span style="color: #ff0000;">"<br />    local nWidth := 800<br />    local nHeight := 600<br />    *----------------------------------------------------------<br />   <br />   lMKDir( cPfad + "</span>\klein<span style="color: #ff0000;">" )<br />   <br />   for I := 1 to len( aDir )<br />       cSrc := aDir[I,1]<br />        oImage   := GdiBmp():New( cPfad + cSrc )<br />       oImage:Resize( nWidth, nHeight )<br />       <br />       oImage:Save( cPfad + "</span>\klein\<span style="color: #ff0000;">" + cFileNoPath( cSrc ) , nQuality )<br />       oImage:End()<br />   next<br />   <br />   ? "</span>Ende<span style="color: #ff0000;">"<br />   <br />return nil<br />//----------------------------------------------------------------------------//<br /><br /></span></div>[/code:10vold6e] [img:10vold6e]https&#58;//mybergland&#46;com/fwforum/buecherboxgrafik4&#46;png[/img:10vold6e] [img:10vold6e]https&#58;//mybergland&#46;com/fwforum/buecherboxgrafik1&#46;png[/img:10vold6e] [img:10vold6e]https&#58;//mybergland&#46;com/fwforum/buecherboxgrafik3&#46;png[/img:10vold6e] [img:10vold6e]https&#58;//mybergland&#46;com/fwforum/buecherboxgrafik2&#46;png[/img:10vold6e] [img:10vold6e]https&#58;//mybergland&#46;com/fwforum/buecherboxwn&#46;gif[/img:10vold6e]
reduce an image to a fixed size
Interesting !! Will this keep a good quality of jpg's ?? I use folowing technic for my update of webshop pictures. With Fw I select and create my menu and the products inside the menu. Than I copy from source jpg's (all random size i got from manufacturers) to a picture folder and use nConvert with a .bat file to convert to 3 formats needed. These 3 folders need to be uploaded with FTP to the server of the webshop. If the pictures from Otto are Ok, then maybe I can start using his code for this. I have seen also some code to upload pic's from home to the server of the hosting company. They gave my rights to do it with Ftp, so I think I can use it also for copy direct from FW. Is the right ?
reduce an image to a fixed size
Dear Otto, many thanks for sharing your solution <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
reemplazar un valor en una cadena caracteres
Compañeros, buenas tardes: ¿Sabeis la función que reemplaza un valor dentro de una cadena de caracteres? Tengo una DBF con el campo NOMBRE,C,40 pero necesito hacer un barrido y cambiar todas las "A" del campo NOMBRE por "C" algo así como remplezar(nombre,"A","C") Mil gracias. LORENZO.
reemplazar un valor en una cadena caracteres
Lorenzo, si usas harbour tienes que enlazar hbct.lib La funcion es Charrepl() te dejo debajo como funciona Saludos /* * $Id: charrepl.txt 15102 2010-07-14 12:48:39Z vszakats $ */ /* $DOC$ * $FUNCNAME$ * CHARREPL() * $CATEGORY$ * CT3 string functions * $ONELINER$ * Replacement of characters * $SYNTAX$ * CHARREPL (<cSearchString>, <[@]cString>, * <cReplaceString>, [<lMode>]) -> cString * $ARGUMENTS$ * <cSearchString> is a string of characters that should be replaced * <[@]cString> is the processed string * <cReplaceString> is a string of characters that replace the one * of <cSearchString> * [<lMode>] sets the replacement method (see description) * Default: .F. * $RETURNS$ * <cString> the processed string * $DESCRIPTION$ * The CHARREPL() function replaces certain characters in <cString> * with others depending on the setting of <lMode>. * If <lMode> is set to .F., the function takes the characters of * <cSearchString> one after the other, searches for them in <cString> * and, if successful, replaces them with the corresponding character * of <cReplaceString>. Be aware that if the same characters occur * in both <cSearchString> and <cReplaceString>, the character on a * certain position in <cString> can be replaced multiple times. * if <lMode> is set to .T., the function takes the characters in <cString> * one after the other, searches for them in <cSearchString> and, if * successful, replaces them with the corresponding character of * <cReplaceString>. Note that no multiple replacements are possible * in this mode. * If <cReplaceString> is shorter than <cSearchString>, the last * character of <cReplaceString> is used as corresponding character * for the the "rest" of <cSearchString>. * One can omit the return value by setting the CSETREF() switch to .T., * but then one must pass <cString> by reference to get the result. * $EXAMPLES$ * ? charrepl ("1234", "1x2y3z", "abcd") // "axbycz" * ? charrepl ("abcdefghij", "jhfdb", "1234567890") // "08642" * ? charrepl ("abcdefghij", "jhfdb", "12345") // "55542" * ? charrepl ("1234", "1234", "234A") // "AAAA" * ? charrepl ("1234", "1234", "234A", .T.) // "234A" * $TESTS$ * charrepl ("1234", "1x2y3z", "abcd") == "axbycz" * charrepl ("abcdefghij", "jhfdb", "1234567890") == "08642" * charrepl ("abcdefghij", "jhfdb", "12345") == "55542" * charrepl ("1234", "1234", "234A") == "AAAA" * charrepl ("1234", "1234", "234A", .T.) == "234A" * $STATUS$ * Ready * $COMPLIANCE$ * CHARREPL() is compatible with CT3's CHARREPL(). * $PLATFORMS$ * All * $FILES$ * Source is charrepl.c, library is ct3. * $SEEALSO$ * WORDREPL() POSREPL() RANGEREPL() * CSETREF() * $END$ */ Ruben Dario Fernandez
reemplazar un valor en una cadena caracteres
Gracias Ruben, pero utilizo xHarbour
reemplazar un valor en una cadena caracteres
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30053&start=0&hilit=strtran">viewtopic.php?f=3&t=30053&start=0&hilit=strtran</a><!-- l -->
reemplazar un valor en una cadena caracteres
Lorenzo, tambien esta en xHarbour. Saludos Ruben Dario Fernandez
reemplazar un valor en una cadena caracteres
Holas.... revisen esto: cXx := "AHAHAHSHAHAHAH" cXx := STRTRAN(cXx, "A", "C") // REEMPLAZA LA "A" POR LA "C" ? cXx -> CHCHCHSHCHCHCH sALU2
reemplazar un valor en una cadena caracteres
Como dice Willi, StrTran()
referencia catasral - latinoamerica
Necesitaria hacerme con un recibo de contribución de finca urbana o rústica que llevase la referencia catastral, de cualkquier paisa como chile, aregentinao méjico.. alguien me puede ayudar ?
refill a bitmap
If I have a bitmap showed on a dialog [b:2imvpmus]sample [/b:2imvpmus] [img:2imvpmus]http&#58;//img51&#46;imageshack&#46;us/img51/4844/slightleft1&#46;png[/img:2imvpmus] can I refill only the black arrow with a different color ( RED, BLU,YELLOW) ? I wish that the arrow must be refilled by end user with the mouse How I can make this ?
refill a bitmap
It must be the same BMP ( size ) but with a red Arrow. A BMP for each color. You can replace the BMP with the black Arrow with the one with the red Arrow. // from File // REDEFINE BITMAP oBmp1 ID 100 OF oDlg FILENAME Black.bmp" // from resource REDEFINE BITMAP oBMP1 ID 100 ADJUST RESOURCE "Black" OF oDlg oBMP1:bPainted := {|hDC| ReplaceBMP ( oBMP1, newBMP1 ) } A [color=#FF0000:2gr95b8r]oBMP1:Refresh()[/color:2gr95b8r] will replace the BMP with newBMP1 ( can be a Button-action or Mouse-focus ) // Replace BMP on MouseClick REDEFINE BITMAP oBMP1 ID 100 ADJUST RESOURCE "Black" OF oDlg ; ON CLICK ReplaceBMP ( oBMP1, "Red.bmp" ) // ------------ Replace ------------ FUNCTION ReplaceBMP( oBitmap, cBitmap) Local oImage DEFINE IMAGE oImage FILENAME cBitmap aRect := GETCLIENTRECT( oBitmap:hWnd ) PalBmpDraw( oBitmap:GETDC(), 0, 0, oImage:hBitmap, , aRect[4], aRect[3] ) oBitmap:ReleaseDC() RETURN( NIL ) Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
refill a bitmap
sorry But I found the function FloodFill I think it can be done calculating the coors the bitmaps FloodFill(hCDC, x,y , CLR_BLACK, nColor) but I not Know How Found the coors of the bitmap
refrescar fold....
Hola a todos... Tengo el siguiente codigo que funciona bien pero tengo un problemilla. El tema es que me he creado una pantalla de configuracion con varias 'pestañas'. El problema es que tengo dos check que dependiendo del valor que tengan me debe mostrar o no otros dos check mas... Es decir, que si pulso en uno me muestra otro y si lo desmarco me oculta el que me mostró....no se si me entendeis.. Para que me funcione debo salir y volver a entrar en el dialogo para que me refresque la informacion y entonces hace lo que quiero. El codigo es el siguiente: .... control_existencias_locales:= vector_ini->exis_local control_existencias_remotas:= vector_ini->exis_remot ..... && cuarta pagina @ 1, 1 SAY "Dias sin actualizar" OF oFld:aDialogs[ 4 ] SIZE 110, 15 @ 1, 15 GET oDias var vector_ini->dias OF oFld:aDialogs[ 4 ] SIZE 90, 21 @ 3, 1 checkbox oart_nuevo var vector_ini->art_nuevo prompt "Crear Articulo" OF oFld:aDialogs[ 4 ] SIZE 100, 21 @ 5, 1 checkbox omod_pvp var vector_ini->pvp_modif prompt "Modificar PVP" OF oFld:aDialogs[ 4 ] SIZE 100, 21 @ 7, 1 checkbox oexis_local var vector_ini->exis_local prompt "Ver Exis. Locales" OF oFld:aDialogs[ 4 ] SIZE 140, 21 @ 9, 1 checkbox oexis_remot var vector_ini->exis_remot prompt "Ver Exis. Remotas" OF oFld:aDialogs[ 4 ] SIZE 140, 21 &&aqui realizo el control de los check anteriores para activar o no el siguiente IF control_existencias_locales=.t. @ 7, 22 checkbox oexis_local_simpre var vector_ini->El_siempre prompt "Siempre" OF oFld:aDialogs[ 4 ] SIZE 100, 21 ENDIF IF control_existencias_remotas=.t. @ 9, 22 checkbox oexis_remot_siempre var vector_ini->er_siempre prompt "Siempre" OF oFld:aDialogs[ 4 ] SIZE 100, 21 ENDIF He probado a refrescar la pantalla, a refrescar el dialogo, con la intruccion SysRefresh() pero nada... Lo que me gustaría es que directamente desde que pulse me muestre o no el otro check dependiendo si está activo o no... Espero haberme explicado bien.... Saludos y gracias. Elías Torres.
refrescar fold....
Elías, Para ocultar un control se hace oControl:Hide() y para mostrarlo oControl:Show() La idea es que los crees todos, y que en tiempo de ejecución los ocultes ó los muestres llamando a ese método
refrescar la barra de mesajes
Hola a todos:Como puedo refrescar la barra de mensajes de la ventana principal.Por ejemplo pongo set menssage of oVentPrinc to "activa" + onombdespues cambio onomb con otro nombrey con que instruccion refresco la ventana para que a partir de ahora coja el nuevo nombre.Yo vuelvo a poner set menssage ... pero cuando pasa por encima cambia de un nombre a otroUn saludoCarlos
refrescar la barra de mesajes
oMsgBar:SetMsg("test")
refrescar menu
Estimados; Tengo un menu textual en ventana con opciones por ej. Agregar, Edita, Elimina La ventana contiene un browse de registros de DBF De manera que defino: MENUITEM "Editar datos de "+field->APELLIDO La consulta es: Se puede refrescar oMenu para que esta opcion me muestre el registro actual? muchas gracias
refrescar menu
Trata con: oWnd:oMenu:initiate() oWnd:oMenu:refresh()
refrescar menu
Gracias por responder Me falto la consulta mas importante. Desde donde controlo el evento. De puro ignorante probé con: oWnd:bLClicked:= {|| oWndPI:Initiate(), oWndPI:oMenu:Refresh() } pero al parecer por ahí no es la cosa <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
refrescar menu
Se me ocurre que debes hacer una función, pasando como parámetros los objetos oWnd, oMenu. Dicha función se debe ejecutar cada vez que te muevas de registro de la tabla
refrescar xbrowse de un array
Hola amigos, Tengo un xBrowse de un array. Actualizo el array y después llamo a oBrowse:Refresh() pero no se actualiza. ¿Qué hago mal?. Gracias!
refrescar xbrowse de un array
Hola Intenta con oBrw:SetArray( aList )
refrescar xbrowse de un array
Funcionó, muchas gracias!.
refresh a get with when
I have a combobox and I wish refresh some gets I wish enable the aget[10] and aget[11] only if the aTipoOp=1 local lTutteOp := .t. local aTipoOp := {"Entrate","Uscite"} local cTipoOp := aTipoOp[1] Local lTClienti := .t. Local cClienti := ''" Local aClienti := {"Cliente1","Cliente2","Cliente3} DEFINE DIALOG... @ 58, 56 CHECKBOX aGet[8] VAR lTutteOp PROMPT "Tutte" SIZE 25,8 PIXEL OF oDlg @ 58, 145 COMBOBOX aGet[9] VAR cTipoOp ITEMS aTipoOp SIZE 75,12 PIXEL OF oDlg WHEN ! lTutteOp ; ON CHANGE ( aGet[10]:refresh(),aGet[11] :refresh() ) @ 72, 56 CHECKBOX aGet[10] VAR lTClienti PROMPT "Tutti" SIZE 25,8 PIXEL OF oDlg WHEN cTipoOp==aTipoOp[1] @ 72, 145 COMBOBOX aGet[11] VAR cClienti ITEMS aClienti SIZE 75,12 PIXEL OF oDlg WHEN ! lTClienti ACTIVATE DIALOG oDlg Why the when clausole is not processed ?
refresh a get with when
silvio se me ocurre asi: [code=fw:2mowj3dc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />@ <span style="color: #000000;">58</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTutteOp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutte"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">58</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTipoOp <span style="color: #0000ff;">ITEMS</span> aTipoOp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| ! lTutteOp <span style="color: #000000;">&#125;</span><br />          aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span>  := <span style="color: #000000;">&#123;</span>||  aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<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;">72</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTClienti <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br /><br />@ <span style="color: #000000;">72</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cClienti <span style="color: #0000ff;">ITEMS</span> aClienti <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| ! lTClienti <span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:2mowj3dc] Saludos!
refresh a get with when
Silvio: Or this way [code=fw:2741wim2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">58</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTutteOp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutte"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> oDlg:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2741wim2] Regards
refresh a get with when
Hi Silvio, Combobox's bChange is evaluated when the control changes, but that doen't means that the new value is assigned to the var. In you example you can check what I mean, adding a MsgInfo() or another way to inspect the cTipoOp value: [code=fw:1je9z2st]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">58</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTipoOp <span style="color: #0000ff;">ITEMS</span> aTipoOp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| ! lTutteOp <span style="color: #000000;">&#125;</span><br />          aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span>  := <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>cTipoOp<span style="color: #000000;">&#41;</span>, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<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 /> </div>[/code:1je9z2st] It's not a good idea to use bChange because it is fired on window's internal value change, not var change. May be a little trick can help, but, if you can, use VALID clause Try this: [code=fw:1je9z2st]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">58</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTipoOp <span style="color: #0000ff;">ITEMS</span> aTipoOp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| ! lTutteOp <span style="color: #000000;">&#125;</span><br />          aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span>  := <span style="color: #000000;">&#123;</span>|| aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<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 /> </div>[/code:1je9z2st] Regards
refresh a get with when
[quote="Armando":gkkkn9d6]Silvio: Or this way [code=fw:gkkkn9d6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">58</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTutteOp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutte"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />              <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> oDlg:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:gkkkn9d6] Regards[/quote:gkkkn9d6] Realizo algo parecido a lo tuyo y utilizo asi como dice Armando y funciona bien, me refresca todos los oBjetos, si quieres alguno u otrac accion, simplemente llama a una funcion y pasale los GET para que hagas lo que necesites, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
refresh a get with when
Dear Friends , I tried but here not run ok i made a tet sample to try [code=fw:96zq2g0k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br /><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> oDlg, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">40</span><span style="color: #000000;">&#93;</span><br /><br /><br /><span style="color: #00C800;">local</span> lTutteOp &nbsp; := .t.<br /><span style="color: #00C800;">local</span> aTipoOp := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Entrate"</span>,<span style="color: #ff0000;">"Uscite"</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> cTipoOp := aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">Local</span> lTClienti &nbsp;:= .t.<br /><span style="color: #00C800;">Local</span> cClienti &nbsp; := <span style="color: #ff0000;">''</span><br /><span style="color: #00C800;">Local</span> aClienti &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">Local</span> lTFornitori &nbsp;:= .t.<br /><span style="color: #00C800;">Local</span> cFornitori &nbsp; := <span style="color: #ff0000;">''</span><br /><span style="color: #00C800;">Local</span> aFornitori &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">// per la dialog 1...</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nBottom &nbsp; := <span style="color: #000000;">25</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nRight &nbsp; &nbsp;:= <span style="color: #000000;">57</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br /><br /><br />aClienti := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Cliente1"</span>,<span style="color: #ff0000;">"Cliente2"</span>,<span style="color: #ff0000;">"Cliente3"</span><span style="color: #000000;">&#125;</span><br />aFornitori:= <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Provveder1"</span>,<span style="color: #ff0000;">"Provveder2"</span>,<span style="color: #ff0000;">"Provveder3"</span><span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Assistente alla ricerca movimenti"</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> nWidth, nHeight &nbsp;<span style="color: #0000ff;">PIXEL</span> &nbsp; <br /><br /><br />&nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Operation type"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp;@ <span style="color: #000000;">58</span>, <span style="color: #000000;">56</span> &nbsp;<span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTutteOp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"All"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Select :"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp;@ <span style="color: #000000;">58</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTipoOp <span style="color: #0000ff;">ITEMS</span> aTipoOp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp; <span style="color: #0000ff;">WHEN</span> &nbsp;!lTutteOp<br /><br /><br />&nbsp; @ <span style="color: #000000;">74</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"clients "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; @ <span style="color: #000000;">72</span>, <span style="color: #000000;">56</span> &nbsp;<span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTClienti <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"All"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">WHEN</span> &nbsp;cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; @ <span style="color: #000000;">74</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Select:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; @ <span style="color: #000000;">72</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cClienti <span style="color: #0000ff;">ITEMS</span> aClienti <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">WHEN</span> &nbsp;!lTClienti &nbsp; .AND. &nbsp; cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br /><br /><br />&nbsp; @ <span style="color: #000000;">88</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Proveders "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; @ <span style="color: #000000;">86</span>, <span style="color: #000000;">56</span> &nbsp;<span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTFornitori <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"All"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; <span style="color: #0000ff;">WHEN</span> &nbsp;cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; @ <span style="color: #000000;">88</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Select:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; @ <span style="color: #000000;">86</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cfornitori <span style="color: #0000ff;">ITEMS</span> aFornitori <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">WHEN</span> &nbsp;!lTFornitori &nbsp; .AND. &nbsp; cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><br /><br />&nbsp; <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg<br /><br />RETU <span style="color: #00C800;">NIL</span><br /> </div>[/code:96zq2g0k] the problem and what I wish At init all combobox are disable If the user click on all ( checkbox) it make enable the combobox If the user select the first option of the first combobox "Entrate" must be activate only the 2th combobox ( and the second checkbox) If the user select the second option of the first combobox "Uscite" must be activate only the 3th combobox ( and the third checkbox) I hope help me
refresh a get with when
Perfect! Just add the following line: [code=fw:sgffwdjx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />     @ <span style="color: #000000;">58</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTipoOp <span style="color: #0000ff;">ITEMS</span> aTipoOp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">OF</span> oDlg   <span style="color: #0000ff;">WHEN</span>  !lTutteOp <br />        aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span>  := <span style="color: #000000;">&#123;</span>|| aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// <--- Add this</span><br /><br /> </div>[/code:sgffwdjx] Tested and i think it works as you spected. The point is that bChange is fired when control's internal buffer changes, but that change is not taken into the VAR's value until the COMBOBOX looses focus. Just test it in the original form, navigating using <Tab>. Assign() does the trick: copies the controls value into the var.
refresh a get with when
it seem to run but if you select before the second element of the first combo and the press the checkbox of the third line and then reselect the first element the first combo the checkbox the third line is allway .f.
refresh a get with when
Silvio, Don't get you. Do you mean that, when you return the focus to the first combo and select the first one the third control set is .f. ? May be there is a problem in your logic: If the first combo has the value "clients", ANY VALUE for the third set of vars have NO MEANING. As a rule of thumb, if a control has it's when in .f. there is nothing to do with it's value. Probably you should put more code in the Combo OnChange to set things as you want.
refresh a get with when
I explain you [img:383b7848]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/09/err&#46;jpg[/img:383b7848] I put also word on espana language to understood the problem On My archive I have a filed called MvTipo the value can be E or U ( Ingreso or Gastos) If is E the user can insert Customers and category of Ingreso If is U the user can insert Provveders and category of Gastos in that dialog ( with combos) I wish create a research on this archive and I ask to final user 1. if he want search all moviments ( apuntes) or can select only "Entrata" (ingreso) or only "Uscita" (gastos) the procedure must refresh the combos "Clienti" ( clientes) if the type of moviments( apuntes) is E (ingreso) "Fornitori" (provveders) if the type of moviments (apuntes) is U (gastos) and it make right ..refresh the combobox If the final user before to press the button "confirm" wish change the first combobox ( Ingreso or Gastos) then the other comboboxes are not refresh() I add also two combobox one for clientes and one for provveders it run but after many times the comboboxes are not refresh or there is something of error or I'm afraid that in the end does not work, or the final user can not figure out how to do the research new code to try [code=fw:383b7848]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br /><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> oDlg, aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">40</span><span style="color: #000000;">&#93;</span><br /><br /><br /><span style="color: #00C800;">local</span> lTutteOp   := .t.<br /><span style="color: #00C800;">local</span> aTipoOp := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Entrate"</span>,<span style="color: #ff0000;">"Uscite"</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> cTipoOp := aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">Local</span> lTClienti  := .t.<br /><span style="color: #00C800;">Local</span> cClienti   := <span style="color: #ff0000;">''</span><br /><span style="color: #00C800;">Local</span> aClienti   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">Local</span> lTFornitori  := .t.<br /><span style="color: #00C800;">Local</span> cFornitori   := <span style="color: #ff0000;">''</span><br /><span style="color: #00C800;">Local</span> aFornitori   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">Local</span> lTEntrate  := .t.<br /><span style="color: #00C800;">Local</span> cEntrate   := <span style="color: #ff0000;">''</span><br /><span style="color: #00C800;">Local</span> aEntrate   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">Local</span> lTUscite  := .t.<br /><span style="color: #00C800;">Local</span> cUscite   := <span style="color: #ff0000;">''</span><br /><span style="color: #00C800;">Local</span> aUscite   := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">// per la dialog 1...</span><br />   <span style="color: #00C800;">Local</span> nBottom   := <span style="color: #000000;">35</span><br />   <span style="color: #00C800;">Local</span> nRight    := <span style="color: #000000;">57</span><br />   <span style="color: #00C800;">Local</span> nWidth :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br />    <span style="color: #00C800;">Local</span>  oBtnOK,oBtnCan<br /><br />aClienti := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Cliente1"</span>,<span style="color: #ff0000;">"Cliente2"</span>,<span style="color: #ff0000;">"Cliente3"</span><span style="color: #000000;">&#125;</span><br />aEntrate  := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Entrate1"</span>,<span style="color: #ff0000;">"Entrate2"</span>,<span style="color: #ff0000;">"Entrate3"</span><span style="color: #000000;">&#125;</span><br /><br />aFornitori:= <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Provveder1"</span>,<span style="color: #ff0000;">"Provveder2"</span>,<span style="color: #ff0000;">"Provveder3"</span><span style="color: #000000;">&#125;</span><br />aUscite   := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Uscite1"</span>,<span style="color: #ff0000;">"Uscite2"</span>,<span style="color: #ff0000;">"Uscite3"</span><span style="color: #000000;">&#125;</span><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg        ;<br />   <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Assistente alla ricerca movimenti"</span>    ;<br />   <span style="color: #0000ff;">SIZE</span> nWidth, nHeight  <span style="color: #0000ff;">PIXEL</span><br /><br /><br /> @ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Tipo movimento"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">58</span>, <span style="color: #000000;">56</span>  <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTutteOp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">60</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Selezionare :"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">58</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cTipoOp <span style="color: #0000ff;">ITEMS</span> aTipoOp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">OF</span> oDlg   <span style="color: #0000ff;">WHEN</span>  !lTutteOp<br /><br /> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bChange</span>  := <span style="color: #000000;">&#123;</span>|| aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// <--- Add this</span><br /><br /><br /><br />  @ <span style="color: #000000;">74</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Pagatori"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">72</span>, <span style="color: #000000;">56</span>  <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTClienti <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> .and.  !lTutteOp<span style="color: #000000;">&#125;</span><br />  @ <span style="color: #000000;">74</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Selezionare :"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">72</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cClienti <span style="color: #0000ff;">ITEMS</span> aClienti <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">WHEN</span> <span style="color: #000000;">&#123;</span>|| ! lTClienti .and. cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />  @ <span style="color: #000000;">88</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Causali Entrate "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">86</span>, <span style="color: #000000;">56</span>  <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTEntrate <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg   <span style="color: #0000ff;">WHEN</span>  cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> .and.  !lTutteOp<br />  @ <span style="color: #000000;">88</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Selezionare:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">86</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cEntrate <span style="color: #0000ff;">ITEMS</span> aEntrate <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">WHEN</span>  !lTEntrate   .AND.   cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br /><br /><br /><br />  @ <span style="color: #000000;">102</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fornitori "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">100</span>, <span style="color: #000000;">56</span>  <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTFornitori <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg   <span style="color: #0000ff;">WHEN</span>  cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  .and.  !lTutteOp<br />  @ <span style="color: #000000;">102</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Selezionare:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">100</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cfornitori <span style="color: #0000ff;">ITEMS</span> aFornitori <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">WHEN</span>  !lTFornitori   .AND.   cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><br />  @ <span style="color: #000000;">116</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Causali Uscite "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">114</span>, <span style="color: #000000;">56</span>  <span style="color: #0000ff;">CHECKBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lTUscite <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tutti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">25</span>,<span style="color: #000000;">8</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg   <span style="color: #0000ff;">WHEN</span>  cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>   .and.  !lTutteOp<br />  @ <span style="color: #000000;">116</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Selezionare:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span><br />  @ <span style="color: #000000;">114</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">COMBOBOX</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">17</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cUscite <span style="color: #0000ff;">ITEMS</span> aUscite <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">WHEN</span>  !lTuscite   .AND.   cTipoOp==aTipoOp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />    @ <span style="color: #000000;">250</span>, <span style="color: #000000;">121</span> <span style="color: #0000ff;">BUTTON</span> oBtnOK <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Conferma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span> IDOK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />          oBtnOK:<span style="color: #000000;">cTooltip</span> := i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Conferma"</span><span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">250</span>, <span style="color: #000000;">172</span> <span style="color: #0000ff;">BUTTON</span> oBtnCan <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Annulla"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span> IDCANCEL <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />          oBtnCan:<span style="color: #000000;">cTooltip</span> := i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Annulla la ricerca"</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg<br /><br /> </div>[/code:383b7848]
refresh a get with when
Silvio, I don't speak italian, but for an spanish speaker italian is more or less 'understable'. I can run your code and it runs fine, activating and deactivating the controls as spected, that's why i told you i don't understand. If the dialog is not easy to understand FOR THE USER, it's a different issue. May I sugest a change? Instead of using a combo for {"Entrate","Uscite"}, use a RADIOGROUP. Then, avoid 'Tutti' checkboxes and add a '<<TUTTI>>' option to the Clienti, Fornitori, Entrate, Uscite COMBOBOXES [code=fw:3nudd51u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> Tutti<br /><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span> Entrate &nbsp; &nbsp; &nbsp; Pagatori <span style="color: #000000;">&#91;</span> <<TUTTI>> v <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Cliente1    <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Cliente2    <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Cliente3    <span style="color: #000000;">&#93;</span><br />                            <br />           Causali Entrate <span style="color: #000000;">&#91;</span> <<TUTTI>> v <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Entrate1    <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Entrate2    <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Entrate3    <span style="color: #000000;">&#93;</span><br />   <br /><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span> Uscite      Fornitori  <span style="color: #000000;">&#91;</span> <<TUTTI>> v <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Fornitori1  <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Fornitori2  <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Fornitori3  <span style="color: #000000;">&#93;</span><br />                            <br />           Causali Uscite  <span style="color: #000000;">&#91;</span> <<TUTTI>> v <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Uscite1     <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Uscite2     <span style="color: #000000;">&#93;</span><br />                           <span style="color: #000000;">&#91;</span> Uscite3     <span style="color: #000000;">&#93;</span><br /> </div>[/code:3nudd51u] Sorry for the AsciiArt, but it's faster than drawing <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
refresh MESSAGE
How may I refresh xMESSAGE in MESSAGE mainly msc_m and rok_m ? best regards kajot //----------------------------------------------------------------------------// function Main() SET _3DLOOK ON public oApp, oMsgBar MSC_M:=1 ROK_M:=2016 SET _3DLOOK ON // Microsoft 3D Look DEFINE FONT oFont NAME "ARIAL CE" SIZE 0, -12 DEFINE WINDOW oApp TITLE "Apps" ; MENUINFO 3 ; MENU BuildMenu() ; MDI //STYLE 2007 xMESSAGE:='v.2016.06b | Okres '+str(msc_m,2)+'/'+str(rok_m,4) SET MESSAGE OF oApp TO xMESSAGE CLOCK DATE KEYBOARD NOINSET 2010 ACTIVATE WINDOW oApp MAXIMIZED on CLICK (oApp:refresh(), oApp:setfocus() ) RETURN NIL
refresh MESSAGE
[code=fw:3fz7blj3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGBAR oMsgBar <span style="color: #0000ff;">OF</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"[ Fivetech Software 2016 ]"</span> <span style="color: #000000;">2010</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oMsgBar:<span style="color: #000000;">nClrText</span> := CLR_BLUE<br />&nbsp; &nbsp;oMsgBar:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFontX <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oAnota <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Annotations are Active"</span> + <span style="color: #ff0000;">": NO"</span> &nbsp;<span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span> <br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oModify <span style="color: #0000ff;">PROMPT</span> FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"File has changed"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">": YES"</span> &nbsp;<span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span> <span style="color: #B900B9;">//COLOR CLR_BLUE, CLR_WHITE</span><br /><br />.../....<br /><br /><span style="color: #B900B9;">//oAnota:Refresh()</span><br />oModify:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"File has changed"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">": NO"</span><br />oModify:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3fz7blj3]
refresh MESSAGE
a thousand thanks
refresh a btnbmp on line
I have a btnbmp with a prompt with a number then the user press the button and the procedure must assign the new prompt with the new number why not refresh() ? nNumber:= 8 @ 233, 118 BTNBMP oBtnAllegati OF oDlgTest ; SIZE 55, 14 PIXEL 2007 ; BORDER LEFT ROUND ; PROMPT str(nNumberi)+" files" RESOURCE "DLG_OK" ; ACTION (nNumber=test(),oBtnAllegati:refresh() ) ... function test() return 10
refresh a btnbmp on line
Silvio, ACTION (nNumber [color=#FF0000:29ajqkrn]:=[/color:29ajqkrn] test(),oBtnAllegati:refresh() )
refresh a btnbmp on line
sorry, On the night I am very tired and perhaps I am ...old!!!
refresh a filtered TXbrowse
Listbox is refreshed after set filter command by : [code:oizl0s3p] oLbx&#58;upstable&#40;&#41; oLbx&#58;Refresh&#40;&#41; [/code:oizl0s3p] TXBROWSE is not refreshed after filter command by the same way : [code:oizl0s3p] ACTIVATE DIALOG oDlgn ON INIT &#40;oBrw&#58;SetSize&#40; 800, 600 &#41;,oBrw&#58;Refresh&#40;&#41;&#41; [/code:oizl0s3p]
refresh a filtered TXbrowse
Try refresh(.t.) Shuming Wang
refresh a filtered TXbrowse
refresh(.t.) does not do any difference . My problem is : Only the first Record appeared in the Txbrowse does not belong to the condition of set filter and when I do through the records using the cursor the non-belong record disappeared .
refresh a filtered TXbrowse
Try GO TOP just after SET FILTER command. EMG
refresh a filtered TXbrowse
I already aware of that point but no effects [code:1xm6m34n] SELECT 4 use mete SET index TO mete2 DBSETFILTER&#40;&bFilter,cFilter&#41; 4->&#40;DBGOTOP&#40;&#41;&#41; [/code:1xm6m34n]
refresh a filtered TXbrowse
Try this :- select('youralias') set filter to &cYourFilter go top oLbx:gotop() oLbx:upstable() oLbx:refresh()
refresh a filtered TXbrowse
Sorry I using Txbrowse so I am using RDD server . so no syntax for set filter but my code must be the following : [code:3b7tm9tf] SELECT 4 use mete SET index TO mete2 DBSETFILTER&#40;&bFilter,cFilter&#41; 4->&#40;DBGOTOP&#40;&#41;&#41; [/code:3b7tm9tf]
refresh a ribbonbar on line
I have a ribbonbar [img:yabei62u]https&#58;//i&#46;postimg&#46;cc/3wmLvSNy/hh&#46;jpg[/img:yabei62u] on tab 1 I have a group only when lShowMenuVeloci is true IF oThis:lShowMenuVeloci ADD GROUP ::oGrMenuVeloci RIBBON ::oRebar TO OPTION 1 WIDTH 130 PROMPT "menu veloci" Endif this group is on I draw a red arrow on tab 4 I insert a rbbtn and I can select if pressed or not ( the fourth button) [img:yabei62u]https&#58;//i&#46;postimg&#46;cc/NF6YC7dL/gg&#46;png[/img:yabei62u] it must refresh tab1 of the ribbonbar I made [code=fw:yabei62u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />@ <span style="color: #000000;">5</span>,<span style="color: #000000;">150</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">43</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Collegamenti"</span>+CRLF+<span style="color: #ff0000;">"Veloci"</span> BITMAP <span style="color: #ff0000;">"TOOLBAR_VELOCI"</span> ;<br />      GROUP oGrV1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">85</span> top <span style="color: #0000ff;">ROUND</span>;<br />      TOOLTIP <span style="color: #ff0000;">"Collegamenti veloci"</span> ;<br />      <span style="color: #0000ff;">ACTION</span>   <span style="color: #000000;">&#40;</span>oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">43</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>:=!oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">43</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>,;<br />                oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">43</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />                 <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">43</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lSelected</span>,;<br />                                 oThis:<span style="color: #000000;">lShowMenuVeloci</span>:=.t.,oThis:<span style="color: #000000;">lShowMenuVeloci</span>:=.f. <span style="color: #000000;">&#41;</span>,;<br />                                 oThis:<span style="color: #000000;">oReBar</span>:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:yabei62u] but it not refresh the ribbonbar tab1 How I can resolve it ?
refresh a ribbonbar on line
Any solution Pls ?
refresh a ribbonbar on line
Dear Silvio, Have you tried with ::oRebar:Refresh() ?
refresh a ribbonbar on line
[quote="Antonio Linares":316sc294]Dear Silvio, Have you tried with ::oRebar:Refresh() ?[/quote:316sc294] oThis:oReBar:refresh() and oThis:oReBar:aDialogs[1]:refresh() I'm trying a little test to make you understand the problem SENT
refresh btnbmp on a Panelscroll - RESOLVED
Please change this [quote:71cesxr8]IF oCombolistino !=NIL oCombolistino:select(nListino) eval(oCombolistino:bchange) endif[/quote:71cesxr8] as [code=fw:71cesxr8]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> oCombolistino !=<span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCombolistino:<span style="color: #000000;">set</span><span style="color: #000000;">&#40;</span>nListinoNew<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;eval<span style="color: #000000;">&#40;</span>oCombolistino:<span style="color: #000000;">bchange</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:71cesxr8]
refresh btnbmp on a Panelscroll - RESOLVED
[quote="nageswaragunupudi":c8spud62]Please change this [quote:c8spud62]IF oCombolistino !=NIL oCombolistino:select(nListino) eval(oCombolistino:bchange) endif[/quote:c8spud62] as [code=fw:c8spud62]<div class="fw" id="{CB}" style="font-family: monospace;">      <span style="color: #00C800;">IF</span> oCombolistino !=<span style="color: #00C800;">NIL</span><br />         oCombolistino:<span style="color: #000000;">set</span><span style="color: #000000;">&#40;</span>nListinoNew<span style="color: #000000;">&#41;</span><br />         eval<span style="color: #000000;">&#40;</span>oCombolistino:<span style="color: #000000;">bchange</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br /> </div>[/code:c8spud62][/quote:c8spud62] Nages, The combobox Is refreshed The btnbmps are not refreshed
refresh btnbmp on a Panelscroll - RESOLVED
This is working fine here. [url=https&#58;//imageshack&#46;com/i/poqklRqjg:b8ss27ac][img:b8ss27ac]https&#58;//imagizer&#46;imageshack&#46;com/img924/7899/qklRqj&#46;gif[/img:b8ss27ac][/url:b8ss27ac]
refresh btnbmp on a Panelscroll - RESOLVED
Nages, Ok It was the "set " of combobox Thanks
refresh btnbmp on a Panelscroll - RESOLVED
Antonio, any solution Please, I sent you the test I explain to you, exactly when the user selects a date range automatically calculates the number of the price list to be displayed (nListino) and changes the item in the combobox; the buttons inside the panelscroll are set so that for each price list (High season, Low season, Mid season and seasonal) it displays the relative price, the possible items of the combobox are from 1 to 4. If the whole season variable is True, calculated with a function, automatically the list is 4 the item is changed in the combobox (i.e. the fourth item) and consequently it should load the block bchange code function to refresh all the buttons that are inside of the panel When the combobox is refreshed it does not perform the bchange function and therefore the buttons are not refreshed by displaying the incorrect price and if the user selects an item the price is always incorrect with respect to the selected period. This is strange because if the user changes the position of the combobox by selecting another item then the function is called correctly and the buttons are refreshed. the problem is that it doesn't do it automatically that is, the refresh should do it without the user manually changing the combobox item I did a lot of tests to make the buttons cool but I couldn't
refresh btnbmp on a Panelscroll - RESOLVED
[img:2z8eyltd]https&#58;//i&#46;postimg&#46;cc/bvq62q3D/mm&#46;png[/img:2z8eyltd] when I change the dates, through a function the item (nListino) of the combobox changes IF oCombolistino !=NIL [b:2z8eyltd] oCombolistino:select(nListino)[/b:2z8eyltd] eval(oCombolistino:bchange) endif when this happens I call the command [b:2z8eyltd] eval(oCombolistino:bchange)[/b:2z8eyltd] on change on this combobox there is a function to refresh btnbmp on PanelScroll the problem is that the combobox refreshes but then it does not execute the bchange command and the buttons in the panel are not refreshed how do i solve?
refresh msgitem
I have a Main Window where i insert this comand to create a msgiten on msgbar: DEFINE MSGITEM ::oMsgItem2; OF ::oWndMain:oMsgBar ; BITMAP "D_CAL" ; TOOLTIP " " + i18n("Data di lavoro.") + " "; ACTION Set_Date()On a procedure I open a dialog and I want modify the ::omsgitem2 and i made : oApp:oMsgItem2:cMsg:="Liberi"+ str(nLiberi) oApp:oMsgItem2:nClrText:= CLR_BLACK oApp:oMsgItem2:nClrPane:= CLR_HGREEN oApp:oMsgItem2:refresh()it run ok but when i return back on Main window and close the dialog It not refresh the old msgitem on the msgbar How I can make to refresh the old msgitem ?If I create another omsgitem8 and when I close the dialog Could destroy this element ?on the msgitem class not are end() or destroy methods
refresh msgitem
[quote="Silvio":3f6ebfel]I have a Main Window where i insert this comand to create a msgiten on msgbar: DEFINE MSGITEM ::oMsgItem2; OF ::oWndMain:oMsgBar ; BITMAP "D_CAL" ; TOOLTIP " " + i18n("Data di lavoro.") + " "; ACTION Set_Date() On a procedure I open a dialog and I want modify the ::omsgitem2 and i made : oApp:oMsgItem2:cMsg:="Liberi"+ str(nLiberi) oApp:oMsgItem2:nClrText:= CLR_BLACK oApp:oMsgItem2:nClrPane:= CLR_HGREEN oApp:oMsgItem2:refresh() it run ok but when i return back on Main window and close the dialog It not refresh the old msgitem on the msgbar How I can make to refresh the old msgitem ? If I create another omsgitem8 and when I close the dialog Could destroy this element ? on the msgitem class not are end() or destroy methods[/quote:3f6ebfel]Silvio, I have this same problem and this is my solution:[code:3f6ebfel]oMsgBar&#58;delItem&#40; oMsgBar&#58;aItem&#91;nPos&#93; &#41; cUser &#58;= "newbe" oUser &#58;= TMsgItem&#40;&#41;&#58;new&#40; oMsgBar, cUser, oMsgBar&#58;getWidth&#40; cUser &#41; + 15, TFont&#40;&#41;&#58;new&#40; "Tahoma", 0, 13 &#41;, rgb&#40; 72, 94, 59 &#41; &#41; oMsgBar&#58;insItem&#40; oUser, nPos &#41;[/code:3f6ebfel]
refresh on get
I not found the error for this simply test I want refresh the oget[1] but it make error [code=fw:1t7l9kwl]<div class="fw" id="{CB}" style="font-family: monospace;"><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> oDlg<br /><span style="color: #00C800;">Local</span> cPassw:=space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nLunghezza :=<span style="color: #000000;">6</span><br /><span style="color: #00C800;">Local</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" GENERATE RANDOM PASSWORD"</span><br /><br />@ <span style="color: #000000;">2</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">" Password :"</span> <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">2</span>,<span style="color: #000000;">7</span> <span style="color: #0000ff;">GET</span> &nbsp; aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cPassw &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">10</span> &nbsp; <span style="color: #0000ff;">UPDATE</span><br /><br />@ <span style="color: #000000;">4</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">" Lunghezza:"</span> <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">4</span>,<span style="color: #000000;">7</span> <span style="color: #0000ff;">GET</span> &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nLunghezza &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">16</span>,<span style="color: #000000;">10</span> SPINNER &nbsp;<span style="color: #0000ff;">MIN</span> <span style="color: #000000;">1</span> <span style="color: #0000ff;">MAX</span> <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99"</span><br /><br /><br />@ <span style="color: #000000;">2</span>,<span style="color: #000000;">17</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"..."</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> Genera_Password<span style="color: #000000;">&#40;</span>nLunghezza,cPassw,aGet<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 /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /><span style="color: #0000ff;">on</span> <span style="color: #0000ff;">INIT</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nHeight</span>:=<span style="color: #000000;">21.4</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">Function</span> Genera_Password<span style="color: #000000;">&#40;</span>nLarghezza,cPassw,aGet<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cPass := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aPwd := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> n, c, i, lRet := .T.<br /><br />&nbsp; cPass:=<span style="color: #ff0000;">"eee"</span><br /><br /><br /><br />&nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cText</span> :=alltrim<span style="color: #000000;">&#40;</span> cPass<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1t7l9kwl]
refresh on get
Dear Silvio, You must define array for aGet , like : local aGet := array(2) regards, Kok Joek Hoa
refresh on get
Silvio... Genera_Password(nLunghezza,cPassw,[color=#FF0000:3642a40g][size=150:3642a40g]aGet[/size:3642a40g][/color:3642a40g]) or this way [color=#FF0000:3642a40g][size=150:3642a40g]aGet[/size:3642a40g][/color:3642a40g]:cText :=alltrim( cPass) [color=#FF0000:3642a40g][size=150:3642a40g]aGet[/size:3642a40g][/color:3642a40g]:refresh()
refresh on get
thanks sorry I made a mistake it was Genera_Password(nLunghezza,cPassw,aGet) and then aget[1]:ctext... here is too hot , my head explodes sometime especially when I'm at school with my pupils
refresh say object
How can I refresh the say object in variable oSay_acct down in the code I am getting data from combpbox and then serach() the data to get display say variable [code:2497j76i] @ 1,1 SAY "&Account Name" OF oDlg PIXEL @ 1,50 SAY "&#58;" OF oDlg PIXEL @ 1,60 COMBOBOX V_CU_NAME ITEMS aBase1&#40;1,"cust",256,"cu_name"&#41; size 150,120 OF oDlg PIXEL ; ON CHANGE &#40;search&#40;"V_CU_NAME","cu_name","cust"&#41;,oSay_acct&#58;Refresh&#40;&#41;,oDlg&#58;Refresh&#40;&#41;&#41; @ 1,300 SAY "&Account No&#46;" OF oDlg PIXEL @ 1,340 SAY "&#58;" OF oDlg PIXEL @ 1,350 say V_CU_ACCT @ 1,350 say oSay_acct VAR V_cu_acct OF oDlg PIXEL; &#46;&#46;&#46; function search&#40;variable,field,filename&#41; //-------------------------------------- use &#40;filename&#41; locate for &#40;alltrim&#40;variable&#41; == alltrim&#40;&#40;filename&#41;->&#40;field&#41;&#41;&#41; if found&#40;&#41; &#40;variable&#41;&#58;=&#40;&#40;filename&#41;->&#40;field&#41;&#41; ? "I am inside search " + variable endif return nil [/code:2497j76i]
refresh say object
Try [code:2p97e8xl] function search&#40;variable,field,filename&#41; //-------------------------------------- use &#40;filename&#41; locate for &#40;alltrim&#40;variable&#41; == alltrim&#40;&#40;filename&#41;->&#40;field&#41;&#41;&#41; if found&#40;&#41; &#40;variable&#41;&#58;=&#40;&#40;filename&#41;->&#40;field&#41;&#41; ? "I am inside search " + variable // oSay_acct&#58;SetText&#40; variable &#41; oSay_acct&#58;Refresh&#40;&#41; // endif return nil [/code:2p97e8xl]
refresh say object
program does not the search function . How can I involve a function into on change clause ? Any other ideas about how can I reach my result ? ON CHANGE (function_call,("V_CU_NAME","cu_name","cust"),oSay_acct:Refresh(),oDlg:Refresh())
refresh say object
You need this Run a app TEST4.EXE and click in the button search. <!-- m --><a class="postlink" href="http://www.shoppmarketing.com/forum/ehab.zip">http://www.shoppmarketing.com/forum/ehab.zip</a><!-- m -->
refresh xbrowse
I wish insert vertical separators into a xbrowse on action and use a checkbox to select it @ 150, 95 CHECKBOX oChk[3] VAR lSeparatoriV Prompt "show vertical separator" SIZE 80, 10 PIXEL OF oFld:aDialogs[1]; ON CHANGE; ( IIF(lSeparatoriV ,oBrowse:nColDividerStyle :=LINESTYLE_LIGHTGRAY,; oBrowse:nColDividerStyle :=LINESTYLE_NOLINES),; oBrowse:refresh()) When I select it the xBrowse draw vertical separators [b:1d2tirr0] only on headers and if the row is selected[/b:1d2tirr0] [img:1d2tirr0]http&#58;//img28&#46;imageshack&#46;us/img28/9896/6vp2&#46;jpg[/img:1d2tirr0] then when I reopen the same xbrowse (I save the state and a small config into a file INI ) [b:1d2tirr0] I can see the vertical separators[/b:1d2tirr0] also to bottom of xbrowse [img:1d2tirr0]http&#58;//img801&#46;imageshack&#46;us/img801/1300/f0zd&#46;jpg[/img:1d2tirr0] why the xbrowse not refresh on line ?
refresh xbrowse
Any solution ?
refreshing on a get
I have a strange error or I not remeber as refresh a numeric get control after I insert another get I wish refresh the second get with the value of first get , any help please ? [b:252dsbko]the minimal test[/b:252dsbko] [code=fw:252dsbko]<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;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Report.ch"</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOcal</span> &nbsp;oDlg<br /><span style="color: #00C800;">Local</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">Local</span> nApimpneto:=<span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nApimptotal:=<span style="color: #000000;">0</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nBottom &nbsp; := <span style="color: #000000;">26.9</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nRight &nbsp; &nbsp;:= <span style="color: #000000;">46</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;oFont &nbsp;:= TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Lucida Console"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">12</span>,, <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test refresh"</span> &nbsp; ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> nWidth, nHeight &nbsp;TRANSPARENT <span style="color: #0000ff;">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<br /><br />&nbsp; @ <span style="color: #000000;">92</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Importo:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; @ <span style="color: #000000;">90</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nApimpneto &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PICTURE</span> &nbsp;<span style="color: #ff0000;">"@E999,999.99"</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> &nbsp;<span style="color: #000000;">&#40;</span>nApimptotal:= nApimpneto ,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">128</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Totale:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp;@ <span style="color: #000000;">126</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nApimptotal <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PICTURE</span> &nbsp;<span style="color: #ff0000;">"@E999,999.99"</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">RIGHT</span> &nbsp; READONLY<br /><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />retu <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:252dsbko]
refreshing on a get
Excuse, i dont speake english, try again use UPDATE en los GET... REDEFINE GET aGet[2] VAR aVar[2] ID 102 OF oDlg UPDATE READONLY // NOMB.CLIENTE saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
refreshing on a get
NOT RUN OK
refreshing on a get
[code=fw:2z827sgw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> &nbsp;<span style="color: #000000;">&#40;</span>aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,nApimptotal:= nApimpneto ,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:2z827sgw] EMG
refreshing on a get
Silvio, because you do not use the valid @ 90, 56 GET aGet[8] VAR nApimpneto OF oDlg SIZE 40, 10 RIGHT PIXEL PICTURE "@E999,999.99" FONT oFont ; valid( iif( nApimpneto > o, ( nApimptotal := nApimpneto, aGet[13]:refresh(), .t. ), .f. ) ) saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
refreshing on a get
[quote="Enrico Maria Giordano":ino8s8hf][code=fw:ino8s8hf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span>  <span style="color: #000000;">&#40;</span>aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,nApimptotal:= nApimpneto ,aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:ino8s8hf] EMG[/quote:ino8s8hf] Emg thanks run ok
refreshing on a get
Enrico, [quote:3n2oodq1]aGet[8]:Assign()[/quote:3n2oodq1] what is this method for ?
refreshing on a get
It assigns what you see in the edit buffer to the GET variable. EMG
refreshing on a get
thanks
regardless screen resolution
I am suffering from porting side defects of my application from diferrent resolutions . I need the optimim (best) to avoid modifying my screen size for each resolution I face. What make my application compatible with all sizes and sreen resolutions Thanks
regardless screen resolution
Ehab, This is my simple modify sample: dialog.prg METHOD Autoresize(ntop,nleft) local i,rsl0,rsl1,oCtrol,aRect DEFAULT ntop:=0 DEFAULT nleft:=0 rsl0:=getsysmetrics(0)/800 if rsl0<=1; return ; end //<=800*600, not needed rsl1:=getsysmetrics(1)/600 for i:=1 TO LEN(::acontrols) oCtrol = ::aControls[i] aRect = GetCoors( oCtrol:hWnd ) do case case oCtrol:classname()=="TCOMBOBOX" oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1) // case oCtrol:classname()=="TGET" // oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1,,(aRect[3] - aRect[1])*rsl0, .t. ) otherwise oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1, (aRect[4] - aRect[2])*rsl1, (aRect[3] - aRect[1])*rsl0, .t. ) // ntop,nleft,nbottom,nright end case next aRect = GetWndRect( ::hWnd ) ::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. ) if ::lCentered WndCenter( ::hWnd ) else if Empty( ::cResName ) ::Move( ::nTop, ::nLeft ) endif endif return Shuming Wang
regardless screen resolution
Hi ShumingWang ,good job . This is the solution what my customers ask me . Did you finish all the objects of Dialog ? I test what you paste , but not work , (1027x768 Chinese big5 font ). Would you share it to me ? -- Best Regards kokoo
regardless screen resolution
kokoo, In your app.prg activate dialog odlg on int (odlg:autoresize()) Notice, child dialog not work. Regards! Shuming Wang
regardless screen resolution
hi ShumingWang : [quote:3k74wbui] modifying my screen size for each resolution I face. [/quote:3k74wbui] include font size ? Any passable for a resource Dialog , there is some objects not define only display. kokoo
regardless screen resolution
kokoo, I do not change font size,so if at high resolution,browse could show more columns and rows. -1 id in resource ,must rewrite with >0 an redefine in your prg . Regards. Shuming Wang
register callback func to be exec from inside c VM harbour
Hello everyone; I'm looking to register a callback function so that I may show some message while something is happening inside a VM c harbour function. For example to show a progress bar while the Harbour VM c function is inside a for loop. For example: [code=fw:2ya6qgjh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> CLAIMKEY_REGEX  <span style="color: #ff0000;">"CL[1-2][0-9]-[0-9]{8}"</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> FetchFromScanner<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TBatchPayments<br />   <span style="color: #00C800;">Local</span> cText := TOCRFromScanner<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>|n| ::<span style="color: #000000;">ShowProgress</span><span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> aOCRClaimKeys := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">Local</span> aClaimKeys <br /> </div>[/code:2ya6qgjh] Then have the c Wrapper TOCRFromScanner receive and execute ShowProgress inside the for loop. Any ideas? Thank you.
register callback func to be exec from inside c VM harbour
Dear Reinaldo, You may try with: hb_idleAdd( {|n| ::ShowProgress(n) } )
register callback func to be exec from inside c VM harbour
Saludos maestro y gracias por la sugerencia. I'm sorry I wasn't more specific. Consider this declaration: [code=fw:1xmlphbw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//-------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TOCRFROMSCANNER <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   TOCRJOBINFO_EG    JobInfo_EG;<br />   TOCRRESULTSEX_EG* Results = <span style="color: #000000;">0</span>;<br />    long                JobNo;<br />    long                Status;<br />    long                NumImages = <span style="color: #000000;">0</span>;<br />    long                CntImages = <span style="color: #000000;">0</span>;<br />    HANDLE          *hMems;<br />    HANDLE          hMMF = <span style="color: #000000;">0</span>;<br />   HB_WCHAR       Msg<span style="color: #000000;">&#91;</span><span style="color: #000000;">10240</span><span style="color: #000000;">&#93;</span>;   <br />   HB_WCHAR       FullText<span style="color: #000000;">&#91;</span><span style="color: #000000;">10240</span><span style="color: #000000;">&#93;</span> = L<span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>; <span style="color: #B900B9;">//final returning string</span><br />   char           LogMsg<span style="color: #000000;">&#91;</span> TOCRJOBMSGLENGTH <span style="color: #000000;">&#93;</span> ;<br />   HB_WCHAR       pageBreak = L<span style="color: #ff0000;">'<span style="color: #000000;">\u</span>000C'</span>;<br /><br />   memset<span style="color: #000000;">&#40;</span> Msg, <span style="color: #000000;">0</span>, sizeof<span style="color: #000000;">&#40;</span> Msg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//make sure Msg is empty</span><br />   trimTrailing<span style="color: #000000;">&#40;</span>FullText<span style="color: #000000;">&#41;</span>;<br />...<br /><br />               <span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>long ImgNo = <span style="color: #000000;">0</span>; ImgNo < NumImages; ImgNo++<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br /><br />                  <span style="color: #B900B9;">//show progress using a callback func here </span><br />                  <span style="color: #B900B9;">//callback func registered from harbour calling func.</span><br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hMems<span style="color: #000000;">&#91;</span>ImgNo<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br /><br />                     sprintf<span style="color: #000000;">&#40;</span> LogMsg, <span style="color: #ff0000;">"Processing image # %ld."</span>, ImgNo <span style="color: #000000;">&#41;</span>;<br />                     LogData<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TOCRerr.log"</span>, LogMsg, MAX_LOG_SIZE <span style="color: #000000;">&#41;</span> ;<br /><br />                     <span style="color: #B900B9;">// convert the memory block to a Memory Mapped File</span><br />                     hMMF = ConvertGlobalMemoryToMMF<span style="color: #000000;">&#40;</span> hMems<span style="color: #000000;">&#91;</span> ImgNo <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>;<br />...<br /> </div>[/code:1xmlphbw] I think in order to be able to call a progress function from inside the for loop, we would need to register a callback function that can update a progress bar declared on the calling .prg. On the Harbour forum Laiton suggested taking a look at hbcurl source where there seems to be something similar. I will try to investigate that. I will try any other suggestion. Thank you.
registradora
alguien tiene un ejemplo de la caja registradora virtual?