topic
stringlengths
1
63
text
stringlengths
1
577k
Cerrar un indice Temporal (Solucionado)
Hola Jose Luis, Yo creo que el problema es la confusion entre Tag y Bag. Con el comando de abajo estas creando un nuevo bag, es decir un nuevo .cdx que es el que queda activo y por eso no puedes recuperar el anterior order de indice [code=fw:2gcvqkb8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Fecha <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Tfecha1"</span> <span style="color: #00C800;">FOR</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->tipo=<span style="color: #000000;">2</span> .and. <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->liqui=.F. ADDITIVE MEMORY</div>[/code:2gcvqkb8] El comando tendría que ser algo asi, sustituyendo XXXBAG por el bag correcto [code=fw:2gcvqkb8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Fecha TAG <span style="color: #ff0000;">"Tfecha1"</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"XXXBAG"</span> <span style="color: #00C800;">FOR</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->tipo=<span style="color: #000000;">2</span> .and. <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->liqui=.F. ADDITIVE MEMORY</div>[/code:2gcvqkb8] Salu2
Cerrar un indice Temporal (Solucionado)
Muchas gracias Creo que por ahí van los tiros, voy a probar y veré si lo consigo Un saludo
Cerrar un indice Temporal (Solucionado)
He repasado y efectivamente van por ahí los tiros. Pero no consigo remediar nada, si en lugar de TO "Tfecha1" pongo TAG "Tfecha1", lo que pasa es que además se corrompe o lo que sea el índice CDX que tengo en (aAlias[24]) y tengo que volver a indexar todo.
Cerrar un indice Temporal (Solucionado)
El tema que estoy viendo es que todo lo que le ponga que me haga antes de Return a la función del Reporte no me hace caso, regresa sin tenerlo en cuenta, incluso he probado a hacer un msginfo para que me indique los nombres de las etiquetas del alias y nada, no hace nada. Aqui todo el codigo del reporte: [code=fw:3uzydtqd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> i_contado<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oFont1, oFont2<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oPrinter,oPrn,a<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> nindex:=<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> ctitle:= <span style="color: #ff0000;">"LISTADO DE ALBARANES DE CONTADO PENDIENTES DE COBRO"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> dtos<span style="color: #000000;">&#40;</span>albaran->Fecha<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">'Tfecha1'</span> <span style="color: #00C800;">For</span> albaran->tipo=<span style="color: #000000;">2</span> .and. albaran->liqui=.F. MEMORY<br />&nbsp; &nbsp; &nbsp;dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />* &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Fecha'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />* &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">printer</span> oPrn <span style="color: #0000ff;">FROM</span> USER<br />&nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;oPrn:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span> BOLD <br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-8</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;REPORT oReport ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> &nbsp; ctitle, &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">""</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">""</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> &nbsp; &nbsp;oFont1,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFont2 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADER <span style="color: #ff0000;">"Página: "</span>+str<span style="color: #000000;">&#40;</span>oReport:<span style="color: #000000;">nPage</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PREVIEW<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Num."</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Albaran <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">7</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fecha"</span> &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Fecha &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">8</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Codigo"</span> &nbsp; &nbsp;<span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Codpro &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nombre"</span> &nbsp; &nbsp;<span style="color: #00C800;">DATA</span> oemtoansi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Pro<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"C/R"</span> &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->CR <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"X"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Conductor"</span> <span style="color: #00C800;">DATA</span> oemtoansi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->nconductor<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"B.Imponible"</span> &nbsp; <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Baseimpo;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 9,999.99"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">8</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Cargo"</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->otrosn <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"XXXXXXXXXXXXXXX"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Importe"</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->otros;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 99.99"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Seguro"</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Seguro;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 99.99"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Iva"</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Iva;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 999.99"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Total"</span> &nbsp; <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Baseimpo+<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Otros+<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Seguro+<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>->Iva<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 9,999.99"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">8</span><br />&nbsp; &nbsp; &nbsp;END REPORT<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> oReport:<span style="color: #000000;">lCreated</span><br />&nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bDataFont</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />* &nbsp; &nbsp; &nbsp; &nbsp;oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">lPrvModal</span>:=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> REPORT oReport <span style="color: #B900B9;">//for (aAlias[24])->tipo=2 .and. (aAlias[24])->liqui=.F.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oFont2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> a &nbsp;= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">20</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordname<span style="color: #000000;">&#40;</span>a<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span> a<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span>nindex<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3uzydtqd]
Cerrar un indice Temporal (Solucionado)
[quote="JoseLuis":3ox2gkvp] [code=fw:3ox2gkvp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span>nindex<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3ox2gkvp] [/quote:3ox2gkvp] y si le pones (aAlias[24])->(dbsetorder(nindex))
Cerrar un indice Temporal (Solucionado)
Vale, ya está solucionado Efectivamente era algo que no entiendo, y es que si llamo al Report desde una funcion intermedia [code=fw:3ma9q68y]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> contadopendiente<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#41;</span><br />********************************<br /><span style="color: #00C800;">local</span> nindex:=<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg<br /><span style="color: #00C800;">local</span> oRadio,oGroup,nRadio1<br /><span style="color: #00C800;">local</span> nOpcion,oboton,oboton1,osay,i<br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">23</span>, <span style="color: #000000;">60</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style="color: #000000;">cTitle</span>:=<span style="color: #ff0000;">"Listado de Contados Pendientes de Cobro "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">RADIO</span> oRadio <span style="color: #0000ff;">VAR</span> nRadio1 <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"Fecha"</span>, <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Conductor"</span> _3D <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">60</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">BUTTON</span> &nbsp;<span style="color: #ff0000;">"Aceptar"</span> &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>i_contado<span style="color: #000000;">&#40;</span>aAlias,nRadio1<span style="color: #000000;">&#41;</span>,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 />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">60</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Cancelar"</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span>nindex<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3ma9q68y] Ya me responde, porque al final de ésta función pongo uq me cambie el orden del indice, pero si lo pongo al final de Repor, no hace caso.
Cerrar un indice Temporal (Solucionado)
[quote="JoseLuis":16xgi6x2]Vale, ya está solucionado Efectivamente era algo que no entiendo, y es que si llamo al Report desde una funcion intermedia [code=fw:16xgi6x2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> contadopendiente<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#41;</span><br />********************************<br /><span style="color: #00C800;">local</span> nindex:=<span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg<br /><span style="color: #00C800;">local</span> oRadio,oGroup,nRadio1<br /><span style="color: #00C800;">local</span> nOpcion,oboton,oboton1,osay,i<br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">23</span>, <span style="color: #000000;">60</span> <br />        oDlg:<span style="color: #000000;">cTitle</span>:=<span style="color: #ff0000;">"Listado de Contados Pendientes de Cobro "</span><br />                @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">RADIO</span> oRadio <span style="color: #0000ff;">VAR</span> nRadio1 <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"Fecha"</span>, <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Conductor"</span> _3D <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">UPDATE</span><br />        @ <span style="color: #000000;">60</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">BUTTON</span>  <span style="color: #ff0000;">"Aceptar"</span>   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>i_contado<span style="color: #000000;">&#40;</span>aAlias,nRadio1<span style="color: #000000;">&#41;</span>,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 />        @ <span style="color: #000000;">60</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Cancelar"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span>nindex<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:16xgi6x2] Ya me responde, porque al final de ésta función pongo uq me cambie el orden del indice, pero si lo pongo al final de Repor, no hace caso.[/quote:16xgi6x2] El dialogo que estas usando NO es modal, con lo cual la ejecucion del programa 1º muestra dialogo y sin parar y dejando a la espera el dialogo 2º sale de la funcion pasando por [code=fw:16xgi6x2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span>nindex<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:16xgi6x2] La solucion es usar [code=fw:16xgi6x2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Ordsetfocus<span style="color: #000000;">&#40;</span>nindex<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:16xgi6x2] al cerrar el dialogo, bien por los botones, bien por la X del propio dialogo O BIEN hacer el dialogo modal
Cerrar una Aplicacion despues de un tiempo
Como se puede hacer para Cerrar una Aplicacion despues de un tiempo de uso muchas gracias David
Cerrar una Aplicacion despues de un tiempo
Que tal un timer ... Saludos
Cerrar una Aplicacion despues de un tiempo
Aquí un ejemplo [code=fw:2av4ycxq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;fTimer<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"probando"</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">function</span> fTimer<span style="color: #000000;">&#40;</span> cMsg, nInterval <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oProg, oTmr<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> cMsg<br /><br />&nbsp; &nbsp;@<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span> <span style="color: #0000ff;">PROGRESS</span> oProg POSITION <span style="color: #000000;">0</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">10</span>; oDlg:<span style="color: #000000;">lHelpIcon</span> = .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oProg:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">845</span> <span style="color: #000000;">&#41;</span>, oTmr := <span style="color: #0000ff;">Timer</span><span style="color: #000000;">&#40;</span> oDlg, oProg, nInterval <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oTmr:<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: #00C800;">Static</span> <span style="color: #00C800;">function</span> <span style="color: #0000ff;">Timer</span><span style="color: #000000;">&#40;</span> oDlg, oProg, nInterval <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTmr<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTmr <span style="color: #0000ff;">INTERVAL</span> nInterval ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oProg:<span style="color: #000000;">nPosition</span> += <span style="color: #000000;">5</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oProg:<span style="color: #000000;">nPosition</span> > <span style="color: #000000;">1000</span>, 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> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTmr<br /><br /><span style="color: #00C800;">Return</span> oTmr<br />&nbsp;</div>[/code:2av4ycxq] Saludos, Adhemar
Cerrar una Aplicacion despues de un tiempo
MUCHAS GRACIAS LO VEO Y AVISO COMO ME FUE... GRACIAS DAVID
Cerrar una Aplicacion despues de un tiempo
Amigos.... no pude.... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> David
Cerrar una Aplicacion despues de un tiempo
[quote="acuellar":sdgyeyti]Aquí un ejemplo [code=fw:sdgyeyti]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   fTimer<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"probando"</span>, <span style="color: #000000;">5</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: #00C800;">function</span> fTimer<span style="color: #000000;">&#40;</span> cMsg, nInterval <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oProg, oTmr<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> cMsg<br /><br />   @<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span> <span style="color: #0000ff;">PROGRESS</span> oProg POSITION <span style="color: #000000;">0</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">10</span>; oDlg:<span style="color: #000000;">lHelpIcon</span> = .F.<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oProg:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">845</span> <span style="color: #000000;">&#41;</span>, oTmr := <span style="color: #0000ff;">Timer</span><span style="color: #000000;">&#40;</span> oDlg, oProg, nInterval <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   oTmr:<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: #00C800;">Static</span> <span style="color: #00C800;">function</span> <span style="color: #0000ff;">Timer</span><span style="color: #000000;">&#40;</span> oDlg, oProg, nInterval <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oTmr<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTmr <span style="color: #0000ff;">INTERVAL</span> nInterval ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oProg:<span style="color: #000000;">nPosition</span> += <span style="color: #000000;">5</span>,;<br />               <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oProg:<span style="color: #000000;">nPosition</span> > <span style="color: #000000;">1000</span>, 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> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTmr<br /><br /><span style="color: #00C800;">Return</span> oTmr<br /> </div>[/code:sdgyeyti] Saludos, Adhemar[/quote:sdgyeyti] Pruébalo en una WINDOW; a mi en una MDICHILD me funciona perfectamente.
Cerrar una aplicacion externa
Hola a todos. Estoy usando esto WinExec("OSK.EXE") para ejecutar el teclado en pantalla, pero no encuentro como cerrar esta aplicacion cuando deseo que desaparezca. Muchas gracias.
Cerrar una aplicacion externa
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=119458#p119458">viewtopic.php?p=119458#p119458</a><!-- l --> Supongo que será: SendMessage( FindWindow( 0, "On-Screen Keyboard" ), WM_CLOSE ) ó en el idioma que te aparezca el titulo de la ventana
Cerrar una aplicacion externa
Buenas noches, Yo ni siquiera puedo abrir el teclado en pantalla usando W7. Probé WinExec("OSK.EXE") y también con ShellExecute pero sale el mensaje de error: [b:1g5xwk8x]"[color=#0000BF:1g5xwk8x]No se pudo iniciar el teclado en pantalla"[/color:1g5xwk8x][/b:1g5xwk8x] Destaco que desde DOS si funciona correctamente. ¿Que podrá ser? Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Cerrar una aplicacion externa
Rolando, ¿Qué versión de Windows, FWH y Harbour usas?. A mi me funciona perfecto.
Cerrar una aplicacion externa
Hola, Uso 10.4 de 32 bits y el W7 es de 64 bits. Genero el exe de 32 bits en esta pc con W7 64 bits y, salvo esto del asunto, funciona todo sin problemas en esta PC 64 bits y en pc's con XP 32 bits. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Cerrar una aplicacion externa bis
Hola. Antonio, tu respuesta funciono correctamente en XP, pero en seven no, abre el teclado en pantalla pero no lo cierra y veo que el nombre de la aplicacion es el mismo: Teclado en pantalla. Gracias Jorge Jaurena
Cerrar una aplicacion externa bis
Jorge, [url:1auc3hvr]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=24281#p132864[/url:1auc3hvr] <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> It's work fine in W7 for me.
Cerrar una aplicacion externa bis
Hola Lailton, agradezco tu respuesta pero no me quiere cerrar el teclado en Win 7. Jorge Jaurena
Cerrar una aplicacion externa bis
Jorge, Esta tentando desta forma ?, para mi en w7 Ultimate (32bits) esta cerrando la ventana normal. [code=fw:qba1puuw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------//</span><br />  <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------//</span><br />   <span style="color: #00D7D7;">#define</span> WM_CLOSE                        0x0010<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 />   CerrarVentana<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Teclado virtual"</span> <span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------//</span><br />  <span style="color: #00C800;">Function</span> CerrarVentana<span style="color: #000000;">&#40;</span>cTitle<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> hWnd<br />   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>hWnd:=FindWindow<span style="color: #000000;">&#40;</span>,cTitle<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>!=<span style="color: #000000;">0</span><br />      PostMessage<span style="color: #000000;">&#40;</span>hWnd,WM_CLOSE<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">EndIf</span><br />  <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------//</span></div>[/code:qba1puuw]
Cerrar una aplicacion externa bis
Jorge, Si lo anterior no funciona, prueba: [url:14tkn362]http&#58;//www&#46;mediafire&#46;com/?hgalo1w62t6y1x1[/url:14tkn362] <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Cerrar ventana Web
En una aplicación, tengo un diálogo donde se incrusta, mediante activeX, una pagina web. El diálogo y consecuentemente la página web, solo puede cerrarse pulsando el icono "X", en la parte superior derecha de la ventana. En dicha página tengo una serie de rutinas y entre ellas, la de grabar una serie de eventos. Por ello necesitaria que al finalizar una de dichas rutinas, la ventana se cerrará automaticamente, sin tener que pulsar la "X". He intentado con varias rutinas en javascript, pero aunque me sale la ventana del Explorer para que le confirme el cierre de la ventana, no la cierra. ¿Habría alguna manera que pulsando otro botón en la página, se pudiera cerrar la ventana?.
Cerrar ventana Web
Manuel, Tal vez podrias asociar un evento, como el de pulsar un determinado boton o un enlace, y desde ese evento llamar a oWnd:End()
Cerrar ventana Web
[quote="Antonio Linares":20rpol2y]Manuel, Tal vez podrias asociar un evento, como el de pulsar un determinado boton o un enlace, y desde ese evento llamar a oWnd:End()[/quote:20rpol2y] Antonio, muchas gracias por contestarme. El problema lo tengo que una vez abierta la página web con el activeX, dentro de esa página, no se reconoce ni el objeto oActiveX, y consecuentemente, ninguna de sus propiedades. En un ejemplo, en el módulo donde programo el dialogo, he puesto: oActiveX&#058;Do( "Navigate2",(CurDrive() + ":\"+CurDir()+"\tem.htm") ) oActiveX&#058;SetProp( "cSalir", .t. ) pero despues, en la página, no reconoce el objeto oActiveX Lo he intentado de las siguientes formas: var x = oAciveX.cSalir var x = document.getElementById(oActiveX.cSalir).value ; var x = document.cSalir ; var x = window.cSalir ; var x = oAciveX.cSalir var x = oActiveX&#058;GetProp( "cSalir" ) ) ¿Podrias ayudarme de como desde la página, bien en HTML o en JavaScript, podria conocerse el valor de la propiedad cSalir? Muchas gracias por tu ayuda
Cerrar ventana Web
Manuel, Te refieres a acceder al objeto oActiveX de FWH desde Javascript o VBscript ? No lo hemos probado nunca, habria que investigar la forma de hacerlo. Yo me refería al uso de oActiveX&#058;bOnEvent. Por favor revisa FWH\samples\webexp.prg y verás como lo usamos para reaccionar a los eventos que se generan en la página web.
Cerrar ventana Web
Muchas gracias Antonio, Voy a revisarlo.
Cerrar ventana Web
Antonio, ¡ Triunfo total ! En la página web, a través de JavaScript, modifico el título de la página y este evento es captado por la función EventInfo que ejecuta el oDlg:End(). De esta manera, se cierra la ventana y además, se evita el molesto aviso de Windows "Una aplicación está intentando cerrar esta ventana". Muchas gracias de nuevo.
Cerrar ventana Web
Manuel, Muy bien! Me alegro de que lo hayas conseguido <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Podrias mostrar parte del código para que otros usuarios veamos como lo has hecho ? gracias
Cerrar ventana Web
[quote="Antonio Linares":30c0wp6j]Manuel, Muy bien! Me alegro de que lo hayas conseguido <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Podrias mostrar parte del código para que otros usuarios veamos como lo has hecho ? gracias[/quote:30c0wp6j] 1) En el código de la página web (HTML), al pulsar el botón GRABAR, se dispara una función Javascript que realiza una serie de tareas y al finalizar las mismas, colocamos la siguiente línea: window.document.title = "cerrar" ; 2) En la aplicación FiveWin, cuando abrimos la página con activeX, añadimos lo siguiente: oActiveX&#058;Do( "Navigate2",(CurDrive() + ":\"+CurDir()+"\temp.htm") ) oActiveX&#058;bOnEvent = { | event, aParams, pParams | EventInfo( event, aParams, pParams, oActiveX, oDlg ) } ....... ....... 3) La función EventInfo (ejemplo en samples\webexp.prg), la dejamos con el siguiente código: function EventInfo( event, aParams, pParams, oActiveX, oDlg ) if event == "TitleChange" if aParams[ 1 ] = "cerrar" oDlg:End() endif endif return nil -------------------------------------------------------------
Cerrar ventana Web
Manuel, Una solución simple y brillante <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> gracias,
Cerrar ventana de ayuda
Con la funcion HelpTopic("Clave del tema") abro la ventana de ayuda posicionado en el tema que deseo, ahora bien, como cierro esa ventana desde el sistema que la llamo?
Cerrar ventana de ayuda
Rodolfo Buenas noches Es muy Fácil lo que necesitas, funciona perfectamente En un botón, bien sea el de salir o el que tu elijas según el diseño que estés manejando Por Ejemplo:............... REDEFINE BUTTON ID 4003 OF oDlg1 ACTION (oDlg:End(),CerrarAyudas()) [code=fw:2zjdx6zq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> CerrarAyudas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd <br />   <span style="color: #00C800;">local</span> cTitles := <span style="color: #ff0000;">"Aquí colocas el titulo de la ventana de ayudas"</span> <br />  <br />    <span style="color: #00C800;">if</span>  !empty<span style="color: #000000;">&#40;</span>cTitles <span style="color: #000000;">&#41;</span><br />   <br />    oWnd := TWCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> cTitles <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />    Jugar<span style="color: #000000;">&#40;</span>oWnd<span style="color: #000000;">&#41;</span> <br />   <br />   <span style="color: #00C800;">endIF</span><br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />*-----------------------------------------------------------<span style="color: #B900B9;">//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Jugar<span style="color: #000000;">&#40;</span>oWnd <span style="color: #000000;">&#41;</span><br /><br />       cTitle := oWnd:<span style="color: #000000;">cTitle</span><br /><br />        <span style="color: #00C800;">if</span>   oWnd:<span style="color: #000000;">lCaptured</span><br /> <br />             oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <br />        <span style="color: #00C800;">endif</span><br /><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></div>[/code:2zjdx6zq] Anexando desde luego la clase TWcaptur.prg. Como uno mas de tus PRGs Si no la tienes por favor me lo haces saber. Un Abrazo Cordialmente Jairo Barbosa
Cerrar ventana de ayuda
Rodolfo no reportaste si pudiste hacer la implementacion Mire este link, [url:1hlvarks]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=15842&p=82158&hilit=twcaptur#p82158[/url:1hlvarks] también tengo un pequeño ejemplo funcionando por si te interesa Un Abrazo Jairo Barbosa
Cerrar ventana de ayuda
Mi estimado Jairo, No habia probado tu sugerencia debido a que me ocupe en otros temas, pero finalmente lo probe y funciono de maravilla, ya vi incluso que una vez capturada la ventana no solo la puedo cerrar sino tambien manipularla para otros fines. Mil gracias por tu ayuda.
Cerrar ventana de ayuda
Sr Jairo, poderia fornecer o exemplo mencionado? <!-- e --><a href="mailto:ubiratan@sgsistemas.com.br">ubiratan@sgsistemas.com.br</a><!-- e --> muito obrigado
Cerrar ventana de ayuda
Aqui te va como yo lo uso: [code=fw:39o2n281]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//=============================================================================</span><br /><span style="color: #B900B9;">//Cierra ventana exterior</span><br /><span style="color: #00C800;">FUNCTION</span> PN_CieVenExt<span style="color: #000000;">&#40;</span>Titulo<span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">LOCAL</span> oWndAC<br /> oWndAC:=TWCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span>Titulo<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Toma objeto de la ventana a cerrar segun su titulo</span><br /> <span style="color: #00C800;">IF</span> oWndAC:<span style="color: #000000;">lCaptured</span> ; oWndAC:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; <span style="color: #00C800;">ENDIF</span> <span style="color: #B900B9;">//Si esta abierta, la cierra</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 /> </div>[/code:39o2n281] TWCapture.prg [code=fw:39o2n281]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Objects.ch"</span><br /><span style="color: #B900B9;">//============================================================================//</span><br /><span style="color: #B900B9;">//TWCapture</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//  AUTOR.....: Manuel Exp½sito Su rez    Soft 4U '2001                       //</span><br /><span style="color: #B900B9;">//  e-Mail....: <!-- e --><a href="mailto:maex14@dipusevilla.es">maex14@dipusevilla.es</a><!-- e -->                                         //</span><br /><span style="color: #B900B9;">//  CLASE.....: TWCapture                                                     //</span><br /><span style="color: #B900B9;">//  FECHA MOD.: 18/08/2001                                                    //</span><br /><span style="color: #B900B9;">//  VERSION...: 1.00                                                          //</span><br /><span style="color: #B900B9;">//  PROPOSITO.: Captura una ventana abierta por nuestro programa o por otra   //</span><br /><span style="color: #B900B9;">//              aplicacion para poder enviarle mensajes como si fuera una     //</span><br /><span style="color: #B900B9;">//              ventana mas de nuestro programa.                              //</span><br /><span style="color: #B900B9;">//  Uso.......: Cerrar ventana de ayuda                                       //</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//  DATAS.....: * lCapture tiene un valor logico, .f. si la ventana no se     //</span><br /><span style="color: #B900B9;">//              pudo capturar y .t. si si se hizo                             //</span><br /><span style="color: #B900B9;">//                                                                            //</span><br /><span style="color: #B900B9;">//  METODOS...: * New( cTitle ) es el constructor, cTitle es el titulo de una //</span><br /><span style="color: #B900B9;">//              ventana, si se le pasa intentara capturarla y pondra .t. en   //</span><br /><span style="color: #B900B9;">//              ::lCapture                                                    //</span><br /><span style="color: #B900B9;">//              * WCapture se encarga de buscar la ventana y asignarla a      //</span><br /><span style="color: #B900B9;">//              nuestro objeto TWindow. Si la captura podremos interactuar    //</span><br /><span style="color: #B900B9;">//              como si fuera una ventana mas de nuestra aplicacion           //</span><br /><span style="color: #B900B9;">//                                                                            //</span><br /><span style="color: #B900B9;">//  NOTAS.....: TWCapture esta heredada de TWindows por lo que tendremos a    //</span><br /><span style="color: #B900B9;">//              nuestra disposicion todas las datas y metodos de esta clase.  //</span><br /><span style="color: #B900B9;">//              No distingue entre mayusculas y minuscula pero si se tienen   //</span><br /><span style="color: #B900B9;">//              en cuenta los espacios                                        //</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">CLASS</span> TWCapture <span style="color: #0000ff;">FROM</span> TWindow<br /> <span style="color: #00C800;">DATA</span> lCaptured  AS LOGICAL<br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /> <span style="color: #00C800;">METHOD</span> WCapture<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWCapture<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"C"</span>, ::<span style="color: #000000;">WCapture</span><span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">lCaptured</span> := .f. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> WCapture<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TWCapture<br /> <span style="color: #00C800;">local</span> hWnd := FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, cTitle <span style="color: #000000;">&#41;</span><br /> ::<span style="color: #000000;">lCaptured</span> := <span style="color: #000000;">&#40;</span> hWnd > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /> ::<span style="color: #000000;">hWnd</span> := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lCaptured</span>, hWnd, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">lCaptured</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:39o2n281] Salu2
Cerrar ventana de ayuda
More easy: [code=fw:30bmuww2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>hWnd:=FindWindow<span style="color: #000000;">&#40;</span>,<span style="color: #ff0000;">"cTitleOfWnd"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>!=<span style="color: #000000;">0</span>,CloseWindow<span style="color: #000000;">&#40;</span>hWnd<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span></div>[/code:30bmuww2] Or: [code=fw:30bmuww2]<div class="fw" id="{CB}" style="font-family: monospace;">CerrarVentana<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cTitleOfWnd"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Function</span> CerrarVentana<span style="color: #000000;">&#40;</span>cTitle<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>hWnd:=FindWindow<span style="color: #000000;">&#40;</span>,cTitle<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>!=<span style="color: #000000;">0</span>,CloseWindow<span style="color: #000000;">&#40;</span>hWnd<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span></div>[/code:30bmuww2] <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Cerrar ventana de ayuda
Lailton, Excelente!!! Muchas gracias.
Cerrar ventana de ayuda
Hola Lailton, Fijate que despues me di cuenta que tu sugerencia no cierra realmente la ventana de ayuda, solo la minimiza, mientras que TWCapture si la cierra.
Cerrar ventana de ayuda
Rodolfo Sobretodo que puedes construir la aplicación de tal manera que cierre las ayudas en el momento que tu consideres, Bien sea al abrir la siguiente ventana de ayuda que cierre la anterior al finalizar la aplicación cierra todas las ventanas de ayuda o aplicaciones que tenga abiertas. Un Abrazo Rodolfo y Laiton
Cerrar ventana de ayuda
En efecto Jairo, esa era la idea, aunque habia notado que al cerrar la aplicacion automaticamente cierra las ventanas de ayuda, por eso pense que sin necesidad de agregar la clase TWCapture existia alguna instruccion ya preestablecida para hacerlo pero no la encontre, asi que tu sugerencia es la que estoy usando. Gracias de nuevo y Salu2
Cerrar ventana de ayuda
Hola Rodolfo y Jairo, probar asi: [code=fw:3hglcp7l]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#define</span> WM_CLOSE                        0x0010<br /><span style="color: #00C800;">Function</span> CerrarVentana<span style="color: #000000;">&#40;</span>cTitle<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> hWnd<br /><span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>hWnd:=FindWindow<span style="color: #000000;">&#40;</span>,cTitle<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>!=<span style="color: #000000;">0</span><br />   PostMessage<span style="color: #000000;">&#40;</span>hWnd,WM_CLOSE<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">EndIf</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span></div>[/code:3hglcp7l] <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> [quote="RodolfoRBG":3hglcp7l]Hola Lailton, Fijate que despues me di cuenta que tu sugerencia no cierra realmente la ventana de ayuda, solo la minimiza, mientras que TWCapture si la cierra.[/quote:3hglcp7l]
Certificado de código
Hola a todos, Alguien me puede ayudar con el el tema de certificado de código para los instaladores, quiero que los instaladores que preparo con Innosetup puedan ir firmados con certificado de código y evitar las alertas de windows al instalar o descargar estos instaladores. También conocer como se firman estos instaladores con alguna herramienta especial ? Si alguien tiene experiencia con proveedores de estos, cual es mejor precio, fácil instalación, etc. Les agradezco su ayuda.
Certificado de código
+1
Certificado de código
[url:1y0iwunq]https&#58;//stackoverflow&#46;com/questions/19160779/innosetup-code-signing-certificate[/url:1y0iwunq]
Chage Date/Time in a File
Is there a function which permits to retrieve/exchange Date and Time of last modif. in any file. Somethig similar to the FWH SetFDate()/GetFTime() functions? Thanks Rafael
Chage Date/Time in a File
Rafael, You can use Directory() to retrieve the date and time. Here you have a working sample: [code:mwjp5yps]#include "FWCE&#46;ch" function Main&#40;&#41; local oWnd DEFINE WINDOW oWnd TITLE "DateTime" @ 9, 2 BUTTON "Date-Time" ; SIZE 210, 30 ACTION ShowDateTime&#40;&#41; ACTIVATE WINDOW oWnd return nil function ShowDateTime&#40;&#41; local aInfo &#58;= Directory&#40; CurDir&#40;&#41; + "\datetime&#46;exe" &#41; if Len&#40; aInfo &#41; > 0 MsgInfo&#40; DToC&#40; aInfo&#91; 1 &#93;&#91; 3 &#93; &#41; &#41; MsgInfo&#40; aInfo&#91; 1 &#93;&#91; 4 &#93; &#41; endif return nil [/code:mwjp5yps]
Chage Date/Time in a File
To change the date and time we need to use Windows API SetFileTime(). We are going to build a sample of its use.
Chage Date/Time in a File
Antonio. Thanks. I'll apreciate that. I need a certain control over the dates and times of the DBFs so that I can control their syncronization through ActiveSync Regards Rafael
Chage GET alignment
Hello, somebody know how can I change the get alignment (rigth, left, center) in run time, the get is defined from resource some idea regards Marcelo
Chage GET alignment
Marcelo, You may try this: nStyle = GetWindowLong( oGet:hWnd, GWL_STYLE ) // Changes nStyle from ES_LEFT to ES_RIGHT nStyle = nOr( nXor( nStyle, ES_LEFT ), ES_RIGHT ) SetWindowLong( oGet:hWnd, GWL_STYLE, nStyle )
Chage GET alignment
Hello Antonio, thanks for your reply, I tryed it but not work, the get disappear, another suggestion ? thanks and regards Marcelo
Chage GET alignment
[quote="Marcelo Via Giglio":ies6mep6]Hello, somebody know how can I change the get alignment (rigth, left, center) in run time, the get is defined from resource some idea regards Marcelo[/quote:ies6mep6] You can't, as far as I know. Try to define three GETs, one for each style, and hide all of them but the one with the requested style. EMG
Chage GET alignment
Enrico, Yes, thats a good idea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Chage GET alignment
Enrico. yes these was an idea, but I wanted to know another way, ok, if you konw other way, please tell me, and if I find other solution I will post here regards Marcelo
Chage GET alignment
There is no other way, I'm afraid. EMG
Change state of Window on line
If I have a Main Window Not Mdi Can I change the state on Mdi on line and viceversa ? thanks
Change state of Window on line
No, sorry You have to destroy it and create a MDI one
Change state of Window on line
I'm sorry then I cannot make it you Know how insert the activex to view a webpage into window not MDI ?
Change <Gradient>to<GradientFill> ? (solved)
HelloWith Stefan's solution (saving the gradient as BMP ), i could solve the problem :[code:3fa1gljw] //------------- 1 GRADIENT HOR / VERT ----------- FUNCTION DRAW_GRAD&#40; hDC,oBitmap,nDirection,nVColor, nBColor, nMove &#41; LOCAL nGRADIENT, oDlg_temp aGrad &#58;= &#123; &#123; nMove, nVColor, nBColor &#125;, ; &#123; nMove, nBColor, nVColor &#125; &#125; aRect &#58;= GETCLIENTRECT&#40; oBitmap&#58;hWnd &#41; IF nDirection = 1 DEFINE DIALOG oDlg_temp FROM 0,0 TO aRect &#91;3&#93;, aRect&#91;4&#93; PIXEL STYLE nOr&#40;WS_POPUP,4&#41; ACTIVATE DIALOG oDlg_temp ; ON PAINT &#40; GradientFill&#40; oDlg_temp&#58;hDC, 0, 0, 130, 180, aGrad, &#46;T&#46; &#41;,; oDlg_temp&#58;SaveToBmp&#40;"Temp&#46;bmp"&#41;, oDlg_temp&#58;end&#40;&#41;&#41; ENDIF IF nDirection = 2 DEFINE DIALOG oDlg_temp FROM 0,0 TO aRect &#91;3&#93;, aRect&#91;4&#93; PIXEL STYLE nOr&#40;WS_POPUP,4&#41; ACTIVATE DIALOG oDlg_temp ; ON PAINT &#40; GradientFill&#40; oDlg_temp&#58;hDC, 0, 0, 130, 180, aGrad, &#46;F&#46; &#41;,; oDlg_temp&#58;SaveToBmp&#40;"Temp&#46;bmp"&#41;, oDlg_temp&#58;end&#40;&#41;&#41; ENDIF DEFINE BRUSH oNewbrush FILE "Temp&#46;bmp" FillRect&#40; oBitmap&#58;hDC, aRect, oNewbrush&#58;hBrush &#41; RELEASE BRUSH oNewbrush FERASE&#40; "Temp&#46;bmp" &#41; RETURN NIL [/code:3fa1gljw] To show project-settings, I use a Image-Browser to show all kinds of backgrounds. For gradient-preview I used before : [code:3fa1gljw] aRect &#58;= GETCLIENTRECT&#40; oBitmap&#58;hWnd &#41; IF nDirection = 1 // Horizont&#46; nGRADIENT &#58;= Gradient&#40; hDC, aRect, nVColor, nBColor, &#46;T&#46; &#41; ELSE // Vertical nGRADIENT &#58;= Gradient&#40; hDC, aRect, nVColor, nBColor, &#46;F&#46; &#41; ENDIF DEFINE BRUSH oNewbrush COLOR nGRADIENT FillRect&#40; oBitmap&#58;hDC, aRect, oNewbrush&#58;hBrush &#41; RELEASE BRUSH oNewbrush [/code:3fa1gljw] It works but doesn't support color-adjustment. [img:3fa1gljw]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradient12&#46;jpg[/img:3fa1gljw] Because the gradient-colors must shown centered and the 3. value < nMOVE > is not supported, I want to change from <Gradient> to <Gradientfill> using : [code:3fa1gljw] aGrad &#58;= &#123; &#123; nMove, nVColor, nBColor &#125;, ; &#123; nMove, nBColor, nVColor &#125; &#125; aRect &#58;= GETCLIENTRECT&#40; oBitmap&#58;hWnd &#41; IF nDirection = 1 // Horizont&#46; nGRADIENT &#58;= GradientFill&#40; hDC, aRect, aGrad, &#46;T&#46; &#41; ELSE // Vertical nGRADIENT &#58;= GradientFill&#40; hDC, aRect, aGrad, &#46;F&#46; &#41; ENDIF DEFINE BRUSH oNewbrush COLOR nGRADIENT FillRect&#40; oBitmap&#58;hDC, aRect, oNewbrush&#58;hBrush &#41; RELEASE BRUSH oNewbrush [/code:3fa1gljw]It doesn't work.The exact preview ( windows and dialog ) looks like :[img:3fa1gljw]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradient23&#46;jpg[/img:3fa1gljw]All other combinations are working :Clear color[img:3fa1gljw]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradtest1&#46;jpg[/img:3fa1gljw]Predefined Brush[img:3fa1gljw]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradtest2&#46;jpg[/img:3fa1gljw]Tiled[img:3fa1gljw]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradtest3&#46;jpg[/img:3fa1gljw]Image[img:3fa1gljw]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradtest4a&#46;jpg[/img:3fa1gljw]Is it possible to change from <Gradient> to <GradientFill> for BMP's,to use the < move-color > option ?( solved, if saving as BMP ) RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Change ACL file permission
Hello all, Is it possible to change the ACL permission of a file from within FHW (something like the "Permission: everyone-modify" parameter of InnoSetup) ? TIA Davide
Change ACL file permission
On FAT32 or NTFS?
Change ACL file permission
[quote="Rochinha":34ihy0n5]On FAT32 or NTFS?[/quote:34ihy0n5] AFAIK ACL is on NTFS only. Are there issues with FAT32 too ? Regards, Davide
Change ACL file permission
Friend The FAT32 security is poor. Maybe you can use ATTRIB.EXE. Read this for more information: [url=http&#58;//www&#46;windowsecurity&#46;com/articles/Securing_the_Windows_2000_Registry&#46;html?printversion:noux4079]Windows Security[/url:noux4079]
Change BOX content
Hi, On a main screen that shows few buttons, I need to create another button which, when clicking it, it will show another permanent BOX / SAY with a string. Each click changes the string in the box from "DISCHARGE" <--> "LOAD". I don't want to draw all the screen on each click, but the string in the box. The main screen is drawn using: @ 0, 0 BTNBMP NAME "setup" SIZE 40, 30 OF oWnd ACTION TalySetupMain() @ 0, 40 BTNBMP NAME "DschLoad" SIZE 40, 30 OF oWnd ACTION TalyHeadMain() @ 0, 80 BTNBMP NAME "shfting" SIZE 40, 30 OF oWnd ACTION TalyContShifting() @ 0, 120 BTNBMP NAME "empty" SIZE 40, 30 OF oWnd ACTION ( cFSE := "EMPTY", TalyContMain() ) Thanks, Moshe Yarden
Change BOX content
Hi, If I need just to show a string somewhere on the screen, how can I use the SAY command? I'm trying: @ 0, 0 BTNBMP NAME "setup" SIZE 40, 30 OF oWnd ACTION TalySetupMain() @ 0, 40 BTNBMP NAME "DschLoad" SIZE 40, 30 OF oWnd ACTION TalyHeadMain() @ 0, 80 BTNBMP NAME "shfting" SIZE 40, 30 OF oWnd ACTION TalyContShifting() and: @ 0, 40 SAY "I022345" OF oWnd //BOX //cManifest The buttons do work, but the SAY is not shown. What do I do wrong? Thanks, Moshe Yarden
Change BOX content
The following sample works fine here: [code:3e3gw3cr]#include "Fivewin&#46;ch" FUNCTION MAIN() LOCAL oWnd DEFINE WINDOW oWnd @ 1, 1 SAY "This is a test" ACTIVATE WINDOW oWnd RETURN NIL[/code:3e3gw3cr] EMG
Change BOX content
Thanks EMG, Now it is shown. I've used row and column like in BTNBMP. I'm trying to use the SAY and then redefine it (with each click, on another button) When trying: @ 4, 10 SAY oSay cManifest OF oWnd COLOR nRGB( 255, 255, 255 ), nRGB( 0, 255, 0 ) I receive: "syntax error at '@'" Using SAY without oSay works: @ 4, 10 SAY cManifest OF oWnd COLOR nRGB( 255, 255, 255 ), nRGB( 0, 255, 0 ) Bit then I don't know how ro use redine from an outer function. Thanks, Moshe Yarden
Change BOX content
[code:2mk6sm86]@ row, col SAY oSay PROMPT cManifest &#46;&#46;&#46;[/code:2mk6sm86] EMG
Change BtnBmp Image at runtime
Hi everyone. I need to create a BtnBmp, really an array of BtnBmps, but I need to change Its bitmap according to external conditions. I can't "preload" the image, since I don't know which is going to be in each position. I already change its prompt, associated Action, tooltip but the Image, I can't I tried hBmp = FILoadFromMemory( oDbPro:IMAGEN) aBoton[x,y]:hBitmap1:=hBmp aBoton[x,y]:Refresh() with no success at all Any Idea will be appreciated. Thanks in Advance From Chile Adolfo
Change BtnBmp Image at runtime
Adolfo, I will add a sample to Your post. Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Change BtnBmp Image at runtime
Thanks Uwe. I'll be waiting... <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> From Chile Adolfo
Change BtnBmp Image at runtime
Adolfo, the sample : [color=#0000FF:378txqmx][b:378txqmx]oBtn1:SetFile( ..\bitmaps\Info.Bmp", ..\bitmaps\Info.Bmp" ) // can be different oBtn2:SetFile( ..\bitmaps\Info.Bmp", ..\bitmaps\Info.Bmp" ) [/b:378txqmx][/color:378txqmx] [b:378txqmx]Original Bmp's changed to Info.bmp Button 1 changes button 2 and button 2 changes button 1 Bmp-change with radio and checkbox-selection[/b:378txqmx] [color=#008040:378txqmx][b:378txqmx]You can define two images UP and DOWN ![/b:378txqmx][/color:378txqmx] [img:378txqmx]http&#58;//www&#46;pflegeplus&#46;com/pictures/changebmp&#46;jpg[/img:378txqmx] [code=fw:378txqmx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oFont<br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oWnd, oDlg, oFld, oBtn1, oBtn2, oBtn3<br /><span style="color: #00C800;">Local</span> oFont, oBrush1, oBrush2, oBrush3<br /><span style="color: #00C800;">Local</span> c_path, c_path1<br /><span style="color: #00C800;">Local</span> oCbx1, nCbx1 := <span style="color: #000000;">3</span>, oRadio1, nRadio1 := <span style="color: #000000;">3</span><br /><br />c_path := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />c_path1 := c_path + <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\"</span> <br /><br />oFont  := TFont():New("</span>Arial<span style="color: #ff0000;">",,-14,.F.,.T. ,,,,.F. )<br /><br />DEFINE BRUSH oBrush1  GRADIENT { { 0.50, 16710607, 16759929 }, { 0.50, 16759929, 16710607 } }<br />DEFINE BRUSH oBrush2 GRADIENT { { 1, 16710607, 16759929 } }<br />DEFINE BRUSH oBrush3 GRADIENT { { 1, 16759929, 16710607 } }<br /><br />oFont  := TFont():New("</span>Arial<span style="color: #ff0000;">",,-14,.F.,.F. ,,,,.F. )<br /><br />DEFINE WINDOW oWnd TITLE "</span>Foldertest FWH-version => <span style="color: #ff0000;">"  + FWVERSION  BRUSH oBrush1<br /><br />DEFINE DIALOG oDlg FROM 50, 50 TO 450, 610 TITLE "</span>Test <span style="color: #0000ff;">folder</span><span style="color: #ff0000;">" PIXEL OF oWnd BRUSH oBrush2 <br /><br />@ 15, 10 FOLDEREX SIZE 260, 170 oFld PIXEL ROUND 5 UPDATE ;<br />PROMPT  "</span><span style="color: #0000ff;">Page</span> &<span style="color: #000000;">1</span><span style="color: #ff0000;">", "</span><span style="color: #0000ff;">Page</span> &<span style="color: #000000;">2</span><span style="color: #ff0000;">", "</span>&EXIT<span style="color: #ff0000;">" OF oDlg ;<br />ON PAINT TAB PaintTab( Self, nOption );<br />ON CHANGE ( nSavePage := oFld:nOption, ;<br />                            IF( nOption == 3, If( MsgYesNo( "</span><span style="color: #00C800;">Do</span> you want exit??<span style="color: #ff0000;">" ), ;<br />                                                                oWnd:End(), ( ::SetOption( nOldOption ), ::Refresh() ) ), ) ) ;                         <br />ON PAINT TEXT( If( nOption == ::nOption .and. nOption == 2, 8388608, 0 ) );<br />TOP OPTION 1 ALIGN 0, 0, 0 <br /><br /> oFld:lTransparent := .T.<br />oFld:nFolderHeight := 40<br />oFld:nSeparator := 2<br />oFld:bClrText := {| o, n | 128 }<br />oFld:oFont := oFont<br />oFld:nOption := 1<br /><br />oFld:aDialogs[ 1 ]:SetBrush( oBrush1 )<br />oFld:aDialogs[ 2 ]:SetBrush( oBrush2 )<br />oFld:aDialogs[ 3 ]:SetBrush( oBrush3 )<br /><br />@ 20, 50 BTNBMP oBtn1 OF oFld:adialogs[1] ;<br />SIZE 50, 30 PIXEL 2007 ;<br />NOBORDER ;<br />PROMPT "</span> <span style="color: #0000ff;">Change</span> &<span style="color: #000000;">2</span><span style="color: #ff0000;">" ;<br />FILENAME c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">" ;<br />ACTION oBtn2:SetFile( c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">" ) ;<br />FONT oFont ;<br />TOP<br />oBtn1:bClrGrad = { | lMouseOver | If( ! lMouseOver,;<br />    { { 0.50, 11513775, 16777215 }, ;<br />    { 0.50, 16777215, 11513775 } }, ;<br />    { { 0.50, 16761992, 16777215 }, ;<br />    { 0.50, 16777215, 16761992 } } ) }<br />oBtn1:lTransparent := .t.<br />oBtn1:cToolTip =  { "</span>Test<span style="color: #ff0000;">" + CRLF + "</span><span style="color: #0000ff;">Button</span> <span style="color: #000000;">1</span><span style="color: #ff0000;">","</span><span style="color: #0000ff;">Button</span><span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br />oBtn1:SetColor( 0, )<br /><br />@ 60, 50 BTNBMP oBtn2 OF oFld:adialogs[1] ;<br />SIZE 50, 30 PIXEL 2007 ;<br />NOBORDER ;<br />PROMPT "</span> <span style="color: #0000ff;">Change</span> &<span style="color: #000000;">1</span><span style="color: #ff0000;">" ;<br />FILENAME c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">" ;<br />ACTION oBtn1:SetFile( c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">" ) ;<br />FONT oFont ;<br />TOP<br />oBtn2:bClrGrad = { | lMouseOver | If( ! lMouseOver,;<br />    { { 0.50, 6711039, 16777215 }, ;<br />    { 0.50, 16777215, 6711039 } }, ;<br />    { { 0.50, 16761992, 16777215 }, ;<br />    { 0.50, 16777215, 16761992 } } ) }<br />oBtn2:lTransparent := .t.<br />oBtn2:cToolTip =  { "</span><span style="color: #0000ff;">Change</span> <span style="color: #0000ff;">Image</span><span style="color: #ff0000;">" + CRLF + "</span><span style="color: #0000ff;">Button</span> <span style="color: #000000;">1</span><span style="color: #ff0000;">","</span><span style="color: #0000ff;">CHANGE</span><span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br />oBtn2:SetColor( 0, )<br /><br />@ 100, 50 BTNBMP oBtn3 OF oFld:adialogs[1] ;<br />SIZE 50, 30 PIXEL 2007 ;<br />NOBORDER ;<br />PROMPT "</span> &Reset<span style="color: #ff0000;">" ;<br />FILENAME c_path1 + "</span>Recall.Bmp<span style="color: #ff0000;">" ;<br />ACTION ( nSelect1 := .F., nSelect2 := .F. , ;<br />              oBtn1:SetFile( c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">" ), ;<br />              oBtn2:SetFile( c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">" ), ;<br />              nRadio1 := 3, oRadio1:Refresh(), ;<br />          nCbx1 := 3, oCbx1:Refresh() ) ;         <br />FONT oFont ;<br />TOP<br />oBtn3:bClrGrad = { | lMouseOver | If( ! lMouseOver,;<br />    { { 0.50, 3067734, 16777215 }, ;<br />    { 0.50, 16777215, 3067734 } }, ;<br />    { { 0.50, 3145727, 16777215 }, ;<br />    { 0.50, 16777215, 3145727 } } ) }<br />oBtn3:lTransparent := .t.<br />oBtn3:cToolTip =  { "</span><span style="color: #0000ff;">Change</span> <span style="color: #0000ff;">Image</span><span style="color: #ff0000;">" + CRLF + "</span><span style="color: #0000ff;">Button</span> <span style="color: #000000;">1</span><span style="color: #ff0000;">","</span><span style="color: #0000ff;">CHANGE</span><span style="color: #ff0000;">", 1, CLR_BLACK, 14089979 }<br />oBtn3:SetColor( 0, )<br /><br />// ------------------------<br /><br />@ 20, 125 COMBOBOX oCbx1 VAR nCbx1  ITEMS { "</span><span style="color: #0000ff;">Change</span> <span style="color: #0000ff;">Button</span> <span style="color: #000000;">1</span><span style="color: #ff0000;">", "</span><span style="color: #0000ff;">Change</span> <span style="color: #0000ff;">Button</span> <span style="color: #000000;">2</span><span style="color: #ff0000;">", "</span>Reset<span style="color: #ff0000;">" } ;<br />SIZE 110, 100 OF oFld:adialogs[1]  PIXEL ;<br />ON CHANGE ( IIF( nCbx1 = 1, oBtn1:SetFile( c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">" ), NIL ), ;  <br />     IIF( nCbx1 = 2, oBtn2:SetFile( c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">" ), NIL ), ;<br />     IIF( nCbx1 = 3, ( oBtn1:SetFile( c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">" ), ;<br />          oBtn2:SetFile( c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">" ) ), NIL ) )              <br />                <br />oCbx1:oFont := oFont<br /><br />// -----<br /><br />@ 55, 125 RADIO oRadio1 VAR nRadio1 ITEMS "</span><span style="color: #0000ff;">Button</span> <span style="color: #000000;">1</span><span style="color: #ff0000;">", "</span><span style="color: #0000ff;">Button</span> <span style="color: #000000;">2</span><span style="color: #ff0000;">", "</span>Reset<span style="color: #ff0000;">" SIZE 40, 15 ;<br />OF oFld:adialogs[1] PIXEL ;<br />ON CHANGE { || ( IIF( nRadio1 = 1, oBtn1:SetFile( c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">" ), NIL ), ;  <br />    IIF( nRadio1 = 2, oBtn2:SetFile( c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Info.Bmp<span style="color: #ff0000;">" ),NIL), ;<br />    IIF( nRadio1 = 3, ( oBtn1:SetFile( c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Exit1.Bmp<span style="color: #ff0000;">" ), ;<br />         oBtn2:SetFile( c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">", c_path1 + "</span>Preview.Bmp<span style="color: #ff0000;">" ) ),NIL) ) } UPDATE <br /><br />AEval( oRadio1:aItems, { | oRad | oRad:lTransparent := .T., ;<br />     oRad:SetFont ( oFont ), oRad:nClrText := 0 } )<br /><br />ACTIVATE DIALOG oDlg NOWAIT CENTER <br /><br />ACTIVATE WINDOW oWnd MAXIMIZED <br /><br />RELEASE BRUSH oBrush1, oBrush2, oBrush3, oFont<br /><br />RETURN NIL<br /><br />// ------------------------<br /><br />FUNCTION PaintTab( o, nOption )<br /><br />IF nOption == o:nOver .OR. nOption == o:nOption<br />      o:SetAlphaLevel( nOption, 255 )<br />ELSE <br />      o:SetAlphaLevel( nOption, 50 )<br />ENDIF <br />   <br />RETURN o:SetFldColors( o, nOption )    <br /></span></div>[/code:378txqmx] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Change BtnBmp Image at runtime
Thanks. But there is a tiny problem... The Image is loaded from a BLOB field in an Mysql DB... so the use of oBtn2:SetFile() won't work, since theres no "file" to load. I do have the image handle in hBmp I tried ti load it directly with ::loadbitmaps() with no success Any idea will be appreciated From Chile Adolfo
Change BtnBmp Image at runtime
Done... Here's the code ............. If Len(Alltrim(oDbPro:IMAGEN)) > 0 aBoton[x,y]:hBitmap1 := FILoadFromMemory( oDbPro:IMAGEN, 10 ) aBoton[x,y]:hPalette1 := 0 Endif For some reason, if the first BMP is null, the others won't work, so asking if there is something inside oDbPro:IMAGEN solve the problem.
Change BtnBmp Image at runtime
Adolfo Check out this thread .. I asked the same question myself .. Rick Lipkin <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26855&p=148946#p148946">viewtopic.php?f=3&t=26855&p=148946#p148946</a><!-- l -->
Change Caption on Radio at Run Time?
Hi All When I use REDEFINE RADIO oObj VAR nType ID 131,133 the captions are stored in the resource file. Is it possible to change the two captions at runtime? TIA David
Change Caption on Radio at Run Time?
oRadio:aItems[ 2 ]:SetText( "Hello" ) oRadio:aItems[ 2 ]:Refresh() <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_tradio">http://wiki.fivetechsoft.com/doku.php?i ... ass_tradio</a><!-- m --> Regards,
Change Caption on Radio at Run Time?
[code=fw:ovjfygls]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Radio Buttons management sample - \samples\TESTRAD.PRG modified.</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oRadMenu, oBrush<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nOption := <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp;SET _3DLOOK <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Radios"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oRadMenu <span style="color: #0000ff;">VAR</span> nOption <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span>, <span style="color: #000000;">140</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> SWAP_CAPTION<span style="color: #000000;">&#40;</span> oRadMenu <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//ON CHANGE MsgBeep()</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oRadMenu:<span style="color: #000000;">GoNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> nOption == <span style="color: #000000;">3</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oRadMenu:<span style="color: #000000;">GoPrev</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oRadMenu:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET _3DLOOK OFF<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SWAP_CAPTION<span style="color: #000000;">&#40;</span> oRadMenu <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oRadMenu:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Chang"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRadMenu:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />procedure AppSys &nbsp;<span style="color: #B900B9;">// XBase++ requirement</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:ovjfygls]
Change Caption on Radio at Run Time?
Thanks for your help Karinha <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I implemented it this way: ACTIVATE DIALOG oDlg ON INIT (oObj[3]:aItems[1]:SetText("Rounds"), oObj[3]:aItems[1]:Refresh(), oDlg:Center(oMainWnd)) ; VALID (oFont:End(), SysRefresh(), .T.) David
Change Caption on TBtnBmp object
Hi; I'm trying to change the caption on a TbtnBmp, but so far -no luck. [code=fw:3is38svi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">LOCAL</span> oBtn<br /><span style="color: #00C800;">LOCAL</span> oSelf := <span style="color: #00C800;">SELF</span> <br />...<br />::<span style="color: #000000;">cText</span> := <span style="color: #ff0000;">"Some Initial Text"</span><br /><span style="color: #0000ff;">REDEFINE</span> BUTTONBMP ::<span style="color: #000000;">oBtm</span> <span style="color: #B900B9;">/*BITMAP "dotgreen"*/</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">501</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oDlg</span> TEXTLEFT <span style="color: #0000ff;">PROMPT</span> ::<span style="color: #000000;">cText</span> <span style="color: #0000ff;">UPDATE</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ::<span style="color: #000000;">oDlg</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oSelf:<span style="color: #000000;">oBtn</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />...<br /><br />::<span style="color: #000000;">cText</span> := <span style="color: #ff0000;">"Some Other Text"</span><br />oBtn:<span style="color: #000000;">cCaption</span> := ::<span style="color: #000000;">cText</span> <br />oBtn:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3is38svi] I must add that the TbtnBmp object is disabled, still I wish to change the caption at some point. I even tried oBtn:Paint(), but nothing happens. Can someone help? Reinaldo.
Change Caption on TBtnBmp object
Hola Reinaldo, I think your problem is with ButtonBMP not with BtnBmp, because ::cCaption work with BtnBmp, with ButtonBMP try sending message like SendMessage( buttonBmp:hwnd, WM_SETTEXT, 0, "New Caption" ) using #define WM_SETTEXT 0x000C saludos Marcelo
Change Caption on TBtnBmp object
Reinaldo, You can use: oBtn:SetText( "whatever" ) this works with most windows, dialogs and controls <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Change Caption on TBtnBmp object
Marcelo - It is always good to see you around. Hope you are doing well. I'm sure your solution would have worked but Antonio's just seems simpler. BTW - :SetText( ::cText ) worked as expected. Thank you very much Antonio. Reinaldo.
Change Caption on TBtnBmp object
Hello Reinaldo, yes of course, Antonio´s solution is the way, my proposal work too but we can take it for sample only <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> un abrazo Marcelo
Change Color of Say
I build my Windows at runtime, i.e. I don't use resources. I have a windows with a number of SAY objects, for example: [code=fw:51uyxvk1]<div class="fw" id="{CB}" style="font-family: monospace;">@ nTop, nLeft <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Prompt"</span> <span style="color: #0000ff;">SIZE</span> nClientWidth, nFontHeight <span style="color: #0000ff;">FONT</span> oFont BORDER <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_WHITE <span style="color: #0000ff;">UPDATE</span></div>[/code:51uyxvk1] I already use [code=fw:51uyxvk1]<div class="fw" id="{CB}" style="font-family: monospace;">oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Something Else"</span><span style="color: #000000;">&#41;</span></div>[/code:51uyxvk1]quite successfully. But I also need to change either the Text or Background Color of the SAY. [code=fw:51uyxvk1]<div class="fw" id="{CB}" style="font-family: monospace;">oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span>CLR_GREEN, CLR_BLUE<span style="color: #000000;">&#41;</span></div>[/code:51uyxvk1] does not exist. I have tried [code=fw:51uyxvk1]<div class="fw" id="{CB}" style="font-family: monospace;">SetTextColor<span style="color: #000000;">&#40;</span>oSay:<span style="color: #000000;">hWnd</span>, nRGB<span style="color: #000000;">&#40;</span>CLR_GREEN<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:51uyxvk1] but that does not seem to do anything. And [code=fw:51uyxvk1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSAY <span style="color: #0000ff;">COLOR</span> CLR_GREEN, CLR_BLUE</div>[/code:51uyxvk1] gives a method not defined error. Can somebody point me in the right direction. Regards Chris Millard
Change Color of Say
[quote="ChrisMillard":18e4q36p][code=fw:18e4q36p]<div class="fw" id="{CB}" style="font-family: monospace;">oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span>CLR_GREEN, CLR_BLUE<span style="color: #000000;">&#41;</span></div>[/code:18e4q36p][/quote:18e4q36p] It should work fine. EMG
Change Color of Say
Well how strange, I am sure I tried it first. Many thanks for making me go back and try it again, I have spent quite some time trying to figure how to do something that should have been simple, to now find it was simple all the time. lol <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Happy New Year Chris Millard
Change Color of xBrowse Column Headers and Footers
To All I am re-working a legacy FWH app and I am going with an all 'grey' color scheme. I would like to be able to change the color of the standard light blue for the column headers and footers of xBrowse to a light grey if that is possible. Many Thanks Rick Lipkin
Change Color of xBrowse Column Headers and Footers
Hi, Rick. Try this partial code. [code=fw:8cvg7pwf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> bClrGradBtn<br /><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 />SetDlgGradient<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />bClrGradBtn := <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lPressed,;   <span style="color: #B900B9;">//Plomo</span><br />                 <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">194</span>, <span style="color: #000000;">197</span>, <span style="color: #000000;">201</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//-----------------------</span><br /><span style="color: #00C800;">Function</span> xxx<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   @ .<span style="color: #000000;">5</span>, .<span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">544</span>,<span style="color: #000000;">254</span> <span style="color: #0000ff;">OF</span> oDlg ; <br />            <span style="color: #0000ff;">ALIAS</span> cAlias <span style="color: #0000ff;">AUTOCOLS</span> CELL LINES<br /><br />   oBrwStyle<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br /><br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   @ nHt<span style="color: #000000;">-15</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBt1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Nuevo"</span>    <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"NEW16X16"</span>    <span style="color: #0000ff;">LEFT</span> NOBORDER ;<br />                <span style="color: #0000ff;">ACTION</span> xAction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ nHt<span style="color: #000000;">-15</span>, <span style="color: #000000;">48</span> <span style="color: #0000ff;">BTNBMP</span> oBt2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Modific "</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"EDIT16X16"</span>   <span style="color: #0000ff;">LEFT</span> NOBORDER ;<br />                <span style="color: #0000ff;">ACTION</span> yAction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ nHt<span style="color: #000000;">-15</span>,<span style="color: #000000;">162</span> <span style="color: #0000ff;">BTNBMP</span> oBt5 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Salir  "</span>   <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SALIR16X16"</span>  <span style="color: #0000ff;">LEFT</span> NOBORDER ;<br />                <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />   BtnDegrad<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//Botones degradados (BTNBMP)</span><br /><br />  <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//-----------------------------</span><br /><span style="color: #00C800;">Function</span> oBrwStyle<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> aRowGrad     := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ; <br />                           <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">232</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">Local</span> aSelGrad      := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">237</span>, <span style="color: #000000;">178</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                           <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">218</span>, <span style="color: #000000;">103</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />WITH OBJECT  oBrw               <br />  :<span style="color: #000000;">nColDividerStyle</span> := <span style="color: #000000;">5</span><br />  :<span style="color: #000000;">nMarqueeStyle</span>    := <span style="color: #000000;">5</span> <span style="color: #B900B9;">//MARQSTYLE_HIGHLCELL</span><br />  :<span style="color: #000000;">nColorPen</span>        := Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">225</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">225</span> <span style="color: #000000;">&#41;</span><br />  :<span style="color: #000000;">nRecSelColor</span>     := nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span><br />  :<span style="color: #000000;">bClrSel</span>          := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />  :<span style="color: #000000;">bClrSelFocus</span>     := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, aSelGrad <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />  :<span style="color: #000000;">bClrRowFocus</span>     := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, aRowGrad <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />  :<span style="color: #000000;">bClrGrad</span>         := <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !lInvert,  <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />                         <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">232</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,; <br />                         <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>, <span style="color: #000000;">12961221</span>, <span style="color: #000000;">16777215</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>, <span style="color: #000000;">16777215</span>, <span style="color: #000000;">12961221</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />  :<span style="color: #000000;">bClrHeader</span>       := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />  :<span style="color: #000000;">bClrFooter</span>       := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, <span style="color: #000000;">16777215</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />  :<span style="color: #000000;">lAllowRowSizing</span>  := .f.<br />  :<span style="color: #000000;">lAllowColSwapping</span> := .f.<br />  :<span style="color: #000000;">lAllowColHiding</span>   := .f.          <br />  :<span style="color: #000000;">lKinetic</span>          := .f. <br />  :<span style="color: #000000;">lColDividerComplete</span> := .t.<br />  :<span style="color: #000000;">lFooter</span>   := .t.<br />  :<span style="color: #000000;">nHeaderHeight</span>     := <span style="color: #000000;">24</span><br />  :<span style="color: #000000;">nFooterHeight</span>     := :<span style="color: #000000;">nHeaderHeight</span><br />END<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------</span><br /><span style="color: #00C800;">Function</span> BtnDegrad<span style="color: #000000;">&#40;</span>oWn<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n<br /><span style="color: #00C800;">if</span> bClrGradBtn != <span style="color: #00C800;">NIL</span><br />   <span style="color: #00C800;">For</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>oWn:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">if</span> oWn:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>==<span style="color: #ff0000;">"TBTNBMP"</span><br />          oWn:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrGrad</span> = bClrGradBtn<br />       <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">Next</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:8cvg7pwf] Regards.
Change Color of xBrowse Column Headers and Footers
Rick, xBrowse Header and Footer with gradient light grey [color=#0000FF:3l7jdzq1]oBrw1:bClrGrad := { | lInvert | If( ! lInvert, ; { { 0.50, 14342874, 16777215 }, ; { 0.50, 16777215, 14342874 } }, ; { { 0.50, 14342874, 16777215 }, ; { 0.50, 16777215, 14342874 } } ) } [/color:3l7jdzq1] // default colour gradient spec some grey-values to replace 14342874 ( very light grey ) : 16777215 = white [color=#004040:3l7jdzq1]11250603 12632256 13684944 15066597[/color:3l7jdzq1] [img:3l7jdzq1]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Header1&#46;jpg[/img:3l7jdzq1]
Change Color of xBrowse Column Headers and Footers
Uwe Thank you .. I am playing with the colors .. without making all the values the same .. is there a way to just make the color a solid light grey without any gradient ? Rick Lipkin
Change Color of xBrowse Column Headers and Footers
Francisco Thank you for your suggestion .. going to try your solution : [code=fw:hbfbg230]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">bClrHeader</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />:<span style="color: #000000;">bClrFooter</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, <span style="color: #000000;">16777215</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />&nbsp;</div>[/code:hbfbg230] Rick Lipkin
Change Color of xBrowse Column Headers and Footers
Francisco Unfortunately the above interpretation of your solution did not work .. still have the light blue headers and footers <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Rick Lipkin
Change Color of xBrowse Column Headers and Footers
Rick, try with oBrw:l2007 := .F.
Change Color of xBrowse Column Headers and Footers
Cristobol and Uwe Both of these solutions worked .. [code=fw:1cw368zc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oLbx:<span style="color: #000000;">l2007</span> := .F.   <span style="color: #B900B9;">// light grey</span><br /> </div>[/code:1cw368zc] Uwe .. Your solution allows control over the color [code=fw:1cw368zc]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />oLbx:<span style="color: #000000;">bClrGrad</span> := <span style="color: #000000;">&#123;</span> | lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert, ;<br />                                         <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>, <span style="color: #000000;">15790320</span>, <span style="color: #000000;">15790320</span> <span style="color: #000000;">&#125;</span>, ;<br />                                         <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>,   <span style="color: #000000;">15790320</span>, <span style="color: #000000;">15790320</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, ;<br />                                         <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>, <span style="color: #000000;">15790320</span>, <span style="color: #000000;">15790320</span> <span style="color: #000000;">&#125;</span>, ;<br />                                         <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>,   <span style="color: #000000;">15790320</span>, <span style="color: #000000;">15790320</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:1cw368zc] Thank you ALL for your ideas, inspiration, and solutions ! Rick Lipkin
Change Color of xBrowse Column Headers and Footers
[quote="Rick Lipkin":1x6ox5ma]Francisco Thank you for your suggestion .. going to try your solution : [code=fw:1x6ox5ma]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">bClrHeader</span>       := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />:<span style="color: #000000;">bClrFooter</span>       := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, <span style="color: #000000;">16777215</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br /> </div>[/code:1x6ox5ma] Rick Lipkin[/quote:1x6ox5ma] Rick, code of Francisco with oBrw:l2007 := .F., have to work well
Change Color of xBrowse Column Headers and Footers
Rick, please try this way. (As Cristobal said) [quote:1zdbw0gc]is there a way to just make the color a solid light grey without any gradient ? [/quote:1zdbw0gc] [code=fw:1zdbw0gc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//------------------------</span><br /><span style="color: #00C800;">Function</span> FapBrwSetup<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nFONDO1 := RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">215</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">215</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nFONDO2 := RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">235</span>, <span style="color: #000000;">235</span>, <span style="color: #000000;">235</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nAZUL &nbsp; := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">l2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRecSelColor</span> &nbsp; &nbsp; := &nbsp;nFONDO1<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStyle</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := nAnd<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">nStyle</span>, nNot<span style="color: #000000;">&#40;</span> WS_BORDER <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;:= MARQSTYLE_HIGHLROW &nbsp; <span style="color: #B900B9;">//ilumina toda la linea</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrHeader</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nAZUL, nFONDO1, <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrFooter</span> &nbsp; &nbsp; &nbsp; := :<span style="color: #000000;">bClrHeader</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Colores texto de footers</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span>nAZUL, nFONDO1<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>nAZUL, nFONDO2<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrSel</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> nAZUL, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> &nbsp;<span style="color: #B900B9;">// para barra de linea selecc cuando el control no tiene el foco</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrSelFocus</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, nAZUL <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// para barra de linea selecc cuando el control tiene el foco</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp;END<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span></div>[/code:1zdbw0gc]