topic
stringlengths
1
63
text
stringlengths
1
577k
Controlar los ToolTips
No sería más sencillo diseñar la pantalla directamente, de forma que al lado de cada GET (u otro CONTROL) coloques un pequeño GRAFICO (o un simple SAY) donde des una pequeña explicación de lo que hace/tiene que hacer el GET (o CONTROL) Si esa explicación tiene que aparecer al entrar en el GET (o activar el CONTROL) pon los comentarios en HIDE() al iniciar el DIALOGO, despUES los "enseñas" con SHOW() en el WHEN y los "escondes" HIDE() en el VALID de cada GET/CONTROL. A falta de que desarrolles el algoritmo pertinente esto te podría servir. Un saludo
Controlar los ToolTips
analizando tu idea, termine probando y creo que con msgwait() te ayudaria, prueba ver, muestra el mensaje y no obliga al usuario usar ENTER, espero te ayude, es mas cambie mis mensajes a ese estylo, saludos desde Venezuela...
Controlar propiedad AutoPopDelay de un tooltip
Amigos. ¿Se puede controlar el tiempo que necesitemos mientras se muestra un ToolTip? ¿Como hacerlo? [quote:223ey9yw]AutoPopDelay: Controla la cantidad de tiempo que se mostrara el tooltip[/quote:223ey9yw] Saludos
Controlar propiedad AutoPopDelay de un tooltip
SI. Modificando window.prg Mira en window.prg, donde está escrito Rossine. Se tu fwhx for la vérsion FWH16.10 puede usar esta window,prg modificada. Mira tooltip.prg que és como yo uso. <!-- m --><a class="postlink" href="http://www.4shared.com/zip/Y-xm-jMOba/TOOLTIP.html">http://www.4shared.com/zip/Y-xm-jMOba/TOOLTIP.html</a><!-- m --> Saludos
Controlar propiedad AutoPopDelay de un tooltip
Después de cambiar window.prg hacer asi: Mister Navarro podria incorporar al nuevo build de FWHX. [code=fw:31d16yco]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> 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> XCODVEND <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 99"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> ODLG       ;<br />             BITMAP   <span style="color: #ff0000;">"BUSCAR"</span>  <span style="color: #0000ff;">FONT</span> oFnt        <span style="color: #0000ff;">UPDATE</span>                      ;<br />             <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>              ;<br />             <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ACHA_CODIGO_VENDEDOR<span style="color: #000000;">&#40;</span> XCODVEND, aGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>       ;<br />             <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ACHA_CODIGO_VENDEDOR<span style="color: #000000;">&#40;</span> XCODVEND := <span style="color: #000000;">&#91;</span>**<span style="color: #000000;">&#93;</span>, aGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #B900B9;">//aGet[1]:Disable()</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lBtnTransparent</span> := .T.       <span style="color: #B900B9;">// transparent button get aGet[1]</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lAdjustBtn</span>      := .T.       <span style="color: #B900B9;">// Button Get Adjust Witdh aGet[1]</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lDisColors</span>      := .F.       <span style="color: #B900B9;">// Deactive disable color</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrTextDis</span>     := CLR_WHITE <span style="color: #B900B9;">// Color text disable status</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrPaneDis</span>     := CLR_BLUE  <span style="color: #B900B9;">// Color Pane disable status</span><br /><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> nKey == VK_F7, Eval<span style="color: #000000;">&#40;</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />    <span style="color: #B900B9;">//-> By Rossine</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span>         := OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Click no BotÆo ao Lado, Para "</span> + ;<br />                                           <span style="color: #ff0000;">"Visualizar o Banco de Dados "</span>  + ;<br />                                           <span style="color: #ff0000;">"dos Operadores, Veja os C¢digos "</span>+;<br />                                           <span style="color: #ff0000;">"<F7>-Mostra."</span> <span style="color: #000000;">&#41;</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lToolTipBallon</span>   := .T.<br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTooltipWidth</span>    := <span style="color: #000000;">120</span>  <span style="color: #B900B9;">// 100</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTooltipTexColor</span> := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTooltipBKColor</span>  := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span> <span style="color: #000000;">&#41;</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltipTitle</span>    := OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Operadores do Sistema"</span> <span style="color: #000000;">&#41;</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTooltipIcon</span>     := <span style="color: #000000;">1</span>  && <span style="color: #000000;">0</span>=NONE / <span style="color: #000000;">1</span>=TTI_INFO / <span style="color: #000000;">2</span>=TTI_WARNING / <span style="color: #000000;">3</span>=TTI_ERROR<br />    <span style="color: #B900B9;">//-> 0=TTDT_AUTOMATIC / 1=TTDT_RESHOW / 2=TTDT_AUTOPOP / 3=TTDT_INITIAL</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nSetDelayType</span>    := <span style="color: #000000;">2</span><br />    aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nSetDelayTime</span>    := <span style="color: #000000;">350000</span> <span style="color: #B900B9;">//-> Velocidade do TOOLTIP-> +- 50 Secs</span><br /> </div>[/code:31d16yco]  Dudas, pregunte. Saludos.
Controlar propiedad AutoPopDelay de un tooltip
imagen del tooltip con la classe modificada: [img:354st1p0]http&#58;//i&#46;imgur&#46;com/SB5aLcE&#46;png[/img:354st1p0] Saludos.
Controlar propiedad AutoPopDelay de un tooltip
Lo acabo de descargar y lo miraré Saludos
Controlar propiedad AutoPopDelay de un tooltip
Gracias, Karinha. Lo probaré. Saludos.
Controlar propiedad AutoPopDelay de un tooltip
For many years it is already possible to set title, icon and colors of tooltip. Obj:cToolTip can be assigned with Text or Array or CodeBlock. Codeblock can return either text or array Advantage of codeblock is that we can change the text,etc displayed according to the context at the time of display of tooltip. Array Specs: Obj:cToolTip := { cText, cTitle, nIcon, nClrText, nClrBack } [quote:23f5pi2t] March 2008 =========== * Enhancement: Tooltips can now have user defined header, icon and colors, by specifying the tooltip as an array in the format { cToolTipText, [cHeader, [nIcon]], [nForeColor], [nBackColor] }. If the tooltip is specified as a codeblock, it can evaluate to a character value or an array. [/quote:23f5pi2t] Now we shall consider adding width, delaytype and delaytime
Controlar propiedad AutoPopDelay de un tooltip
Very well, Mr. Rao. Waiting anxiously. Greetings.
Controlar propiedad AutoPopDelay de un tooltip
Idea option for: AutoPopDelay infinite,,,, end with click Obj:cToolTip := { cText, cTitle, nIcon, nClrText, nClrBack, lInfinite } <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Controlar scanner en Fwh2.4
Algun colega puede ayudarme, necesito una clase para poder controlar dispositivos twain como el scanner y grabar la imagen capturada, sin utilizar librerias de terceros solamente puro fwh, agradezco su ayuda. Cordial saludo, Cristian Caballero Colombia <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Controlar scanner en Fwh2.4
Cristian; I think I can help. But listen, if you wish to continue in spanish then let's move this thread over to the spanish forum. We shouldn't be writing spanish on an english forum. IMHO, Rafa Carmona has written one of the best classes to interface with the scanner (Tscan). You'll need his work and a free twain scanner dll. I'm not totally sure where you can find them, but if you search on the ngs for messages from Rafa Carmona, you should be able to find the needed references. Otherwise, I'll try to see if I can find his whereabouts. Best, Reinaldo.
Controlar scanner en Fwh2.4
Excuse you, I have published my restlessness in the forum of ingles of missed way, of all ways if some can help me will be been thankful. Warm Greeting Cristian
Controlar scanner en Fwh2.4
Crisitan, I'm not exactly sure what you're saying, but it seems like I've offended you. If it is so, please accept my apologies. It was not my intention. If I suggest to write English on the English forum is only out of respect to others here. Again (in my opinion), the best source for a scanner class is Rafa Carmona (the full). But there are many others. Have you tried to search for messages from Rafa as I suggested above? At any rate, I did the search. I found where Rafa speaks of his tscan32 class on the spanish forum. [url] <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=279&highlight=scanner">http://fivetechsoft.com/forums/viewtopi ... ht=scanner</a><!-- m --> [/url] Please investigate using this link. Should you still need help with Rafa's class, I'd love to help you further. ok? Best, Reinaldo.
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Hola a todos Tengo una duda: A través de un diálogo llamo a la siguiente función, creo una serie de carpetas y muestro el contenido de la última carpeta con cGetfile, pero la ventana ocupa toda la pantalla y no da opción a minimizarla ni a reducir el tamaño. El código es el siguiente: if HB_DirExists( Curdrive()+":\"+cRaiz+"\"+CarpetaSAT ) if HB_DirExists( Curdrive()+":\"+cRaiz+"\"+CarpetaSAT+"\"+apunte) msgalert("Ya existe ese apunte") aFiles:=Array( ADir( Curdrive()+":\"+cfILES+"\"+"*.*", aFiles ) ) if len(aFiles)==0 msgInfo("La carpeta esta vacía. Debe añadir ficheros asociados") endif cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,.t.,,) else if lMkDir(Curdrive()+":\"+cRaiz+"\"+Carpetasat+"\"+apunte) MsgInfo( "Debe añadir los ficheros asociados") cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,.t.,,) endif endif endif El resultado es este: [img:cz9p2sdm]https&#58;//photos&#46;app&#46;goo&#46;gl/xpB5nEBDf8yjRvka8[/img:cz9p2sdm] Ya digo, ocupa toda la pantalla. ¿Hay alguna forma de controlar el tamaño de la ventana? Un saludo y gracias
Controlar tamaño ventana cGetfile [SOLUCIONADO]
La imagen no se ve Yo uso <!-- m --><a class="postlink" href="https://postimages.org/">https://postimages.org/</a><!-- m -->
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Hola, CNavarro A ver si ahora se ve la imagen [img:2mify9fy]https&#58;//i&#46;postimg&#46;cc/MpgrJqVM/cGetfile&#46;png[/img:2mify9fy]
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Ramón, Prueba así: #define OFN_ENABLESIZING 0x00800000 cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,OFN_ENABLESIZING,,)
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Hola, Antonio He introducido lo que me has indicado y la ventana sigue igual. El código completo del archivo es este: #include "fivewin.ch" #define OFN_ENABLESIZING 0x00800000 function ANEXA(cnum, cnom, nLibro, dfecha, cCentro, cDoc, cPrio, cClasedoc) Local cRaiz:="\COMPARTIDO\REGSAT\WINSAT\DOCUMENTAL" LOCAL CarpetaSAT:=alltrim(cnum)+"-"+alltrim(cnom) Local libro:=strzero(nlibro,6) LOCAL fecha:=strzero(day(dfecha),2)+strzero(month(dfecha),2)+str(year(dfecha),4) Local Clasedoc:=alltrim(cClasedoc) Local aFiles, aDir Local cFolder := cRaiz+"\"+CarpetaSAT+"\"+Libro+"\"+fecha+"\"+Clasedoc Local apunte :=libro+"-"+fecha Local cFiles := cRaiz+"\"+CarpetaSAT+"\"+apunte SET CENTURY ON SET DATE TO FRENCH //----------------Si no existe, se crea carpeta de la SAT------------------ if ! HB_DirExists( Curdrive()+":\"+cRaiz+"\"+CarpetaSAT ) if lMkDir( Curdrive()+":\"+cRaiz+"\"+CarpetaSAT ) MsgInfo( "La carpeta de la SAT no existía y se ha creado") endif endif //-------- Comprobado que existe la carpeta raiz, creamos las subcarpetas-------------- if HB_DirExists( Curdrive()+":\"+cRaiz+"\"+CarpetaSAT ) if HB_DirExists( Curdrive()+":\"+cRaiz+"\"+CarpetaSAT+"\"+apunte) msgalert("Ya existe ese apunte") aFiles:=Array( ADir( Curdrive()+":\"+cfILES+"\"+"*.*", aFiles ) ) if len(aFiles)==0 msgInfo("La carpeta esta vacía. Debe añadir ficheros asociados") endif cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,OFN_ENABLESIZING,,) //cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,.t.,,) else if lMkDir(Curdrive()+":\"+cRaiz+"\"+Carpetasat+"\"+apunte) MsgInfo( "Debe añadir los ficheros asociados") // (cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,.t.,,),1) cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,OFN_ENABLESIZING,,) endif endif endif return nil
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Ramón, Según esta documentacion de Microsoft: [url:pgjec80y]https&#58;//docs&#46;microsoft&#46;com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamea[/url:pgjec80y] hay que usar OFN_ENABLESIZING para poder redimensionar la caja de diálogo. Este valor lo recibe la función cGetFile() en el séptimo parámetro: DWORD dwFlags = IF( hb_pcount() > 6 && HB_ISNUM( 7 ), hb_parnl( 7 ), 2060 ); No lo he probado, solo me he limitado a buscar esa información. Otra opción es verificar si la función cGetFile() sigue usando la función en C ComDlgHkFile() y desde ahi modificar el tamaño. Si la primera solución no te funciona habrá que investigar esta segunda opción.
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Gracias, Antonio Ahí me has pillado. Eso ya está fuera de mis conocimientos. La verdad es que no sé cómo solucionar ese problema. De todas maneras, agradezco tu atención un saludo
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Prueba esto tal y como te lo pongo y dime si la ventana también aparece maximizada [code=fw:1p7vetu1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<span style="color: #00C800;">local</span> cExt &nbsp;:= <span style="color: #ff0000;">"*"</span><br />&nbsp;? cGetFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Archivos ( *. "</span> + cExt + <span style="color: #ff0000;">") |*."</span> + cExt + <span style="color: #ff0000;">"|"</span>, <span style="color: #ff0000;">"Seleccione Fichero"</span>, , <span style="color: #ff0000;">".<span style="color: #000000;">\"</span> )<br /></span></div>[/code:1p7vetu1]
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Hola, CNavarro Ahora sale pequeña, centrada y se puede redimensionar con el puntero. [img:2uqtvvoi]https&#58;//i&#46;postimg&#46;cc/jCY0QfZx/c-Get-File2&#46;png[/img:2uqtvvoi] Y al cerrar sale esto: [img:2uqtvvoi]https&#58;//i&#46;postimg&#46;cc/8zWd06w8/c-Get-File3&#46;png[/img:2uqtvvoi]
Controlar tamaño ventana cGetfile [SOLUCIONADO]
CNavaro, lo acabo de probar de nuevo y sigue igual, es decir, pantalla completa y sin poder redimensionar. Tiene un comportamiento extraño
Controlar tamaño ventana cGetfile [SOLUCIONADO]
[url:3cqz2u99]http&#58;//fivetechsupport&#46;com/forums/viewtopic&#46;php?f=3&t=15004&sid=7c2dcdc20e14d4029ede15c0f4421a65&start=15[/url:3cqz2u99] Saludos.
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Gracias, João, pero no vale para mi caso. Además, como le he comentado a Antonio, no funciona con cGetFile( "Todos los archivos (*.*)|*.*", "Contenido de la carpeta",, Cfiles,,,OFN_ENABLESIZING,,), que es la solución que buscaba. es decir, la imagen siguiente (figurada): [img:sorqmc4a]https&#58;//i&#46;postimg&#46;cc/76PVY5BQ/c-Get-File4&#46;png[/img:sorqmc4a] Como podrás ver, lo que pretende es que al abrir una diálogo de edición de registro sobre un xbrowse, se cree una ruta de carpetas para luego abrir la última creada y pegar archivos en ella. Te agradezco tu atención
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Miara se ayuda: [url:3qplx3vp]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/viewtopic&#46;php?f=2&t=16410&p=98713&hilit=OFN_ENABLESIZING#p98713[/url:3qplx3vp] Saludos.
Controlar tamaño ventana cGetfile [SOLUCIONADO]
Gracias, João. Feliz Año Nuevo a todos Un saludo
Controlar teclado y pintar en Smartphone .
Hola a todos.Alguien sabe como desde programa, se puede cambiar entre los diferentes modos de entrada de caracteres, numérico, alfanumérico etc... del teclado en un smartphone sin pantalla tactil ?. Gracias por adelatado.
Controlar un servicio de windows...
Lo dicho, lo que quiero hacer es saber si un servicio de windows esta arrancado o arrancarlo simplemente. Con el nuevo servipack de windows XP el servicio mensajero está desabilitado. Este servicio controla los mensajes mediante el comando net send. Si me voy enciama de Mi PC y con el boton derecho voy a administrar ahí veo como estan los servicios. El de mensajero cuando actualizas el nuevo servipack está desabilitado y desde allí lo puedes poner en automático y luego iniciar. Me preguntaba si esto lo podemos hacer para que cuando arranques el programa mire si está arrancado y en caso contrario arrancarlo. He implementado un control de accesos a los programas y sabiendo el nombre del pc que ha entrado en un programa puedo mandarle mensajes en forma de popups que le salgan en pantalla con el comando NET SEND: [code=fw:5winj4mm]<div class="fw" id="{CB}" style="font-family: monospace;">WinExec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CMD /C START /separate NET SEND "</span> + ORDENADOR + <span style="color: #ff0000;">" Sal del programa de instalaciones"</span>  ,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span></div>[/code:5winj4mm] Por defecto al instalar el service pack este comando no funciona por no estar arrancado el servicio mensajero. Cómo lo hago? PD.: Sé que lo puedo hacer uno a uno de forma manual en todos los ordenadores, pero necesito hacerlo por programación.
Controlar un servicio de windows...
I am not clear whether this is what you are looking for. The following code will help you to Start or Stop a windows service [code=fw:386wo9al]<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: #B900B9;">//-----------------------//</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">Local</span> oLoc,oWmi,oServiceList,oService<br /><br />    oLoc:= CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"wbemScripting.SwbemLocator"</span> <span style="color: #000000;">&#41;</span><br />    oWmi:= oLoc:<span style="color: #000000;">ConnectServer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />    <span style="color: #00C800;">If</span> oWmi == <span style="color: #00C800;">NIL</span><br />        ? <span style="color: #ff0000;">"Sorry!! No Wmi"</span><br />        <span style="color: #00C800;">Return</span><br />    <span style="color: #00C800;">Endif</span><br />   <br />&nbsp; &nbsp; <span style="color: #B900B9;">// As an eg. here I am checking whether MySQL service is running or not</span><br />    oServiceList := oWmi:<span style="color: #000000;">ExecQuery</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Select * from Win32_Service where Name='MySQL'"</span><span style="color: #000000;">&#41;</span> <br />   <br />    <span style="color: #00C800;">FOR</span> EACH oService IN oServiceList<br />        <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>oService:<span style="color: #000000;">State</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Returns the string Running/Stopped </span><br />        <span style="color: #00C800;">If</span> oService:<span style="color: #000000;">State</span> == <span style="color: #ff0000;">"Stopped"</span><br />            oErr:=oService:<span style="color: #000000;">StartService</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>        <br />        Elseif oService:<span style="color: #000000;">State</span> == <span style="color: #ff0000;">"Running"</span><br />            oService:<span style="color: #000000;">StopService</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">Endif</span><br />    <span style="color: #00C800;">Next</span><br />  <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span>    </div>[/code:386wo9al] Regards [b:386wo9al]Anser[/b:386wo9al]
Controlar un servicio de windows...
Correct Anser, this is what I'm looking for. Thanks.
Controlar un servicio de windows...
Anser, could you test if you can star and stop de service called 'Messenger'. In spanish is 'Mensajero' but the code never show to the msginfo. [code=fw:3pv4b30y]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// As an eg. here I am checking whether MySQL service is running or not</span><br />    oServiceList := oWmi:<span style="color: #000000;">ExecQuery</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Select * from Win32_Service where Name='Messenger'"</span><span style="color: #000000;">&#41;</span> <br />   <br />    <span style="color: #00C800;">FOR</span> EACH oService IN oServiceList<br />        <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>oService:<span style="color: #000000;">State</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Returns the string Running/Stopped </span><br />        <span style="color: #00C800;">If</span> oService:<span style="color: #000000;">State</span> == <span style="color: #ff0000;">"Stopped"</span><br />            oErr:=oService:<span style="color: #000000;">StartService</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />            <span style="color: #0000ff;">MSgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Servicio iniciado"</span><span style="color: #000000;">&#41;</span>       <br />        Elseif oService:<span style="color: #000000;">State</span> == <span style="color: #ff0000;">"Running"</span><br />            oService:<span style="color: #000000;">StopService</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Servicio Finalizado"</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">Endif</span><br />    <span style="color: #00C800;">Next</span></div>[/code:3pv4b30y] PD.: Messenger is nothing to be with Messenger Live, is just to send pupups in a domain network
Controlar un servicio de windows...
Sorry Anser, it needs a delay. Working thanks.
Controlar un servicio de windows...
Yes, you need to include delay/sleep to work properly. Sorry, I forgot to include the sleep command in the sample code. Nice to hear that it worked for you. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Regards Anser
Controle Activex. Capturar eventos
Como capturar eventos activex em Fivewin? ImageAcquired This event is fired whenever a fingerprint image is acquired from a plugged fingerprint reader. Prerequisites The capture module must have been previously initialized. At least one fingerprint reader started capturing fingerprint images. Parameters [in] idSensor The ID of the fingerprint reader that raised the event. [in] width Fingerprint image width in pixels. [in] height Fingerprint image height in pixels. [in] rawImage The raw grayscale fingerprint image. [in] res Fingerprint image resolution in DPI. DECLARATION C# void [Control Name]_ImageAcquired(object sender, [Library Name]._IGrFingerXCtrlEvents_ImageAcquireEvent e) SAMPLE C# private void axGrFingerXCtrl1_ImageAcquired(object sender, AxGrFingerXLib._IGrFingerXCtrlEvents_ImageAcquiredEvent e) { // Copying acquired image _raw.img = e.rawImage; _raw.height = (int) e.height; _raw.width = (int) e.width; _raw.Res = e.res; // Signaling that an Image Event occurred. WriteLog("Sensor: " + e.idSensor + ". Event: Image captured."); // display the fingerprint image PrintBiometricDisplay(false, GRConstants.GR_DEFAULT_CONTEXT); }
Controle Activex. Capturar eventos
Syda, Please review samples\webexp.prg: oActiveX&#058;bOnEvent = { | event, aParams, pParams | ... your code ... }
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Antonio : Por fin pude trabajar con la version 7.12 ( Muchas Gracias a Carlos Vargas por su valiosa ayuda ). Pero no esta permitiendome usar los activeX, inclusive si trato de generar los ejemplos : excel y excel2 no hace nada, se quedan los programas en el limbo. Saludos
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Raymundo, Acabamos de probar samples\WebExp.prg con xHarbour y funciona perfectamente. Posiblemente se debe al orden de enlazado de las librerías. Comprueba que sea el mismo que se usa en samples\buildx.bat. Y que las librerías de FWH esten antes de las de xHarbour
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Master Antonio : Estoy usando el BuildX.Bat de la carpeta SAMPLES para generarlos y nop, no se ejecutan. Los demas ejemplos que he generado, estan funcionando OK Saludos
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Raymundo, Usas el xHarbour que distribuimos con FWH ó la versión comercial xHB ?
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Antonio : El xHarbour que viene con el update. Saludos
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Antonio : Solucionado, Mil disculpas. Fue cuasado por un error mio. Gracias
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Raymundo, Me alegro de que esté solucionado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Puedes comentar que es lo que pasó por si a otro usuario le ocurre igual ? gracias,
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Antonio : Realmente fue un descuido por parte mia, te comento : Estoy cambiando de Equipo por uno mas actualizado, asi que estuve instalando todas las utilerias y demas cosas para el desarrollo, pero tambien tenia algunas cosas en la Lap que estaba probando, entre ellas una version diferente de Borland, asi que cuando pense que ya tenia todo listo, no me percate que habia copiado la version diferente a la nueva Pc y cuando empece a tratar de generar las Apps, bueno ya sabes que paso <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Asi que no fue nada mas que encamotarme con 2 Pcs y una Lap al mismo tiempo. Saludos
Controles ActiveX No funcionan con FWH 7.12 + xHarbour
Jejeje Por cierto, esta nueva PC corre como DIABLOOOO !!! Asi que ya se me quemaban las habas por usarla. Saludos
Controles MCI
Antonio Los buenos días para ti y los del foro Respecto al tema de los controles MCI he seguido tu sugerencia de buscar el “google” y he encontrado información que me ha hecho entender como funcionan estos controles junto con el “ Winmm.dll “ que se encuentre en Windows desde hace ya muchos años atrás, precisamente para facilitar a los programadores el acceso a estos medios de comunicación. Antes de hacerte la pregunta quiero dejar claro que mi intención es lograr que mcisendstr( cadena length ) lo pueda hacer desde Fivewin y no desde otro medio. ¿En FiveWin desde código se puede comunicar con los controles MCI al Winmm.dll o tu empresa ha tenido que hacer algunos trabajos librerías o clases para que yo pueda en la actualidad abrir ejecutar, detener o continuar con un archivo de sonido como hasta ahora lo ha hecho? La pregunta es porque el length en tiempo de un archi de sonido si se encuentra en los controles MCI del winmm.dll, lo que no se es como comunicarme con el. Cordialmente Jairo Barbosa <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=9866">http://fivetechsoft.com/forums/viewtopic.php?t=9866</a><!-- m -->
Controles Radio
Antonio : Estoy trabajando con el control Radio, y veo un comportamiento extraño en los controles que se agregan a un RadioMenu Aqui te anexo el ejemplo : [code:1og50r0v] nRAD&#58;= 1 DEFINE DIALOG oDlgRad FROM 0, 0 TO 220, 240 OF oWnd TITLE "RADIO" PIXEL @ 1, 1 GROUP oGrp TO 120, 210 PROMPT "Radio!" PIXEL *@ 180, 20 BUTTON oBtn OF oDlg PROMPT "Valor" SIZE 80, 30 ACTION MsgInfo&#40; Str&#40; nRAD &#41; &#41; PIXEL ACTIVATE DIALOG oDlgRad ONINIT CW&#58;RADIO&#40;oGrp&#41; RETURN * FUNCTION RADIO&#40;&#41; PARAM oGrp @ 1, 2 RADIO oRadMenu VAR nRAD ITEMS &#123;"One","Two","Three"&#125; SIZE 80, 15 OF oGrp @ 130, 150 RADIOITEM oRitem3 PROMPT "Six" MENU oRadMenu SIZE 40, 15 OF oDlgRad PIXEL COLORS nRGB&#40;0,0,0&#41;,nRGB&#40;0,255,255&#41; @ 130, 70 RADIOITEM oRitem1 PROMPT "Four" MENU oRadMenu SIZE 5, 15 OF oDlgRad PIXEL COLORS nRGB&#40;0,0,0&#41;,nRGB&#40;255,0,255&#41; @ 130, 2 RADIOITEM oRitem2 PROMPT "Five" MENU oRadMenu SIZE 40, 15 OF oDlgRad PIXEL COLORS nRGB&#40;0,0,0&#41;,nRGB&#40;0,255,0&#41; @ 145, 40 RADIOITEM oRitem4 PROMPT "Four" MENU oRadMenu SIZE 5, 15 OF oDlgRad PIXEL COLORS nRGB&#40;0,0,0&#41;,nRGB&#40;255,0,255&#41; @ 160, 65 RADIOITEM oRitem5 PROMPT "Four" MENU oRadMenu SIZE 5, 15 OF oDlgRad PIXEL COLORS nRGB&#40;0,0,0&#41;,nRGB&#40;255,0,255&#41; oRitem5&#58;SetText&#40; lTrim&#40; Str&#40; oRitem5&#58;nLeft-4 &#41; &#41; +","+lTrim&#40; Str&#40; oRitem5&#58;nRight-4 &#41; &#41; &#41; oRitem4&#58;SetText&#40; lTrim&#40; Str&#40; oRitem4&#58;nLeft-4 &#41; &#41; +","+lTrim&#40; Str&#40; oRitem4&#58;nRight-4 &#41; &#41; &#41; oRitem3&#58;SetText&#40; lTrim&#40; Str&#40; oRitem3&#58;nLeft-4 &#41; &#41; +","+lTrim&#40; Str&#40; oRitem3&#58;nRight-4 &#41; &#41; &#41; oRitem2&#58;SetText&#40; lTrim&#40; Str&#40; oRitem2&#58;nLeft-4 &#41; &#41; +","+lTrim&#40; Str&#40; oRitem2&#58;nRight-4 &#41; &#41; &#41; oRitem1&#58;SetText&#40; lTrim&#40; Str&#40; oRitem1&#58;nLeft-4 &#41; &#41; +","+lTrim&#40; Str&#40; oRitem1&#58;nRight-4 &#41; &#41; &#41; @ 180, 20 BUTTON oBtn PROMPT "Valor" OF oDlg SIZE 80, 30 ACTION MsgInfo&#40; Str&#40; nRad &#41; &#41; PIXEL RETURN [/code:1og50r0v] Le agrege colores para que se claramente que el ancho que pinta el control no es el mismo que se define. Adjunto también una imagen de como se ve. [img:1og50r0v]http&#58;//vikthor&#46;com&#46;mx/images/testradio&#46;jpg[/img:1og50r0v]
Controles TSay y TCheckBok en TBar
Mira si esto es de alguna ayuda; [code=fw:2nqu4lde]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar 3D <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> ||;<br />&nbsp; &nbsp; &nbsp; &nbsp; DrawText2<span style="color: #000000;">&#40;</span>oBar:<span style="color: #000000;">hDC</span>, oFont1:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"TEXTO TRANSPARENTE EN oBAR"</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">10</span>, <span style="color: #000000;">420</span>, <span style="color: #000000;">500</span>, <span style="color: #000000;">500</span>, CLR_BLACK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> DrawText2<span style="color: #000000;">&#40;</span> hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,<span style="color: #0000ff;">color</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> hFontOld:= SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> nBkOld := SetBkMode<span style="color: #000000;">&#40;</span> hDC, nBkMode <span style="color: #000000;">&#41;</span><br />SetTextColor<span style="color: #000000;">&#40;</span> hDC, <span style="color: #0000ff;">color</span> <span style="color: #000000;">&#41;</span><br />DrawText<span style="color: #000000;">&#40;</span> hDC, cText, <span style="color: #000000;">&#123;</span> nTop, nLeft, nTop+nWidth, nLeft+nHeight <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />SelectObject<span style="color: #000000;">&#40;</span> hDC, hFontOld <span style="color: #000000;">&#41;</span><br />SetBkMode<span style="color: #000000;">&#40;</span> hDC, nBkOld <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2nqu4lde]
Controles TSay y TCheckBok en TBar
Hola a todos Cuando hago una declaración como esta : [code=fw:3vim1eze]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;@ <span style="color: #000000;">6</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">SAY</span> ::<span style="color: #000000;">oSay</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Buscar :"</span> <span style="color: #0000ff;">OF</span> oBar;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> TRANSPARENT <span style="color: #0000ff;">PIXEL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oSay</span>:<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">45</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oSay</span>:<span style="color: #000000;">nHeight</span> := <span style="color: #000000;">16</span><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">4</span>,<span style="color: #000000;">445</span> <span style="color: #0000ff;">GET</span> ::<span style="color: #000000;">oBusca</span> <span style="color: #0000ff;">VAR</span> ::<span style="color: #000000;">cBusca</span> <span style="color: #0000ff;">OF</span> oBar;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;READONLY <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PIXEL</span><br />&nbsp;</div>[/code:3vim1eze] El control Say aparece con un contorno gris por encima de la Tbar. Alguna sugerencia para resolverlo ? Saludos
Controles desde recursos definicion fuentes
Hola foro, una gran duda, creo que hasta ahora siempre he difinido los controles (botones, check, combos...) con la fuente que viene por defecto (del sistema), pero me puse a revisar y he visto que la definicion de una fuente para un control definido como recurso, no es posible directamente con el preprocesador, es decir como comando, a la fuerza el control debe ser instanciado en una variable para luego asignarle la fuente oControl:oFont := oFont Sin embargo, para la definicion de un control por codigo fuente @ y,x..... si es posible. Me pregunto POR QUE? yo tengo mi propia modificacion de la clase DBCOMBO con algunas modificaciones y añadidos y alli aumente el [ FONT <ofont>] en la cabecera y funciona. O es que hay alguna manera de definir el font en el recurso que no se? saludos Marcelo
Controles en dialogos no se alinean
Saludos Cual es la mejor manera de trabajar los controles en un dialogo incrustrado en una Windows ? A pesar que hago las alineaciones nunca quedan donde deben estar Los dialogos se trabajan en columnas/filas o en pixeles ? Ventajas / desventajasde cada uno ? Gracias a todos lo que puedan aclarar
Controles en dialogos no se alinean
Que usas, @Say ó Recursos del Workshop.exe the best? Saludos.
Controles en dialogos no se alinean
No uso recursos, todos los controles hecho a codigo PS (No quiero usar recursos)
Controles en dialogos no se alinean
Yo hace tiempo que en mis desarrollos intento por todos los medios no usarlos, solo para las imagenes Pon un ejemplo de como lo haces
Controles en dialogos no se alinean
[quote="cnavarro":2simzfkw]Yo hace tiempo que en mis desarrollos intento por todos los medios no usarlos, solo para las imagenes Pon un ejemplo de como lo haces[/quote:2simzfkw] @ 1,01 SAY "Nombre: " RIGHT @ 2,01 SAY "Apellido : " RIGHT @ 3,01 SAY "Curso : " RIGHT @ 4,01 SAY "Horario : " RIGHT @ 1,20 GET oNombre VAR cNombre @ 3,06 GET oApellido VAR cApellido; @ 3,06 COMBOBOX oHorario VAR cHorario ITEMS {"Diurno","Nocturno"} @ 4,06 CHECKBOX lStatus PROMPT "Status"
Controles en dialogos no se alinean
Entiendo que los controles son esos o cualquier otros No me refería sólo a eso, sino a la definición del diálogo ( o contenedor ) y del font ( también importante ) Es decir, un ejemplo completo para su implementación
Controles en dialogos no se alinean
DEFINE DIALOG oDlg; FROM 0,0 TO 80, 80; PIXEL TITLE 'Test' OF oWnnPPal @ 1,01 SAY "Nombre: " RIGHT @ 2,01 SAY "Apellido : " RIGHT @ 3,01 SAY "Curso : " RIGHT @ 4,01 SAY "Horario : " RIGHT @ 1,20 GET oNombre VAR cNombre @ 3,06 GET oApellido VAR cApellido; @ 3,06 COMBOBOX oHorario VAR cHorario ITEMS {"Diurno","Nocturno"} @ 4,06 CHECKBOX lStatus PROMPT "Status" ACTIVATE DIALOG oDlg NOWAIT
Controles en dialogos no se alinean
Veo que no utilizas la clausula SIZE en los controles
Controles en dialogos no se alinean
Eso influye para que los muestre desordenados?
Controles en dialogos no se alinean
[quote="Compuin":s4ooquk1]Saludos Cual es la mejor manera de trabajar los controles en un dialogo incrustrado en una Windows ? A pesar que hago las alineaciones nunca quedan donde deben estar Los dialogos se trabajan en columnas/filas o en pixeles ? Ventajas / desventajasde cada uno ? Gracias a todos lo que puedan aclarar[/quote:s4ooquk1] No hombre, no es exactamente eso Pero, lo que quiero exponer es que el hecho de que no use recursos para el diseño, no me hace olvidar la información que incluyen los .rc para su diseño y uso posterior. Eso sí, todos los elementos de cada control estará definido con variables y no valores fijos Ejemplo: @ nRow, nCol SAY "Nombre: " RIGHT Ah!, yo utilizo siempre PIXEL
Controles en dialogos no se alinean
[quote="cnavarro":g86018i3][quote="Compuin":g86018i3]Saludos Cual es la mejor manera de trabajar los controles en un dialogo incrustrado en una Windows ? A pesar que hago las alineaciones nunca quedan donde deben estar Los dialogos se trabajan en columnas/filas o en pixeles ? Ventajas / desventajasde cada uno ? Gracias a todos lo que puedan aclarar[/quote:g86018i3] No hombre, no es exactamente eso Pero, lo que quiero exponer es que el hecho de que no use recursos para el diseño, no me hace olvidar la información que incluyen los .rc para su diseño y uso posterior. Eso sí, todos los elementos de cada control estará definido con variables y no valores fijos Ejemplo: @ nRow, nCol SAY "Nombre: " RIGHT Ah!, yo utilizo siempre PIXEL[/quote:g86018i3] No entendi lo del .RC
Controles en dialogos no se alinean
No quiero decir que has de utilizar RC, justo es lo que intentamos evitar Quiero decir que intentes definir los controles con las características que puedes llegar a necesitar para manejar su ubicación en el contenedor Cuando defines un control en el RC, siempre aparece la fila, columna, ancho y alto, no?
Controles en dialogos no se alinean
[quote="cnavarro":19mszx1z]No quiero decir que has de utilizar RC, justo es lo que intentamos evitar Quiero decir que intentes definir los controles con las características que puedes llegar a necesitar para manejar su ubicación en el contenedor Cuando defines un control en el RC, siempre aparece la fila, columna, ancho y alto, no?[/quote:19mszx1z] Ok podrias darme un ejemplo de como hacerlo ?
Controles en dialogos no se alinean
Ok, algo asi, lo he copiado de un ejemplo que tengo, sin comprobar su funcionamiento, pero por lo menos ves lo que quiero decir Faltaría parametrizar tambien las columnas, pero tal y como están definidas en esta ejemplo, no creo que te sea muy difícil [code=fw:jr4aclgl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> nPorHeight := <span style="color: #000000;">1</span>    <span style="color: #B900B9;">// Estas son para distintas resoluciones quizás</span><br /><span style="color: #00C800;">Static</span> nPorWidth  := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    DlgClient<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">Function</span> DlgClient<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">25</span> <span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> oFont<br />   <span style="color: #00C800;">local</span> oFontBold<br />   <span style="color: #00C800;">local</span> lRet        := .F.<br />   <span style="color: #00C800;">local</span> nFil        := <span style="color: #000000;">10</span><br />   <span style="color: #00C800;">local</span> nClrT       := CLR_BLUE<br />   <span style="color: #00C800;">local</span> nClrTG      := CLR_BLUE<br />   <span style="color: #00C800;">local</span> nClrB       := CLR_HGRAY <span style="color: #B900B9;">//WHITE</span><br />   <span style="color: #00C800;">local</span> oChk<br />   <span style="color: #00C800;">local</span> cId         := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cNombre     := 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> cApells     := 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> dDateI      := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Ctod( "9999/99/99" )</span><br />   <span style="color: #00C800;">local</span> nF1         := <span style="color: #000000;">91</span> * nPorHeight<br />   <span style="color: #00C800;">local</span> nC1         := <span style="color: #000000;">300</span><br />   <span style="color: #00C800;">local</span> nF2         := <span style="color: #000000;">480</span> * nPorHeight<br />   <span style="color: #00C800;">local</span> nC2         := <span style="color: #000000;">720</span><br />   <span style="color: #00C800;">local</span> aRet        := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> nOld        := <span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> n           := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> nInc        := <span style="color: #000000;">14</span> * nPorHeight<br />   <br />      cId       := PadR<span style="color: #000000;">&#40;</span> aDats<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />      cNombre   := PadR<span style="color: #000000;">&#40;</span> aDats<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span><br />      cApells   := PadR<span style="color: #000000;">&#40;</span> aDats<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /> <br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> * nPorHeight<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-18</span> * nPorHeight BOLD<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> nF1, nC1 <span style="color: #0000ff;">TO</span> nF2, nC2 <span style="color: #0000ff;">PIXEL</span> COLORS nClrT, nClrB ;<br />          <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Add/Edit Client"</span> <span style="color: #B900B9;">// FONT oFontBold //;</span><br />   <br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br />   oDlg:<span style="color: #000000;">nOpacity</span>  := <span style="color: #000000;">240</span>    <span style="color: #B900B9;">// 0 .. 255      //oDlg:nSeeThroClr := <nColor></span><br /><br />   @ nFil,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Codigo:"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br />            COLORS nClrTG, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br /><br />   @ nFil, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />            COLORS nClrT, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">56</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span> <br /><br />   nFil  += nInc<br />   @ nFil,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Nombre:"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br />            COLORS nClrTG, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br /><br />   @ nFil, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNombre <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> ;<br />            COLORS nClrT, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br />   <br />   nFil += nInc<br />   @ nFil,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Apellidos:"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br />            COLORS nClrTG, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br /><br />   @ nFil, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cApells <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> ;<br />            COLORS nClrT, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">156</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br />            <br /><br />   nFil  += nInc<br />   @ nFil, <span style="color: #000000;">83</span> <span style="color: #0000ff;">BUTTON</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">23</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Aceptar"</span> <span style="color: #0000ff;">OF</span> oDlg ;     <span style="color: #B900B9;">//164</span><br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">53</span> * nPorWidth, <span style="color: #000000;">14</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lRet := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   @ nFil, <span style="color: #000000;">145</span> <span style="color: #0000ff;">BUTTON</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">24</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancelar"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">53</span> * nPorWidth, <span style="color: #000000;">14</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//NOWAIT</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /> </div>[/code:jr4aclgl]
Controles en dialogos no se alinean
[quote="cnavarro":362al39u]Ok, algo asi, lo he copiado de un ejemplo que tengo, sin comprobar su funcionamiento, pero por lo menos ves lo que quiero decir Faltaría parametrizar tambien las columnas, pero tal y como están definidas en esta ejemplo, no creo que te sea muy difícil [code=fw:362al39u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> nPorHeight := <span style="color: #000000;">1</span>    <span style="color: #B900B9;">// Estas son para distintas resoluciones quizás</span><br /><span style="color: #00C800;">Static</span> nPorWidth  := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    DlgClient<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">Function</span> DlgClient<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">25</span> <span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> oFont<br />   <span style="color: #00C800;">local</span> oFontBold<br />   <span style="color: #00C800;">local</span> lRet        := .F.<br />   <span style="color: #00C800;">local</span> nFil        := <span style="color: #000000;">10</span><br />   <span style="color: #00C800;">local</span> nClrT       := CLR_BLUE<br />   <span style="color: #00C800;">local</span> nClrTG      := CLR_BLUE<br />   <span style="color: #00C800;">local</span> nClrB       := CLR_HGRAY <span style="color: #B900B9;">//WHITE</span><br />   <span style="color: #00C800;">local</span> oChk<br />   <span style="color: #00C800;">local</span> cId         := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cNombre     := 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> cApells     := 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> dDateI      := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Ctod( "9999/99/99" )</span><br />   <span style="color: #00C800;">local</span> nF1         := <span style="color: #000000;">91</span> * nPorHeight<br />   <span style="color: #00C800;">local</span> nC1         := <span style="color: #000000;">300</span><br />   <span style="color: #00C800;">local</span> nF2         := <span style="color: #000000;">480</span> * nPorHeight<br />   <span style="color: #00C800;">local</span> nC2         := <span style="color: #000000;">720</span><br />   <span style="color: #00C800;">local</span> aRet        := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> nOld        := <span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> n           := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> nInc        := <span style="color: #000000;">14</span> * nPorHeight<br />   <br />      cId       := PadR<span style="color: #000000;">&#40;</span> aDats<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />      cNombre   := PadR<span style="color: #000000;">&#40;</span> aDats<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span><br />      cApells   := PadR<span style="color: #000000;">&#40;</span> aDats<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span><br /> <br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> * nPorHeight<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Calibri"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-18</span> * nPorHeight BOLD<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> nF1, nC1 <span style="color: #0000ff;">TO</span> nF2, nC2 <span style="color: #0000ff;">PIXEL</span> COLORS nClrT, nClrB ;<br />          <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Add/Edit Client"</span> <span style="color: #B900B9;">// FONT oFontBold //;</span><br />   <br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br />   oDlg:<span style="color: #000000;">nOpacity</span>  := <span style="color: #000000;">240</span>    <span style="color: #B900B9;">// 0 .. 255      //oDlg:nSeeThroClr := <nColor></span><br /><br />   @ nFil,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Codigo:"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br />            COLORS nClrTG, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br /><br />   @ nFil, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />            COLORS nClrT, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">56</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span> <br /><br />   nFil  += nInc<br />   @ nFil,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Nombre:"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br />            COLORS nClrTG, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br /><br />   @ nFil, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNombre <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> ;<br />            COLORS nClrT, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br />   <br />   nFil += nInc<br />   @ nFil,  <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Apellidos:"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br />            COLORS nClrTG, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br /><br />   @ nFil, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cApells <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> ;<br />            COLORS nClrT, nClrB <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">156</span> * nPorWidth, <span style="color: #000000;">11</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span><br />            <br /><br />   nFil  += nInc<br />   @ nFil, <span style="color: #000000;">83</span> <span style="color: #0000ff;">BUTTON</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">23</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Aceptar"</span> <span style="color: #0000ff;">OF</span> oDlg ;     <span style="color: #B900B9;">//164</span><br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">53</span> * nPorWidth, <span style="color: #000000;">14</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lRet := .T., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <br />   @ nFil, <span style="color: #000000;">145</span> <span style="color: #0000ff;">BUTTON</span> aCtl<span style="color: #000000;">&#91;</span> <span style="color: #000000;">24</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancelar"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">53</span> * nPorWidth, <span style="color: #000000;">14</span> * nPorHeight <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//NOWAIT</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontBold:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /> </div>[/code:362al39u][/quote:362al39u] Muchas gracias Cristobal
Controles en dialogos no se alinean
Otro tema adicional, que para mí es fundamental Además de definir los diálogos así, me gusta incluir otros contenedores adicionales dentro de los diálogos y ventanas Es decir, el diálogo y ventana contiene TPanels, y son estos los que contienen los controles Para qué? Bueno, me permite fácilmente cambiar el color de fondo de distintas zonas, pero lo más importante es que hay grupos de controles que son repetitivos en muchas zonas de una aplicación, así modularizo también los controles en funciones ( con solo cambiar el objeto contenedor que la function recibe como parámetro los puedo reutilizar ) y en la mayoría de los casos evitos parametrizar funciones hechas ( ahora no quiero estos controles porque no los necesito, por ejemplo la direccion, y solo quiero el id y el nombre ) Inicialmente es un poco más complicado, pero a mi me gusta asi Espero que me entiendas
Controles en dialogos no se alinean
[quote="Compuin":1hf1jmt3] Muchas gracias Cristobal[/quote:1hf1jmt3] Dime si te ha funcionado el ejemplo
Controles en dialogos no se alinean
Lo estoy montando....ya te digo
Controles en folder desaparecen
Buenos días, en un programa que estoy haciendo tengo un formulario con un folder que tiene tres pestañas. Cuando entro a editar el formulario, al avanzar con TAB a la 4ª o 5ª pulsación de TAB el contenido del folder desaparece. Pasa de esto: [img:zo4vguq1]https&#58;//cincomundos&#46;files&#46;wordpress&#46;com/2016/12/image3&#46;png[/img:zo4vguq1] a esto [img:zo4vguq1]https&#58;//cincomundos&#46;files&#46;wordpress&#46;com/2016/12/image2&#46;png[/img:zo4vguq1] Los dialogos de los folder los tengo definidos igual que en mis otros programas, así: [code=fw:zo4vguq1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MODERN<br />COEDIT_A <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">102</span>, <span style="color: #000000;">74</span>, <span style="color: #000000;">395</span>, <span style="color: #000000;">134</span><br /><span style="color: #0000ff;">STYLE</span> DS_3DLOOK | DS_SETFONT | WS_VISIBLE | WS_CHILDWINDOW | WS_CLIPCHILDREN | WS_SYSMENU<br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />    EDITTEXT        <span style="color: #000000;">120</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">12</span><br />...<br /> </div>[/code:zo4vguq1] y no hago nada extraño en el código, alguna validacion y poco más. Si voy avanzando en el dialogo con el cursor, no desaparece nada. ¿ Alguna idea de qué me puede pasar ? Saludos,
Controles en folder desaparecen
José Luis, Puedes enviarme el EXE por email ? En caso de que no puedas, mi intención es inspeccionar ese folder usando Spy++ de Microsoft para ver que pueda estar sucediendo.
Controles en folder desaparecen
Sorry for the english answer... Some time ago I Had the same problem, that I solved following the text of the link bellow: [url:1iw0rhd6]http&#58;//helpdesk&#46;delphosautomacao&#46;com&#46;br/item&#46;aspx?id=562[/url:1iw0rhd6]
Controles en folder desaparecen
Te lo mando por wetransfer, Saludos,
Controles en folder desaparecen
Por favor envíame un email una vez lo hayas enviado, gracias
Controles sobre una imagen
Me encapriché con hacer un formulario para transcribir los datos recogidos en una planilla, digitalizando antes una planilla en blanco para mostrarla en un diálogo y agregando sobre esta imagen los controles para transcribir la información. Algo así como: [code=fw:1mscra7i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"DATOS"</span><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">IMAGE</span> oImg <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">680</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> FILE <span style="color: #ff0000;">"Planilla.jpg"</span> <span style="color: #0000ff;">SCROLL</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CrearControles<span style="color: #000000;">&#40;</span>oImg,aVar<span style="color: #000000;">&#41;</span><br />:<br /><span style="color: #00C800;">Function</span> CrearControles<span style="color: #000000;">&#40;</span>oImg,aVar<span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">25</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> aVar<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oImg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span><br />   @ <span style="color: #000000;">75</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">COMBOBOX</span> aVar<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oImg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Uno"</span>,<span style="color: #ff0000;">"Dos"</span>,<span style="color: #ff0000;">"Tres"</span><span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>aVar<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">UPDATE</span><br />   @ <span style="color: #000000;">125</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> aVar<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oImg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1mscra7i] Todo funciona bien, excepto que no se evalúa el bChange del combobox. ¿Hay alguna razón que impida que se evalúe el bChange del combobox? Saludos César Lozada Nota: Uso FWH11.12 [img] <!-- m --><a class="postlink" href="http://img171.imageshack.us/img171/5163/muestraui.jpg">http://img171.imageshack.us/img171/5163/muestraui.jpg</a><!-- m --> [/img]
Controles sobre una imagen
Examinando el código de tBitmap, de la cual desciende tImage, observo que en esa clase (tBitmap) ya estaba prevista la inscrustación de controles en una imagen. Creo que así me lo confirman la presencia en la clase del método ::AdjControls() y el uso de ::aControls, con sus ::Move() en caso de hacer scroll. Probé con controles de las clases tSay, tGet, tMGet, tButton y tBtnBmp y todo perfecto. Pero con un combobox no es así: no se ejecuta bChange y ::KeyChar() se ejecuta en la imagen y no en el combobox, produciéndose un indeseado scroll vertical de la imagen al pulsar las teclas KeyUp/KeyDown en el el combobox. ¿Un bug? Gracias.
Controles sobre una imagen
César: Mira en la carpeta .\Samples y busca el ejemplo Corel.Prg, Tal vez sea lo que necesitas. Saludos
Controles sobre una imagen
Gracias, Armando. Pero no es lo que busco. En corel.prg se añaden etiquetas a una forma para imprimirla. Lo que quiero hacer es un diálogo con una imagen sobre la cual hay unos controles para ingreso de datos. Sí se puede con tGets, pero falla con comboboxes. Saludos
Controles sobre una imagen
Hola César, te dejo una sugerencia para que hagas pruebas. En lugar de usar un control imagen, prueba crear un brush usando la imagen, y usa esa imagen en el diálogo. De esa forma el control imagen no interferirá. Yo lo he hecho con bmps, pero supongo que será lo mismo con otras imágenes. Un saludo.
Controles sobre una imagen
Hola César, la solución de carlos es más o menos la que te hiba a proponer, pero en lugar de un brush, una imagen bmp, png, jpg, etc, pasada al proceso de pintado con el codeblock bPainted del dialogo, tiene la ventaja de que puedes dimensionarla a tu antojo o pintarla con transparencia o blending. Primero la abres (antes que el dialogo) y le pasas el handle al codblock. Al final cuando cierrres el diálogo la borras con DeleteObject() yo siemnpre dibujo mis pantallas así, a veces le paso hasta 10 handle y va rapidísimo. Cuando tienes muchos handles metelos en un array y así lo puedes borrar todos a la vez con AEVAL(Array, { |o| DeleteObject(o)}). Es más, muchas pestañas las implemento mediante bitmaps y las gestiono en el bPainted da resultados muy vistosos.
Controles sobre una imagen
Perdón por la falta de ortografía; iba es sin "H", en qué estaría yo pensando...
Controles sobre una imagen
Gracias Carlos y Antolin: Lo implementé con la que me propuso Carlos, aunque luego también pensé en la solución de Antolin, sobre todo si hay que ajustar la imagen si no cabe en el diálogo. Pero dado que esto no me sucedió usé un brush y logré lo deseado. Antolín: Lo de la "H" es fácil de inferir: Seguro estabas pensando en los "handles" de las imágenes. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Gracias de nuevo. Cordiales saludos César Lozada
Controllare le risorse in uso
Salve,ho la sensazione che alcune risorse non vengano chiuse (font in particolare).Esiste una funzione che mi evidenzi tutte le risorse in uso in un certo momento ?Grazie
Controller/Router
Dear Antonio, may I ask what the reason is that in GENESIS these POST routes are inside CONTROLLER() and not router() function. do case case AP_Method() == "GET" AP_RPuts( View( "default" ) ) case AP_Method() == "POST" do case case cAction == "save" ? "post save" Save() case cRequest == "login" Login() endcase endcase Best regards, Otto [code=fw:1jpvr8fm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> Controller<span style="color: #000000;">&#40;</span> cRequest <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> aRequest<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #ff0000;">":"</span> $ cRequest<br />      aRequest = hb_aTokens<span style="color: #000000;">&#40;</span> cRequest, <span style="color: #ff0000;">":"</span> <span style="color: #000000;">&#41;</span><br />      cRequest = aRequest<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />      cAction  = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> aRequest <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span>, aRequest<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"browse"</span> <span style="color: #000000;">&#41;</span><br />      cParam1  = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> aRequest <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span>, aRequest<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />      cParam2  = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> aRequest <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">3</span>, aRequest<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />      nVal1    = Val<span style="color: #000000;">&#40;</span> cParam1 <span style="color: #000000;">&#41;</span><br />      nVal2    = Val<span style="color: #000000;">&#40;</span> cParam2 <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span>    <br /><br />   <span style="color: #00C800;">if</span> cRequest == <span style="color: #ff0000;">"logout"</span><br />      AP_HeadersOutSet<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Set-Cookie"</span>, <span style="color: #ff0000;">"genesis="</span> <span style="color: #000000;">&#41;</span><br />      cRequest = <span style="color: #ff0000;">"login"</span><br />      cUserName = <span style="color: #ff0000;">"guest"</span><br />   <span style="color: #00C800;">else</span>   <br />      <span style="color: #00C800;">if</span> ! hb_HhasKey<span style="color: #000000;">&#40;</span> GetCookies<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"genesis"</span> <span style="color: #000000;">&#41;</span><br />         cRequest = <span style="color: #ff0000;">"login"</span><br />      <span style="color: #00C800;">else</span><br />         <span style="color: #00C800;">if</span> cUserName != <span style="color: #ff0000;">"guest"</span><br />            <span style="color: #00C800;">if</span> cRequest == <span style="color: #ff0000;">"login"</span><br />               cRequest = <span style="color: #ff0000;">"home"</span><br />            <span style="color: #00C800;">endif</span> <br />         <span style="color: #00C800;">else</span><br />            cRequest = <span style="color: #ff0000;">"login"</span><br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">endif</span>              <br />   <span style="color: #00C800;">endif</span>      <br /><br />   hb_default<span style="color: #000000;">&#40;</span> @cAction, <span style="color: #ff0000;">"browse"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> cAction $ <span style="color: #ff0000;">"add,browse"</span> <br />      <span style="color: #00C800;">if</span> nVal1 == <span style="color: #000000;">0</span><br />         nVal1 = <span style="color: #000000;">20</span><br />      <span style="color: #00C800;">endif</span>  <br />   <span style="color: #00C800;">endif</span>   <br /><br />   cContent = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> cRequest <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"home"</span>,;<br />       <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> cRequest $ <span style="color: #ff0000;">"login,logout,home,controllers,logs,menus,routes,database,users,settings,tasks,views,weblinks"</span>,;<br />           cRequest, <span style="color: #ff0000;">"home"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span>   <br />      <span style="color: #00C800;">case</span> AP_Method<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"GET"</span><br />         AP_RPuts<span style="color: #000000;">&#40;</span> View<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"default"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">case</span> AP_Method<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"POST"</span><br />         <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />            <span style="color: #00C800;">case</span> cAction == <span style="color: #ff0000;">"save"</span><br />               ? <span style="color: #ff0000;">"post save"</span><br />                 Save<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #00C800;">case</span> cRequest == <span style="color: #ff0000;">"login"</span><br />                 Login<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />         <span style="color: #00C800;">endcase</span> <br />   <span style="color: #00C800;">endcase</span>   <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Router<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cRoute := <span style="color: #ff0000;">"home"</span><br /><br />   <span style="color: #00C800;">if</span> GetContent<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != <span style="color: #ff0000;">"home"</span><br />      <span style="color: #00C800;">if</span> GetContent<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"login"</span><br />         cRoute = <span style="color: #ff0000;">"login"</span><br />      <span style="color: #00C800;">else</span>         <br />         <span style="color: #00C800;">if</span> GetAction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"edit"</span><br />            cRoute = <span style="color: #ff0000;">"edit"</span><br />         elseif GetAction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"exec"</span><br />            cRoute = <span style="color: #ff0000;">"exec"</span><br />         <span style="color: #00C800;">else</span>      <br />            cRoute = <span style="color: #ff0000;">"browse"</span><br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">endif</span>   <br />   <span style="color: #00C800;">endif</span>      <br /><br /><span style="color: #00C800;">return</span> View<span style="color: #000000;">&#40;</span> cRoute <span style="color: #000000;">&#41;</span>    <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /> </div>[/code:1jpvr8fm]
Controller/Router
Dear Otto, genesis was my first attempt to build a simple web ERP and by that time my analisys was not as accurated as it is today <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> In our more recent mod_harbour developments the functions Controller() and Router() are joined together
Controller/Router
Dear Antonio, Many thanks. Do you have an example? This part is very important and I would so much prefer if I could use your code and design. How do you suggest authentication? Do you think I should offer 2 possibilities: chookies and sessions. May I also ask if you would be so kind as to insert MREAD/MWRITE to mod harbour. Best regards, Otto
Controller/Router
Dear Otto, We only use mod_harbour sessions now functions MRead() and MWrite() are part of mod_harbour already I am going to prepare an example <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Controller/Router
Dear Antonio, Thank you so much. I make an update immediately. Best regards, Otto
Controller/Router
Dear Antonio, I tried with this code: [code=fw:2m26d39v]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> main<br />MWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pwd"</span>, <span style="color: #ff0000;">"my password"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// memory write</span><br />? MRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pwd"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// memory read</span><br /><span style="color: #B900B9;">//from other browser tab or another user:</span><br />? MRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pwd"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//(There is also a new MErase( "pwd" ) but it is not working fine yet</span><br />TEMPLATE<br />ENDTEXT<br /><span style="color: #00C800;">return</span> <br />&nbsp;</div>[/code:2m26d39v] But I get NIL as response. Best regards, Otto
Controller/Router
Dear Otto, Here it is working fine: [url:1f3ikkbq]https&#58;//fivetechsoft&#46;github&#46;io/snippets?20201119155000[/url:1f3ikkbq] Please add this line and let me know what version you get: ? ModBuildDate()
Controller/Router
Dear Antonio, here shows: Oct 21 2020 11:11:03 NIL NIL. Best regards, Otto
Controller/Router
Dear Otto, what Windows version is running on the server ?
Controller/Router
Dear Antonio, there is WINDOWS SERVER 2012 R2 installed. Best regards, Otto
Controller/Router
Dear Antonio, I am on a WINDOWS server. Should these functions work? Best regards, Otto Apr 28 2021 18:57:35 NIL NIL [code=fw:16k9ltae]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> main<br /><br />? ModBuildDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />MWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pwd"</span>, <span style="color: #ff0000;">"my password"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// memory write</span><br />? MRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pwd"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// memory read</span><br /><br /><span style="color: #B900B9;">//from other browser tab or another user:</span><br />? MRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pwd"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//(There is also a new MErase( "pwd" ) but it is not working fine yet</span><br />TEMPLATE<br />ENDTEXT<br /><span style="color: #00C800;">return</span></div>[/code:16k9ltae]
Controlling Tab Order
I needed to control tab order (amongst GETs) on my DIALOGS. Although I had code that was working it had some problems with Shift-Tab support and block editing so I have rehashed it somewhat.Now rather than use code blocks I have added (optional) DATAs to class TGet as follows:[code:17imnypx]DATA oNextTab /** next tab stop */ DATA oPrevTab /** previous tab stop */[/code:17imnypx]Shift-Tab is handled entirely in KeyDown(), Tab is flagged in KeyDown() and handled in LostFocus(). I am happy to share details if its of interest to others. My TGet is fairly heavily modified because I am supporting Tab, Shift-Tab, block editing and black text in non-editable mode.RegardsxProgrammer
Controlling alignment of SAYs
Hi Antonio (and fellow FiveLinuxers)I have enhanced the TSay class so you can set the alignment of your SAYs.In says.c:[code:2btme5nf]HB_FUNC&#40; SAYSETALIGN &#41; &#123; GtkWidget * hWnd = &#40;GtkWidget * &#41; hb_parnl&#40; 1 &#41;; gtk_misc_set_alignment&#40; &#40; GtkMisc * &#41; hWnd, hb_parnd&#40; 2 &#41;, hb_parnd&#40; 3 &#41; &#41;; &#125;[/code:2btme5nf] In say.prg: [code:2btme5nf] METHOD SetAlignment&#40; fHAlign, fVAlign &#41; INLINE SaySetAlign&#40; &#58;&#58;hWnd, fHAlign, fVAlign &#41;[/code:2btme5nf] And in your program code something like: [code:2btme5nf]@ 30, 10 SAY sayKey VAR "Key" OF dlgPATIENT SIZE 90, 25 PIXEL sayKey&#58;SetAlignment&#40; 0&#46;0, 0&#46;5 &#41;[/code:2btme5nf]Next step is to include in #xcommand @ <row>, <col> SAYBy the way fHAlign is a float with 0.0 meaning left align, 1.0 meaning right align, fVAlign is a float with 0.0 meaning top align, 1.0 meaning bottom align. So the example above puts the label text at the left hand side centered vertically.Happy to provide more information if required.xProgrammer
Controlling the SIP (Soft Input Panel)
I am trying to show/hide the SIP (Soft Input Panel) based on which control has focus at any given time. I found the function SIPShowIM referenced here... [url:30l3gaup]http&#58;//msdn&#46;microsoft&#46;com/library/default&#46;asp?url=/library/en-us/wceshellui5/html/wce50lrfsipshowim&#46;asp[/url:30l3gaup] I am defining the function as a DLL FUNCTION using this line... [code:30l3gaup] #define SIPF_OFF 0x00000000 #define SIPF_ON 0x00000001 DLL FUNCTION SIPShowIM&#40; nState AS DWORD &#41; AS BOOL LIB "COREDLL&#46;DLL" [/code:30l3gaup] I call the function with this simple line... [code:30l3gaup]SIPShowIM&#40; SIPF_ON &#41;[/code:30l3gaup] However, I only get a NULL value in return and nothing happens to the SIP. Has anyone successfully found a way to manage the SIP? Also, this might be a nice optional METHOD for GETs in FWPPC...
Controlling the SIP (Soft Input Panel)
Bill, That function is already implemented in FWPPC as these: SHOWKEYBOARD() and HIDEKEYBOARD() Your code is ok, but the parameters supply is not available yet (so it arrives as zero and hides it). Please try them and let us know your results. Thanks
Controlling the SIP (Soft Input Panel)
Antonio, thanks! I missed the announcement about these functions. Works great! You also wrote... [quote="Antonio Linares":3l6qwmvh]Your code is ok, but the parameters supply is not available yet (so it arrives as zero and hides it).[/quote:3l6qwmvh] Does this mean that dynamic DLL function calls are not fully working? This might explain a different issue I am having. Thanks again, Bill