topic
stringlengths
1
63
text
stringlengths
1
577k
using regular expressions
Hi, Very interesting... Regards. C.
using regular expressions
Antonino, You are right. My mistake was based on the faulty mod_harbour modpro results: [url:11fcnd6y]https://www.modharbour.org/modharbour_samples/modpro/modpro.prg[/url:11fcnd6y] Curiously enough, that code fails as I said when running it from modpro. I wonder why it happens like that. When directly executed using mod_harbour it works fine, as expected. thank you for your great feedback
using regular expressions
modpro.prg bug detected and fixed <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> We should never do hb_urlDecode( hb_urlDecode( cString ) ) as "+" signs will vanish away !!!
using the method bskip wbrowse
Hello I have a product search filter option to choose which 1-Products in stock or 2-Products without stock or 3-Wide, tried using SetFilter () was slow network, I can not create indexes fixed or temporary, thought about using the method of bskip browse, but I can not make it work, could someone give me an example? Follow what I'm doing: oBrwConsul:bSkip := { | nRecs | SkipEstoq( nRadio, cAlias, nRecs ) } ... ... ... FUNCTION SkipEstoq( nRadio, cAlias, nRecords ) LOCAL nSkipped DEFAULT nRecords := 1 IF nRadio == 1 IF (cAlias)->PrEstq <= 0 ; IF( nRecords < 0, nRecords--, nRecords++ ); ENDIF ELSEIF nRadio == 2 IF (cAlias)->PrEstq > 0 ; IF( nRecords < 0, nRecords--, nRecords++ ) ; ENDIF ENDIF nSkipped := (cAlias)->( DbSkipper( nRecords ) ) RETURN nSkipped
using the method bskip wbrowse
Joao, Why can't you use indexes? An index is the only way to get speed. Without an index you have to read every record--you can't make it fast. James
using xbrowse bEditWhen
Hi all, having the following array aArray:={} aadd(aArray,{"Mark"," "}) aadd(aArray,{"Steve,"0"}) aadd(aArray,{"Robert",1"}) I want to permit the edit for the second column only if a numeric already value exist so in this case I can permit only to edit the Steve and Robert clause where a num value exit. I tried to use the following code but the bEditWhen doesn't run. oBrw425:aCols[2]:cEditPicture := "@E 999,999,999.00" oBrw425:aCols[2]:bClrEdit := oBrw425:bClrStd oBrw425:aCols[2]:nEditType := 1 oBrw425:aCols[2]:bEditWhen := {|o,x| valtype(o)="N"} oBrw425:lFastEdit:=.t. Probably my bEditWhen code is wrong. any ideas? Thanks in advance
using xbrowse bEditWhen
oBrw425:aCols[2]:bEditWhen := {|o,x| valtype(o)="N"} The first parameter (o) is a column object , valtype(o) should always be 'O' Frank
using xbrowse bEditWhen
Please try oBrw425:aCols[2]:bEditWhen := {|o,x| valtype(o:Value)="N"}
using xbrowse bEditWhen
That's fine. Thank you Rao
uso area di lavoro
c'è un modo per capire se un'area di lavoro che utilizza un determinato file DB è in uso o è stata chiusa?
uso area di lavoro
Used(), Alias(), Select().EMG
uso clase dtpicker
sabe alguien porque al usar la clase dtpicker, no se puede dejar como fecha vacia o en blanco el get Ctod(""). no pasa lo mismo con la opcion timepick, porque le indico al get que viene vacio y me deja inactivo el checkbox si alguien tiene un ejemplo que me puda orientar. yo baje el archivo sysdatetime32.rar que viene con un ejemplo y esta ok pero al compilar y generar el ejecutable nuevamente no me respeta la condicion de fecha vacia. utilizo fwh 2.8 xharbour build 0.99.61 intl (simplex), pelles [/code]
uso de 2007 en barras
Como puedo hacer para que me tome la apariencia de windows que usa cada usuario?? Gracias
uso de 2007 en barras
A que barras te refieres ?
uso de 2007 en barras
La barra de botones de la ventana principal [code=fw:2bq5nwq2]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar ; &nbsp;<span style="color: #B900B9;">// Se define Barra de Botones (Objeto: BUTTONBAR).</span><br />&nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">35</span> <span style="color: #000000;">2007</span> &nbsp;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Tama¤o en pixeles de los botones</span><br />&nbsp; 3D; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Vista en efecto 3¦ dimensi¢n</span><br />&nbsp; TOP; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Se despliega en la parte superior de la ventana.</span><br />&nbsp; <span style="color: #0000ff;">OF</span> oVentPrinc; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Se indica que pertenece a la ventana principal.</span><br />&nbsp; <span style="color: #0000ff;">CURSOR</span> oCursorMano</div>[/code:2bq5nwq2] Quisiera saber si puede tomar los colores que eligen los usuarios cuando configuran la pantalla del sistema operativo. Gracias Antonio
uso de 2007 en barras
Prueba asi: [code=fw:1xms85pt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar ; &nbsp;<span style="color: #B900B9;">// Se define Barra de Botones (Objeto: BUTTONBAR).</span><br />&nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">35</span> <span style="color: #000000;">2007</span> &nbsp;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Tama¤o en pixeles de los botones</span><br />&nbsp; <span style="color: #0000ff;">OF</span> oVentPrinc; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Se indica que pertenece a la ventana principal.</span><br />&nbsp; <span style="color: #0000ff;">CURSOR</span> oCursorMano<br />&nbsp;</div>[/code:1xms85pt] Pero que colores debería tomar ? Cuales ?
uso de 2007 en barras
Perdona Antonio planteé mal la cuestión ya que me había olvidado el porqué del problema. Si en el menu pongó la clausula 2007, se ensancha tanto cada item que en algunas resoluciones me hace dos renglones de menúes . Me queda algo así Archivo Administracion ...... Ayuda Si saco esa claúsula el menú queda Archivo Administracion ...Ayuda Pero me queda con el color original que seleccionó el usuario quedando un efecto feo. Se puede asignar un ancho para cada item de los menúes. Desde ya muchas gracias y disculpa el error al plantear la cuestión Luis
uso de ADS y DBFCDX ?
Saludotes. En el servidor de datos usamos el ADS, el asunto es que debebos compartir archivos DBF con un proveedor y con el ADS tiene problemas para abrir tales archivos. en mi programa principal tengo: REQUEST ADS EXTERNAL AdsKeyNo, AdsKeyCount, AdsGetRelKeyPos, AdsSetRelKeyPos // --- Activacion de RDD ADS function ActivaRDD() RDDREGISTER("ADS",1) RDDSETDEFAULT("ADS") ADSSETSERVERTYPE(2) ADSLOCKING(.T.) ADSRIGHTSCHECK(.F.) /* request DBFCDX #ifdef __HARBOUR__ request DBFFPT #endif rddSetDefault('DBFCDX') */ return NIL y cada vez que inicio una aplicacion llamo a la funcion ActivaRDD() para activar el ADS, mi problema: Como puedo desactivar en mi app el ADS y manegar archivos DBF sin contemplar que se usa ADS mientras creo mis archivos que va a usar este proveedor para que los pueda abrir con FoxPlus o cualquier otro programa que maneje tablas DBF. Sugerencias porfa?
uso de ADS y DBFCDX ?
Hola, cuando utilizas RDDSETDEFAULT("ADS") defines que todas las operaciones de los comandos para DB serán con el RDD de ADS, pero también tienes la opción de utilizar por ejemplo la apertura de una DB DBUSEAREA( [<lNewArea>], [<cDriver>], <cName>, [<xcAlias>],[<lShared>], [<lReadonly>]) y también al crear una nueva DB, DBCREATE( <cDatabase>, <aStruct>, [<cDriver>], [<lOpen>], [<cAlias>] ), eso podría permitirte manipular tus DB con otro RDD No se si te entendi bien saludos Marcelo Vía
uso de ADS y DBFCDX ?
buenos dias ADSLOCKING(.F.) saludos
uso de aFindFile() o parecidos
Hola a todos,Estoy buscando una función similar la aFindFile() que viene en FWH.Esta función, busca un fichero recursivamente, es decir, a partir de una carpeta y de todas las que encuentre hacia abajo.Quisiera saber si existe algo igual pero que no se limite a buscar el nombre de un fichero, sino que busque una cadena de caracteres dentro de el o los ficheros que encuentre.Gracias,
uso de aFindFile() o parecidos
Estoy usando este ejemplo, copiado de SAMPLES pero MsgInfo solo devuelve 0 <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> [code:1bqyo5v0] STATIC function fPrueba&#40;&#41; local aFiles local nCont &#58;= 1 aFiles &#58;= aFindFile&#40; "iexplore&#46;exe", "c&#58;" &#41; MsgInfo&#40; Len&#40; aFiles &#41; &#41; for nCont &#58;= 1 to Len&#40; aFiles &#41; MsgInfo&#40; aFiles&#91; nCont &#93; &#41; next return nil [/code:1bqyo5v0]
uso de bitmpas
Hola quisiera saber si es posible usar un bitmaps que esta en un recurso en el siguiente caso. [code=fw:fmtdiu13]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> aPedido:<span style="color: #000000;">ndolarpago</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@e 9,999.999"</span> &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">of</span> odlgped <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">valid</span> <span style="color: #000000;">&#40;</span>Eval<span style="color: #000000;">&#40;</span>cEva1 <span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ACTION</span> verdolar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> bitmap <span style="color: #ff0000;">"..<span style="color: #000000;">\p</span>icture<span style="color: #000000;">\l</span>upita.bmp"</span></div>[/code:fmtdiu13] es viable llamarlo desde el recurso Gracias
uso de bitmpas
[code=fw:ek13az1x]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; &nbsp;aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nNumeroTel &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K!"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlgVendas &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaCliente <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">CURSOR</span> &nbsp;oHand &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFnt &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span> &nbsp;BITMAP &nbsp; <span style="color: #ff0000;">"BUSCAR"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> PESQUISA_TELEFONE<span style="color: #000000;">&#40;</span> nNumeroTel, aGetVenda, oLbx, &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbClientes, DbEstoque, DbPedidos, DbFornece <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> PESQUISA_TELEFONE<span style="color: #000000;">&#40;</span> nNumeroTel := <span style="color: #000000;">&#91;</span><span style="color: #000000;">00000000000000000</span><span style="color: #000000;">&#93;</span>, &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aGetVenda, oLbx, DbClientes, &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbEstoque, DbPedidos, DbFornece <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">//aGetVenda[1]:Disable()</span><br />&nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lBtnTransparent</span> := .T. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// transparent button get aGetVenda[1]</span><br />&nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lAdjustBtn</span> &nbsp; &nbsp; &nbsp;:= .T. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Button Get Adjust Witdh aGetVenda[1]</span><br />&nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lDisColors</span> &nbsp; &nbsp; &nbsp;:= .F. &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Deactive disable color</span><br />&nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrTextDis</span> &nbsp; &nbsp; := CLR_WHITE <span style="color: #B900B9;">// Color text disable status</span><br />&nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrPaneDis</span> &nbsp; &nbsp; := CLR_BLUE &nbsp;<span style="color: #B900B9;">// Color Pane disable status</span><br /><br />&nbsp; &nbsp; aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> nKey == VK_F7, Eval<span style="color: #000000;">&#40;</span> aGetVenda<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:ek13az1x] 
uso de bitmpas
Gracias karinha funciona perfecto, había intentado varias cosas y esta, la mas simple es la correcta. Gracias
uso de checkres()
Hola a todos estoy tratando de ver si me quedan recursos en memoria usando SetResDebug( .T. ) y me da este resultado [code=fw:3uholvkc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">03</span>:<span style="color: #000000;">14</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">-1811279999</span>,ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">130</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">03</span>:<span style="color: #000000;">14</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">487198102</span>,TMSGBAR:<span style="color: #00C800;">DEFAULT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span>->TMSGBAR:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">136</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">141</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">03</span>:<span style="color: #000000;">14</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">923405619</span>,PEDIDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">272</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>PEDIDOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">77</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">465</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">656</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1714</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1408</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->PEDIDOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">150</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">465</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">656</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1714</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1408</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">990</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">208</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">03</span>:<span style="color: #000000;">14</span>: ====================================================================================================   <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">04</span>:<span style="color: #000000;">46</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">2013926003</span>,TMSGBAR:<span style="color: #00C800;">DEFAULT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span>->TMSGBAR:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">136</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">141</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">04</span>:<span style="color: #000000;">46</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">722078738</span>,PEDIDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">272</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>PEDIDOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">77</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">465</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">656</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1714</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1408</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->PEDIDOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">150</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">465</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">656</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1714</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1408</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">990</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">208</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">04</span>:<span style="color: #000000;">46</span>: ====================================================================================================   <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">56</span>: ====================================================================================================   <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">10</span>:<span style="color: #000000;">05</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">1158286410</span>,TMSGBAR:<span style="color: #00C800;">DEFAULT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span>->TMSGBAR:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">136</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">141</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">10</span>:<span style="color: #000000;">05</span>: ====================================================================================================   <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">53</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">587861728</span>,TMSGBAR:<span style="color: #00C800;">DEFAULT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span>->TMSGBAR:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">136</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">141</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">53</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">1963593745</span>,TWBROWSE:<span style="color: #000000;">LEDITCOL</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3853</span><span style="color: #000000;">&#41;</span>->EDITACELDA<span style="color: #000000;">&#40;</span><span style="color: #000000;">486</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>PEDIDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">369</span><span style="color: #000000;">&#41;</span>->__EDIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">3624</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TWBROWSE:<span style="color: #00C800;">EDIT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3570</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG:<span style="color: #000000;">TDIALOG</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">874</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->TWBROWSE:<span style="color: #00C800;">EDIT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3571</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>PEDIDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">43</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>PEDIDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">316</span><span style="color: #000000;">&#41;</span>->TGET:<span style="color: #000000;">LVALID</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1199</span><span style="color: #000000;">&#41;</span>->TGET:<span style="color: #000000;">FWLOSTFOCUS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1134</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1699</span><span style="color: #000000;">&#41;</span>->TGET:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">584</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">825</span><span style="color: #000000;">&#41;</span>->TGET:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1113</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1724</span><span style="color: #000000;">&#41;</span>->TGET:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">584</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->PEDIDO<span style="color: #000000;">&#40;</span><span style="color: #000000;">398</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>PEDIDOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">77</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">465</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">656</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">596</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1711</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1408</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->PEDIDOVE<span style="color: #000000;">&#40;</span><span style="color: #000000;">150</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">159</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">465</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">656</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1714</span><span style="color: #000000;">&#41;</span>->TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1408</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3177</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">990</span><span style="color: #000000;">&#41;</span>->ORIGEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">208</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">21</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2013</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">53</span>: ====================================================================================================   <br /> </div>[/code:3uholvkc] Mi consulta es si me esta cerrando el objeto font, ya que en el programa lo destruyo con font.end() [code=fw:3uholvkc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp; &nbsp; oBmp:<span style="color: #0000ff;">Progress</span><span style="color: #000000;">&#40;</span> .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBmp:<span style="color: #000000;">LoadImage</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"fondomeg.jpg"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oVentPrinc <span style="color: #0000ff;">MAXIMIZED</span><br /><br />&nbsp; oFont:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; SET RESOURCES <span style="color: #0000ff;">TO</span> &nbsp;</div>[/code:3uholvkc] No tengo claro si lo esta cerrando. Gracia
uso de checkres()
Luis, Prueba a hacer esto en tu PRG: [code=fw:15v2o173]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">while</span> oFont:<span style="color: #000000;">nCount</span> > <span style="color: #000000;">0</span><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />end<br /> </div>[/code:15v2o173] y comprueba si te limpia esos fonts que te quedan. Normalmente cuando los fonts quedan activos es porque no se han asignado correctamente, es decir nunca hay que hacer: oVentanaDialogoControl:oFont = oMiFont en vez de eso: oVentanaDialogoControl:SetFont( oMiFont )
uso de checkres()
Gracias Antonio, ahora funcionó. Luis
uso de checkres()
Luis, has comprobado si tenias alguna asignación directa de <Objeto>:oFont en tus PRGs ?
uso de checkres()
Antonio Este mismo criterio hay que seguir con los : oBrush := oBrush1 p.e., es decir no usarlo? Gracias
uso de checkres()
Cristobal, Asi es. Los brushes en FWH tambien usan un contador, por lo que nunca se puede hacer una asignación directa de un brush. La forma de asignarlos es similar a los fonts: oControl:SetBrush( oBrush )
uso de checkres()
Sí Antonio en el programa principal. Luis
uso de make de bcc al crear una libreria
Saludos al Forum echo + .\obj1\$&.obj >> bl32.bc asi creo un archivo bl32.bc con lo .obj lo crea asi, pero por cada archivo una linea +.\obj1\COLORSET.obj +.\obj1\COLORS.obj +.\obj1\COLORPAL.obj +.\obj1\YESNO2.obj +.\obj1\SAVEENV.obj +.\obj1\GINKEY.obj +.\obj1\BLANK4.obj +.\obj1\RAND.obj +.\obj1\SHADOWB.obj +.\obj1\BOXTITLE.obj +.\obj1\NETUSE.obj Como hago para que me lo deje en una sola linea, asi +.\obj1\COLORSET.obj +.\obj1\COLORS.obj +.\obj1\COLORPAL.obj +.\obj1\YESNO2.obj +.\obj1\SAVEENV.obj +.\obj1\GINKEY.obj +.\obj1\BLANK4.obj +.\obj1\RAND.obj +.\obj1\SHADOWB.obj +.\obj1\BOXTITLE.obj +.\obj1\NETUSE.obj Muchas Gracias
uso de make de bcc al crear una libreria
Estimado Ruben, Lo más sencillo es que uses hbmk2.exe especificando -hblib en el fichero hbp y las lista de los nombres de los ficheros
uso de make de bcc al crear una libreria
Muchas Gracias, Ya lo solucione
uso de make de bcc al crear una libreria
Estimado Ruben, Cómo lo solucionaste ? Te agradecemos si lo compartes con los demás usuarios de estos foros, gracias
uso de make de bcc al crear una libreria
Saludos Antonio Lo solucione asi, Como me crea un archivo y contiene una linea por cada objeto. lo que hice fue leer ese archivo y lo converti en una sola linea cree un .bat que ejecuto [code=fw:2nw5av0r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />......<br />....<br /> !<span style="color: #00C800;">if</span> $<span style="color: #000000;">&#40;</span>VAR3<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"BCC"</span> | $<span style="color: #000000;">&#40;</span>VAR3<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"BCC64"</span><br />  echo $<span style="color: #000000;">&#40;</span>OBJS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>COBJS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>CPOBJS<span style="color: #000000;">&#41;</span> > bl32.bc<br />  CALL cambtext.bat <span style="color: #ff0000;">".<span style="color: #000000;">\"</span> "</span>+.\<span style="color: #ff0000;">" bl32.bc<br />  $(BCDIR)<span style="color: #000000;">\b</span>in<span style="color: #000000;">\$</span>(CTIB) $(LIBFIL) @bl32.bc /0 /P64,,  > compiler.log<br /><br /></span></div>[/code:2nw5av0r] este es el bat que ejecuta cambtext.bat , donde lo convierto en una sola linea [code=fw:2nw5av0r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />echo off<br />Setlocal EnableDelayedExpansion<br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%3"</span> == <span style="color: #ff0000;">""</span> goto ayuda<br />set cadorig=%<span style="color: #000000;">1</span><br />set cadorig=%cadorig:<span style="color: #ff0000;">"=%<br />set cadsust=%2<br />set cadsust=%cadsust:"</span>=%<br /><span style="color: #00C800;">for</span> %%f in <span style="color: #000000;">&#40;</span>%<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">do</span> <span style="color: #000000;">&#40;</span>call :<span style="color: #000000;">cambiar</span> %%f<span style="color: #000000;">&#41;</span><br />goto fin<br />:<span style="color: #000000;">cambiar</span><br />set archivo=%<span style="color: #000000;">1</span><br /><span style="color: #00C800;">for</span> /f <span style="color: #ff0000;">"tokens=* delims="</span> %%i in <span style="color: #000000;">&#40;</span>%archivo%<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">do</span> <span style="color: #000000;">&#40;</span>set ANT=%%i&echo !ANT:%cadorig%=%cadsust%! >>kk_temp.txt<span style="color: #000000;">&#41;</span><br />copy /y kk_temp.txt %archivo%<br />del /q kk_temp.txt<br />goto :<span style="color: #000000;">EOF</span><br />:<span style="color: #000000;">Ayuda</span><br />Echo Reemplaza una cadena por otra en el contenido de archivos <span style="color: #000000;">&#40;</span>con comodines<span style="color: #000000;">&#41;</span><br />echo Utiliza un archivo temporal kk_temp.txt que no debe existir previamente<br />echo Formato: %<span style="color: #000000;">0</span> cadorig cadsust archivos<br />echo Si las cadenas contienen espacios deben escribirse entrecomilladas<br />echo No funciona si la cadena original contiene un <span style="color: #ff0000;">"="</span><br />Echo Ejemplo:<br /><span style="color: #000000;">echo</span> %<span style="color: #000000;">0</span> de DE *.txt<br />:<span style="color: #000000;">Fin</span><br /><br /> </div>[/code:2nw5av0r]
uso de radiobutton desde resources
Antonio: Necesito usar RadioButtos desde resources, tengo el siguiente codigo y no se como hacer para conocer el status de los objetos, necesito algo asi como :lIsChecked() o :lChecked, pero no puedo obtener el status. MI CODIGO: REDEFINE RADIO oRadF1 var nRadF1 ID 405 OF oDlg ;// Sel Opcion1 on click ( oRadF2:uncheck(), oRadF2:refresh() ) REDEFINE RADIO oRadF2 var nRadF2 ID 406 OF oDlg ;// Sel Opcion2 on click ( oRadF1:uncheck(), oRadF1:refresh() ) LO ANTERIOR SI FUNCIONA, solo que en otra parte del programa no puedo conocer el status de oRadF1, oRadF2. -Que me falta? GRACIAS. SALUDOS!
uso de radiobutton desde resources
Entiendo que no estas definiendo bien el RadioButton, porque los defines como elementos separados, cuando debieras definir un solo radiobutton, con todos los elementos que quieras, en tu caso dos. [code:1lbthg6g] REDEFINE RADIO oRad VAR nRad ID 405,406 OF oDlg [/code:1lbthg6g] De esta forma, ya no hace falta que programes nada en on click, puesto que lo gestiona el control, y para saber que elemento tienes seleccionado, consultas la variable nRad que será 1 o 2 dependiendo de la selección.
uso de radiobutton desde resources
Muchas Gracias, lo voy a hacer de esa manera. Yo no habia entendido como relacionar los dos controles definidos en recursos, hay varios ejemplos pero todos a partir de codigo. [quote="Biel EA6DD":chts10f9]Entiendo que no estas definiendo bien el RadioButton, porque los defines como elementos separados, cuando debieras definir un solo radiobutton, con todos los elementos que quieras, en tu caso dos. [code:chts10f9] REDEFINE RADIO oRad VAR nRad ID 405,406 OF oDlg [/code:chts10f9] De esta forma, ya no hace falta que programes nada en on click, puesto que lo gestiona el control, y para saber que elemento tienes seleccionado, consultas la variable nRad que será 1 o 2 dependiendo de la selección.[/quote:chts10f9]
uso de texStruc
en algún sitio como en la función GetoVar( i, nArea, cAreaIni, lNew ) se usa : oVar := TExStruct():New() nunca he usado esta clase pero por lo que he visto en el código fwh usa arrays para simular estructuras de c . ¿ Es correcto esto ? Si es así no seria conveniente y posible pasar a usar Hash que posiblemente sean mas rápidos y directos ? el cambio parece simple ( a primera vista ) . Saludos a todos.
uso de texStruc
Manuel, Si, tienes toda la razón. La clase TExStruct fué una contribución de un usuario de FWH y se incorporó en su dia, posiblemente antes de que existieses los hashes. Es una buena propuesta la tuya y sería bueno actualizarla pero asegurándonos de que mantiene total compatibilidad para no afectar a ningún usuario de FWH que pueda estar usándola. Gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
uso del TAB en Shell.Explorer
Hola gente acudo al foro por lo siguiente dentro de mi sistema hago consultas a paginas web para traer datos, hasta aqui todo bien, funciona perfecto pero me encuentro con la siguiente incomodidad consulto una página, dentro de la cual tengo que ingresar datos en varios campos y no puedo pasar de uno al otro mediante el uso de TAB, ya que si presiono la tecla TAB toma foco el boton del dialogo alguien conoce el truco? asi no sigo utilizando el mouse asi es cómo lo hago DEFINE DIALOG oDlg RESOURCE "CONSULTA_WEB_1" TITLE "CONSULTA_WEB_1" REDEFINE ACTIVEX oActiveX ID 10 OF oDlg PROGID "Shell.Explorer" REDEFINE BUTTON ID 110 OF oDlg ACTION oDlg:end() ACTIVATE DIALOG oDlg CENTERED ON INIT oActiveX&#058;Do( "Navigate2", nLink ) gracias de antemano Pablo
uso di zip-unzip
avete a portata di mano un esempietto di compattazione-scompattazione zip? qual'è la lib giusta da usare?
uso di zip-unzip
/* * $DOC$ * $FUNCNAME$ * HB_ZIPFILE() * $CATEGORY$ * Zip Functions * $ONELINER$ * Create a zip file * $SYNTAX$ * HB_ZIPFILE( <cFile>, <cFileToCompress> | <aFiles>, <nLevel>, * <bBlock>, <lOverWrite>, <cPassword>, <lWithPath>, <lWithDrive>, * <pFileProgress> ) ---> lCompress * $ARGUMENTS$ * <cFile> Name of the zip file to create * * <cFileToCompress> Name of a file to Compress, Drive and/or path * can be used * _or_ * <aFiles> An array containing files to compress, Drive and/or path * can be used * * <nLevel> Compression level ranging from 0 to 9 * * <bBlock> Code block to execute while compressing * * <lOverWrite> Toggle to overwrite the file if exists * * <cPassword> Password to encrypt the files * * <lWithPath> Toggle to store the path or not * * <lWithDrive> Toggle to store the Drive letter and path or not * * <pFileProgress> Code block for File Progress * $RETURNS$ * <lCompress> .t. if file was create, otherwise .f. * $DESCRIPTION$ * This function creates a zip file named <cFile>. If the extension * is omitted, .ZIP will be assumed. If the second parameter is a * character string, this file will be added to the zip file. If the * second parameter is an array, all file names contained in <aFiles> * will be compressed. * * If <nLevel> is used, it determines the compression type where 0 means * no compression and 9 means best compression. * * If <bBlock> is used, every time the file is opened to compress it * will evaluate bBlock. Parameters of bBlock are cFile and nPos. * * If <lOverWrite> is used, it toggles to overwrite or not the existing * file. Default is to overwrite the file,otherwise if <lOverWrite> is false * the new files are added to the <cFile>. * * If <cPassword> is used, all files that are added to the archive are encrypted * with the password. * * If <lWithPath> is used, it tells the path should also be stored with * the file name. Default is false. * * If <lWithDrive> is used, it tells thats the Drive and path should also be stored * with the file name. Default is false. * * If <pFileProgress> is used, an Code block is evaluated, showing the total * of that file has being processed. * The codeblock must be defined as follow {|nPos,nTotal| GaugeUpdate(aGauge1,(nPos/nTotal))} * * $EXAMPLES$ * FUNCTION MAIN() * * IF HB_ZIPFILE( "TEST.ZIP", "TEST.PRG" ) * qout( "File was successfully created" ) * ENDIF * * IF HB_ZIPFILE( "TEST1.ZIP", { "TEST.PRG", "c:\windows\win.ini" } ) * qout( "File was successfully created" ) * ENDIF * * IF HB_ZIPFILE( "TEST2.ZIP", { "TEST.PRG", "c:\windows\win.ini" }, 9, {|cFile,nPos,| qout(cFile) } ) * qout( "File was successfully created" ) * ENDIF * * aFiles := { "TEST.PRG", "c:\windows\win.ini" } * nLen := Len( aFiles ) * aGauge := GaugeNew( 5, 5, 7, 40, "W/B", "W+/B" , "²" ) * GaugeDisplay( aGauge ) * HB_ZIPFILE( "test33.zip", aFiles, 9, {|cFile,nPos| GaugeUpdate( aGauge, nPos/nLen ) },, "hello" ) * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* * $DOC$ * $FUNCNAME$ * HB_UNZIPFILE() * $CATEGORY$ * Zip Functions * $ONELINER$ * Unzip a compressed file * $SYNTAX$ * HB_UNZIPFILE( <cFile>, <bBlock>, <lWithPath>, <cPassWord>, <cPath>, * <cFile> | <aFile>, <pFileProgress> ) ---> lCompress * $ARGUMENTS$ * <cFile> Name of the zip file to extract * * <bBlock> Code block to execute while extracting * * <lWithPath> Toggle to create directory if needed * * <cPassWord> Password to use to extract files * * <cPath> Path to extract the files to - mandatory * * <cFile> | <aFiles> A File or Array of files to extract - mandatory * * <pFileProgress> Code block for File Progress * $RETURNS$ * <lCompress> .t. if all file was successfully restored, otherwise .f. * $DESCRIPTION$ * This function restores all files contained inside the <cFile>. * If the extension is omitted, .ZIP will be assumed. If a file already * exists, it will be overwritten. * * If <bBlock> is used, every time the file is opened to compress it * will evaluate bBlock. Parameters of bBlock are cFile and nPos. * * The <cPath> is a mandatory parameter. Set to ".\" to extract to the * current directory * * If <cFile> or <aFiles> are not provided, no files will be extracted! * Make sure you provide the file or files you want extracted * * If <pFileProgress> is used, an Code block is evaluated, showing the total * of that file has being processed. * The codeblock must be defined as follow {|nPos,nTotal| GaugeUpdate(aGauge1,(nPos/nTotal))} * $EXAMPLES$ * FUNCTION MAIN() * * aExtract := hb_GetFilesInZip( "TEST.ZIP" ) // extract all files in zip * IF HB_UNZIPFILE( "TEST.ZIP",,,, ".\", aExtract ) * qout("File was successfully extracted") * ENDIF * * aExtract := hb_GetFilesInZip( "TEST2.ZIP" ) // extract all files in zip * IF HB_UNZIPFILE( "TEST2.ZIP", {|cFile| qout( cFile ) },,, ".\", aExtract ) * qout("File was successfully extracted") * ENDIF * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* * $DOC$ * $FUNCNAME$ * HB_GETUNZIPFILE() * $CATEGORY$ * Zip Functions * $ONELINER$ * Gets the number of files that are in the zipfile * $SYNTAX$ * HB_GETUNZIPFILE( <cFile> ) ---> nNumber * $ARGUMENTS$ * <cFile> Name of the zip file * $RETURNS$ * <nNumber> The number of files contained inside the zipfile * $DESCRIPTION$ * This function returns the number of files that is stored in the zipfile. * The purpose for this function is to use in conjunction with the * HB_UNZIPFILE() function, so you can use returned result in the code * block. See example below. * $EXAMPLES$ * FUNCTION MAIN() * Local nFiles := HB_GETUNZIPFILE( "test.zip" ) * * if nFiles > 0 * ? "This files Contains ", nfiles * endif * * Return Nil * * Here is an example of How to use HB_GETUNZIPFILE() in conjunction * with HB_UNZIPFILE() * * Function Main() * Local aGauge, nLen * * aGauge := GaugeNew( 5, 5, 7, 40, "W/B", "W+/B" ,"²" ) * GaugeDisplay( aGauge ) * nLen := HB_GETUNZIPFILE( "test22" ) * HB_UNZIPFILE( "test22", {|cFile,nPos| GaugeUpdate( aGauge, nPos/nLen ), qout(cFile) }, .t. ) * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* * $DOC$ * $FUNCNAME$ * HB_ZIPFILEBYTDSPAN() * $CATEGORY$ * Zip Functions * $ONELINER$ * Create a zip file * $SYNTAX$ * HB_ZIPFILEBYTDSPAN( <cFile> ,<cFileToCompress> | <aFiles>, <nLevel>, * <bBlock>, <lOverWrite>, <cPassword>, <iSize>, <lWithPath>, <lWithDrive>, * <pFileProgress>) ---> lCompress * $ARGUMENTS$ * <cFile> Name of the zip file * * <cFileToCompress> Name of a file to Compress, Drive and/or path * can be used * _or_ * <aFiles> An array containing files to compress, Drive and/or path * can be used * * <nLevel> Compression level ranging from 0 to 9 * * <bBlock> Code block to execute while compressing * * <lOverWrite> Toggle to overwrite the file if exists * * <cPassword> Password to encrypt the files * * <iSize> Size of the archive, in bytes. Default is 1457664 bytes * * <lWithPath> Toggle to store the path or not * * <lWithDrive> Toggle to store the Drive letter and path or not * * <pFileProgress> Code block for File Progress * $RETURNS$ * <lCompress> .t. if file was create, otherwise .f. * $DESCRIPTION$ * This function creates a zip file named <cFile>. If the extension * is omitted, .ZIP will be assumed. If the second parameter is a * character string, this file will be added to the zip file. If the * second parameter is an array, all file names contained in <aFiles> * will be compressed. * * If <nLevel> is used, it determines the compression type where 0 means * no compression and 9 means best compression. * * If <bBlock> is used, every time the file is opened to compress it * will evaluate bBlock. Parameters of bBlock are cFile and nPos. * * If <lOverWrite> is used, it toggles to overwrite or not the existing * file. Default is to overwrite the file, otherwise if <lOverWrite> is * false the new files are added to the <cFile>. * * If <lWithPath> is used, it tells thats the path should also be stored ' * with the file name. Default is false. * * If <lWithDrive> is used, it tells thats the Drive and path should also * be stored with the file name. Default is false. * * If <pFileProgress> is used, an Code block is evaluated, showing the total * of that file has being processed. * The codeblock must be defined as follow {|nPos,nTotal| GaugeUpdate(aGauge1,(nPos/nTotal))} * $EXAMPLES$ * FUNCTION MAIN() * * IF HB_ZIPFILEBYTDSPAN( "TEST.ZIP", "TEST.PRG" ) * qout( "File was successfully created" ) * ENDIF * * IF HB_ZIPFILEBYTDSPAN( "TEST1.ZIP", { "TEST.PRG", "c:\windows\win.ini" } ) * qout( "File was successfully created" ) * ENDIF * * IF HB_ZIPFILEBYTDSPAN( "TEST2.ZIP", { "TEST.PRG", "c:\windows\win.ini" }, 9, {|nPos,cFile| qout(cFile) }, "hello",, 521421 ) * qout("File was successfully created" ) * ENDIF * * aFiles := { "TEST.PRG", "c:\windows\win.ini" } * nLen := Len( aFiles ) * aGauge := GaugeNew( 5, 5, 7, 40, "W/B", "W+/B", "²" ) * GaugeDisplay( aGauge ) * HB_ZIPFILEBYTDSPAN( "test33.zip", aFiles, 9, {|cFile,nPos| GaugeUpdate( aGauge, nPos/nLen) },, "hello",, 6585452 ) * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* * $DOC$ * $FUNCNAME$ * HB_ZIPFILEBYPKSPAN() * $CATEGORY$ * Zip Functions * $ONELINER$ * Create a zip file on removable media * $SYNTAX$ * HB_ZIPFILEBYPKSPAN( <cFile>, <cFileToCompress> | <aFiles>, <nLevel>, * <bBlock>, <lOverWrite>, <cPassword>, <lWithPath>, <lWithDrive>, * <pFileProgress>) ---> lCompress * $ARGUMENTS$ * <cFile> Name of the zip file * * <cFileToCompress> Name of a file to Compress, Drive and/or path * can be used * _or_ * <aFiles> An array containing files to compress, Drive and/or path * can be used * * <nLevel> Compression level ranging from 0 to 9 * * <bBlock> Code block to execute while compressing * * <lOverWrite> Toggle to overwrite the file if exists * * <cPassword> Password to encrypt the files * * <lWithPath> Toggle to store the path or not * * <lWithDrive> Toggle to store the Drive letter and path or not * * <pFileProgress> Code block for File Progress * $RETURNS$ * <lCompress> .t. if file was create, otherwise .f. * $DESCRIPTION$ * This function creates a zip file named <cFile>. If the extension * is omitted, .ZIP will be assumed. If the second parameter is a * character string, this file will be added to the zip file. If the * second parameter is an array, all file names contained in <aFiles> * will be compressed. Also, the use of this function is for creating * backup in removable media like an floppy drive/zip drive. * * If <nLevel> is used, it determines the compression type where 0 means * no compression and 9 means best compression. * * If <bBlock> is used, every time the file is opened to compress it * will evaluate bBlock. Parameters of bBlock are cFile and nPos. * * If <lOverWrite> is used , it toggles to overwrite or not the existing * file. Default is to overwrite the file, otherwise if <lOverWrite> is false * the new files are added to the <cFile>. * * If <cPassword> is used, all files that are added to the archive are encrypted * with the password. * * If <lWithPath> is used, it tells thats the path should also be stored with * the file name. Default is false. * * If <lWithDrive> is used, it tells thats the Drive and path should also be stored * with the file name. Default is false. * * If <pFileProgress> is used, an Code block is evaluated, showing the total * of that file has being processed. * The codeblock must be defined as follow {|nPos,nTotal| GaugeUpdate(aGauge1,(nPos/nTotal))} * * Before calling this function, Set an Changedisk codeblock by calling * the HB_SETDISKZIP(). * $EXAMPLES$ * FUNCTION MAIN() * * hb_setdiskzip( {|nDisk| Alert( "Please insert disk no " + Str( nDisk, 3 ) ) } ) * * IF HB_ZIPFILEBYPKSPAN( "a:\TEST.ZIP", "TEST.PRG" ) * qout( "File was successfully created" ) * ENDIF * * IF HB_ZIPFILEBYPKSPAN( "a:\TEST1.ZIP", { "TEST.PRG", "c:\windows\win.ini" } ) * qout( "File was successfully created" ) * ENDIF * * IF HB_ZIPFILEBYPKSPAN( "TEST2.ZIP", { "TEST.PRG", "c:\windows\win.ini"}, 9, {|nPos,cFile| qout(cFile) } ) * qout( "File was successfully created" ) * ENDIF * * aFiles := { "TEST.PRG", "c:\windows\win.ini" } * nLen := Len( aFiles ) * aGauge := GaugeNew( 5, 5, 7, 40, "W/B", "W+/B", "²" ) * GaugeDisplay( aGauge ) * HB_ZIPFILEBYPKSPAN( "f:\test33.zip", aFiles, 9, {|cFile,nPos| GaugeUpdate( aGauge, nPos/nLen ) },, "hello" ) * // assuming f:\ is a Zip Drive * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* $DOC$ * $FUNCNAME$ * HB_SETDISKZIP() * $CATEGORY$ * Zip Functions * $ONELINER$ * Set an codeblock for disk changes * $SYNTAX$ * HB_SETDISKZIP( <bBlock> ) ---> TRUE * $ARGUMENTS$ * <bBlock> an Code block that contains an function that will be performed * when the need of changing disk are need. * $RETURNS$ * It always returns True * $DESCRIPTION$ * This function will set an codeblock that will be evaluated every time * that an changedisk event is necessary. <bBlock> receives nDisk as a * code block param that corresponds to the diskette number to be processed. * * Set this function before opening archives that are in removable media. * This block will be released, when the caller finish it job. * $EXAMPLES$ * HB_SETDISKZIP( {|nDisk| Alert( "Please insert disk no " + Str( nDisk, 3 ) ) } ) * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* $DOC$ * $FUNCNAME$ * HB_ZIPDELETEFILES() * $CATEGORY$ * Zip Functions * $ONELINER$ * Delete files from an zip archive * $SYNTAX$ * HB_ZIPDELETEFILES( <cFile>, <cFiletoDelete> | <aFiles> | <nFilePos> ) --> <lDeleted> * $ARGUMENTS$ * <cFile> The name of the zip files from where the files will be deleted * * <cFiletoDelete> An File to be removed * _or_ * <aFiles> An Array of Files to be removed * _or_ * <nFilePos> The Position of the file to be removed * $RETURNS$ * <lDeleted> If the files are deleted, it will return .T.; otherwise * it will return .f. in the following cases: Spanned Archives; the file(s) * could not be found in the zip file. * $DESCRIPTION$ * This function removes files from an Zip archive. * $EXAMPLES$ * ? "has the file zipnew.i been deleted ", if( HB_ZIPDELETEFILES( "\test23.zip", "zipnew.i" ), "Yes", "No" ) * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* $DOC$ * $FUNCNAME$ * HB_ZIPTESTPK() * $CATEGORY$ * Zip Functions * $ONELINER$ * Test pkSpanned zip files * $SYNTAX$ * HB_ZIPTESTPK( <cFile> ) --> <nReturnCode> * $ARGUMENTS$ * <cFile> File to be tested. * $RETURNS$ * <nReturn> A code that tells if the current disk is the last of a * pkSpanned disk set. * $DESCRIPTION$ * This function tests if the disk inserted is the last disk of an backup * set or not. * It will return the follow return code when an error is found * * <table> * Error code Meaning * 114 Incorrect Disk * 103 No Call back was set with HB_SETDISKZIP() * </table> * * Call this function to determine if the disk inserted is the correct * one before any other function. * $EXAMPLES$ * if HB_ZIPTESTPK( "a:\test22.zip" ) == 114 * ? "Invalid Diskette" * endif * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* $DOC$ * $FUNCNAME$ * HB_GETZIPCOMMENT() * $CATEGORY$ * Zip Functions * $ONELINER$ * Return the comment of an zip file * $SYNTAX$ * HB_GETZIPCOMMENT( <szFile> ) --> <szComment> * $ARGUMENTS$ * <szFile> File to get the comment from * $RETURNS$ * <szComment> The comment that was stored in <szFile> * $DESCRIPTION$ * This function receives a valid zip file name as parameter, * and returns the global comment stored within. * $EXAMPLES$ * ? "The comment in test.zip is ", HB_GETZIPCOMMENT( "test.zip" ) * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* $DOC$ * $FUNCNAME$ * HB_SETZIPCOMMENT() * $CATEGORY$ * Zip Functions * $ONELINER$ * Set an Zip archive Comment * $SYNTAX$ * HB_SETZIPCOMMENT( <cComment> ) --> Nil * $ARGUMENTS$ * <cComment> Comment to add to the zip archive * $RETURNS$ * <NIL> this function always return NIL * $DESCRIPTION$ * This function stored an global comment to an zip archive. * It should be called before any of the compression functions. * $EXAMPLES$ * HB_SETZIPCOMMENT( "This is an Test" ) * hb_zipfile( "test.zip", { "\windows\ios.ini", "\windows\win.ini" } ) * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* $DOC$ * $FUNCNAME$ * HB_SETBUFFER() * $CATEGORY$ * Zip Functions * $ONELINER$ * * $SYNTAX$ * HB_SETBUFFER( [<nWriteBuffer>], [<nExtractBuffer>], [<nReadBuffer>] ) --> Nil * $ARGUMENTS$ * <nWriteBuffer> The size of the write buffer. * * <nExtractBuffer> The size of the extract buffer. * * <nReadBuffer> The size of the read buffer. * $RETURNS$ * <NIL> This function always returns NIL. * $DESCRIPTION$ * This function set the size of the internal buffers for write/extract/read * operation * * If the size of the buffer is smaller then the default, the function * will automatically use the default values, which are 65535/16384/32768 * respectively. * * This function be called before any of the compression/decompression * functions. * $EXAMPLES$ * HB_SETBUFFER( 100000, 115214, 65242 ) * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* * $DOC$ * $FUNCNAME$ * HB_GETUNRARFILE() * $CATEGORY$ * Zip Functions * $ONELINER$ * Gets the number of files that are in the RAR file * $SYNTAX$ * HB_GETUNRARFILE( <cFile> ) ---> nNumber * $ARGUMENTS$ * <cFile> Name of the rar file * $RETURNS$ * <nNumber> The number of files contained inside the RAR file * $DESCRIPTION$ * This function returns the number of files that is stored in the RAR file. * $EXAMPLES$ * FUNCTION MAIN() * Local nFiles := HB_GETUNRARFILE( "test.rar" ) * * if nFiles > 0 * ? "This files contains ", nFiles * endif * * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ /* * $DOC$ * $FUNCNAME$ * HB_UNZIPFILEINDEX() * $CATEGORY$ * Zip Functions * $ONELINER$ * Unzip a compressed file referenced by it number in the zipfile * $SYNTAX$ * HB_UNZIPFILE( <cFile>, <bBlock>, <lWithPath>, <cPassWord>, <cPath>, * <nFile> | <anFiles>, <pFileProgress> ) ---> lCompress * $ARGUMENTS$ * <cFile> Name of the zip file * * <bBlock> Code block to execute while compressing * * <lWithPath> Toggle to create directory if needed * * <cPassWord> Password to use to extract files * * <cPath> Path to extract the files to - mandatory. * * <cFile> | <anFiles> A File or Array of files position to extract - mandatory * * <pFileProgress> Code block for File Progress * $RETURNS$ * <lCompress> .t. if all file was successfully restored, otherwise .f. * $DESCRIPTION$ * This function restores all files contained inside the <cFile>. * If the extension is omitted, .ZIP will be assumed. If a file already * exists, it will be overwritten. * * If <bBlock> is used, every time the file is opened to compress it * will evaluate bBlock. Parameters of bBlock are cFile and nPos. * * The <cPath> is a mandatory parameter. Set to ".\" to extract to the * current dir * * If <cFile> or <anFiles> are not provided, no files will be extracted! * Make sure you provide the file or files you want extracted * * If <pFileProgress> is used, an Code block is evaluated, showing the total * of that file has being processed. * The codeblock must be defined as follow {|nPos,nTotal| GaugeUpdate(aGauge1,(nPos/nTotal))} * $EXAMPLES$ * FUNCTION MAIN() * * IF HB_UNZIPFILEINDEX( "TEST.ZIP",,,, ".\", 1 ) * qout( "File was successfully created" ) * ENDIF * * IF HB_UNZIPFILEINDEX( "TEST2.ZIP", {|cFile|, qout(cFile) },,, ".\", { 1, 2 } ) * qout( "File was successfully created" ) * ENDIF * * Return Nil * $STATUS$ * R * $COMPLIANCE$ * This function is a Harbour extension * $PLATFORMS$ * All * $FILES$ * Library is hbzip.lib * $END$ */ EMG
uso dialog in prg
ho delle mie dialog in una DLL che ho creato con Resource Workshop in un file .RC e poi convertito in DLL con rc2dll32.bat ma quando lancio l'apertura della dialog mi da l'errore... Error description: Error FiveWin/3 Cannot create Dialog Box: Resource: SAPAGG Stack Calls =========== Called from CREATEDLGERROR(0) Called from TDIALOG:ACTIVATE(0) Called from DIALOGV1(50) Called from DIALOG(17) perchè?
uso dialog in prg
Hai attivato la DLL con il comando SET RESOURCES TO "tuadll.dll"? EMG
uso dialog in prg
si... fatto!
uso dialog in prg
nessun consiglio.... ?
uso dialog in prg
Prova a mandarmi la DLL. EMG
uso dialog in prg
ti ho inviato il tutto sulla tua email....
uso dialog in prg
Allora, all'inizio devi mettere [code:hclswvv1]local hBwcc32 &#58;= LoadLibrary&#40; "BWCC32&#46;dll" &#41; SET RESOURCES TO "SAPAGG&#46;DLL" BWCCRegister&#40; GetResources&#40;&#41; &#41;[/code:hclswvv1] e alla fine [code:hclswvv1]FreeLibrary&#40; hBwcc32 &#41;[/code:hclswvv1] E così funziona. Se hai dei dubbi al riguardo cerca anche negli esempi. EMG
uso dialog in prg
ok... proverò a fare così, e comunque ho da porre delle domanda a riguardo: 1 - Queste istruzioni (local hBwcc32 := LoadLibrary "BWCC32.dll" ) ...etc... ) bisogna metterle perchè ci sono incompatibilità tra Resource Workshop e FHW ? (con FW 1.9.2 non bisognava metterle...) 2 - Invece di utilizzare Borland Resource Workshop per creare DLL a 16 bit con DIALOG ICON etc... c'è qualche altro software che può farlo direttamente per l'utilizzo di FWH ?
uso dialog in prg
[quote="damianodec":ssevgduh]1 - Queste istruzioni (local hBwcc32 := LoadLibrary "BWCC32.dll" ) ...etc... ) bisogna metterle perchè ci sono incompatibilità tra Resource Workshop e FHW ?[/quote:ssevgduh] No, si devono mettere quando si usano dei controlli Borland (e tu stai utilizzando appunto due pulsanti Borland) e ti devi anche portare appresso la bwcc32.dll. Ti consiglio di sostituirli con due normali pulsanti (TButton) oppure con dei TBtnBmp (pulsanti bitmap) così non hai più bisogno di quella DLL. EMG
utilizando googleMaps utilianzando activex y java scrip
Un saludito listeros, bueno les comento que logre utiliza en una venta window montar un activex y ejecuta con el navegador desde un paguina .htm y ver en tiempo real la posicion global de unidades moviles (autobuses). Tambien actilizando el servidor con la tSockest (viaTCP) que trabaja muy bien. [img:2qy7nj8d]http&#58;//www&#46;busmaticcr&#46;com/situ&#46;png[/img:2qy7nj8d] Saludes. <!-- m --><a class="postlink" href="http://www.situcr.com">http://www.situcr.com</a><!-- m -->
utilizando googleMaps utilianzando activex y java scrip
Hola Busmatic_wpb, puedes explicar como lo has hecho, me refiero a qué es lo que utilizas para transmitir los datos desde los vehículos. Hace tiempo que me quiero meter en este tema pero siempre lo he ido postponiendo. Veo que ya lo tienes funcionando y se ve bastente chulo, qué has puesto en los vehículos, supongo que una tablet windows como veo que has dicho en otros mensajes que todo es FW. Te importaría por favor explicar qué equipos empleas en los vehículos y en tu central. Gracias de antemano.
utilizando googleMaps utilianzando activex y java scrip
Con gusto compadre. Lo primero una table w10 con una programa de venta de boletos abordo de la unidad , con un gps y internet luego trasmites una trama de datos a un server con la informacion que deseas procesar, luego utilizas un html que este llama aun archivo en java scrip y este a su vez levanta a un archivo .xlms. El xmls es el que contiene la informacion de cada unidad separada por marcadores y este es regenerado cada cierto tiempo y es refrescado por el archivo java scrip java. Se puede ejecutar el .htm desde el mismo navegador que tendria que ser edge, o firefox que son los unicos que pueden leer archivos .xml El contenedor donde ves el mapa es un activex bien elaborado y trabajo my bien, si deseas te envio un ejemplo (que habia publicado anteriormente) que puedes bajar enviame tu correo con gusto, ya lo habia compartido por ahi con varios.
utilizando googleMaps utilianzando activex y java scrip
Hola, buen dia Estoy interesado en el ejemplo para entender correctamente el concepto por favor mi correo es: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> Gracias !!!
utilizando googleMaps utilianzando activex y java scrip
Hola, estoy interesado, en conocer el codigo, no pude resolver el problema de integrar con un activex, un mapa en un win dows, te agradeceria, si me podes dar una mano, gracias!!!! Mi correo <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
utilizando googleMaps utilianzando activex y java scrip
Compañeros. Con mucho gusto mas o menos el asunto va por aqui.. fabor ver este link <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=35464&p=211428&hilit=google+maps#p211428">viewtopic.php?f=6&t=35464&p=211428&hilit=google+maps#p211428</a><!-- l -->
utilizar conbinaciones de teclas para SetKey()
Necesito utilizar las combinaciones de teclas:Ctrl+KeyPad_9 y asignarle una tarea.Lo he intentado haciendo:setKey(VK_CONTROL+VK_NUMPAD9, {|| tarea()})Pero no hace nada.¿Alguien sabe como hacerlo?.
utilizar conbinaciones de teclas para SetKey()
Creo que sea asi,[code:1tvvqyf4] DO CASE CASE &#40; nKey == Asc&#40; "A" &#41; &#46;OR&#46; nKey == Asc&#40; "a" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+A-For ACTION' CASE &#40; nKey == Asc&#40; "B" &#41; &#46;OR&#46; nKey == Asc&#40; "b" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+B-For ACTION' CASE &#40; nKey == Asc&#40; "C" &#41; &#46;OR&#46; nKey == Asc&#40; "c" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+C-For ACTION' CASE &#40; nKey == Asc&#40; "D" &#41; &#46;OR&#46; nKey == Asc&#40; "d" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+D-For ACTION' CASE &#40; nKey == Asc&#40; "E" &#41; &#46;OR&#46; nKey == Asc&#40; "e" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+E-For ACTION' CASE &#40; nKey == Asc&#40; "F" &#41; &#46;OR&#46; nKey == Asc&#40; "f" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+F-For ACTION' CASE &#40; nKey == Asc&#40; "G" &#41; &#46;OR&#46; nKey == Asc&#40; "g" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+G-For ACTION' CASE &#40; nKey == Asc&#40; "H" &#41; &#46;OR&#46; nKey == Asc&#40; "h" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+H-For ACTION' CASE &#40; nKey == Asc&#40; "I" &#41; &#46;OR&#46; nKey == Asc&#40; "i" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+I-For ACTION' CASE &#40; nKey == Asc&#40; "P" &#41; &#46;OR&#46; nKey == Asc&#40; "p" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+P-For ACTION' CASE &#40; nKey == Asc&#40; "T" &#41; &#46;OR&#46; nKey == Asc&#40; "t" &#41; &#41; &#46;AND&#46; ; GetKeyState&#40; VK_CONTROL &#41; ? 'Control+T-For ACTION' //CASE &#40; nKey == Asc&#40; "Z" &#41; &#46;OR&#46; nKey == Asc&#40; "z" &#41; &#41; &#46;AND&#46; ; // GetKeyState&#40; VK_CONTROL &#41; // ? 'Control+Z-For ACTION' CASE &#40; nKey == VK_INSERT &#46;AND&#46; GetKeyState&#40; VK_SHIFT &#41; &#41; &#46;OR&#46; ; &#40; nKey == ASC&#40; "V" &#41; &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; &#46;OR&#46; ; &#40; nKey == ASC&#40; 'X' &#41; &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? ' Multiplas-For ACTION' CASE &#40; nKey == VK_F2 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F2-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F3 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F3-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F4 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F4-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F5 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F5-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F6 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F6-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F7 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F7-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F8 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F8-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F9 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F9-For ACTION' // Acao&#40;Action&#41; do seu programa //CASE &#40; nKey == VK_F10 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; // ? 'Control+F10-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F11 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F11-For ACTION' // Acao&#40;Action&#41; do seu programa CASE &#40; nKey == VK_F12 &#46;AND&#46; GetKeyState&#40; VK_CONTROL &#41; &#41; ? 'Control+F12-For ACTION' // Acao&#40;Action&#41; do seu programa ENDCASE [/code:1tvvqyf4]Saludos.
utilizar xharbour
Hola Amigos, Actualmente estoy utilizando Harbour y FWH 2.4 deseo cambiarme a xHarbour, podre usar la version que tengo de FW sin ninguna modificacion en xHarbour o debo recompilarla ? Saludos Miguel
utilizar xharbour
Miguel, Si usas el build de xHarbour que te entregamos con esa versión de FWH, entonces funcionará sin problemas. Si vas a usar una versión reciente de xHarbour entonces tendrás que recompilar todos los PRGs de FWH y además posiblemente FiveHC.lib no será compatible. Lo idóneo es actualizarte a la versión más reciente de FWH.
utilizar xharbour
Gracias Antonio, te agradeceria si podes indicarme las ventajas y el precio para poder decidir. Saludos Miguel
utilizar xharbour
Miguel, La versión 2.4 de FWH es de hace más de 3 años. Imagínate todas las mejoras, novedades y arreglos que se han hecho en ese tiempo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> El precio lo puedes consultar en <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> sección pedidos.
utilprn y xharbour
Buenos diasSolo para comentar que al intentar compilar una aplicacion con FWH 7.09 y xharbour, me da los siguientes errores;Error: Unresolved external '_HB_FUN_NVIEWLIBLOAD' referenced from D:\2008\APLICACIONES\OPERACIONES\UTILPRN.OBJError: Unresolved external '_HB_FUN_NVIEWLIB32' referenced from D:\2008\APLICACIONES\OPERACIONES\UTILPRN.OBJAgradecere me indiquen como resolver esta situacionSaludos
utilprn y xharbour
Este error indica que estas haciendo referencia a la "DLL" nviewlib.dll lo que tienes que hacer es indicar la ruta de acceso, o bien copiarla a la carpeta en que tienes el proyecto.Esta DLL viene con la distribucion de FiveWin en la carpeta de samples.Saludos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
utilprn y xharbour
Tengo el mismo problema del amigo fdominguezs, me gustaría saber como debo inicar la ruta de acceso; porque la NViewLib ya esta copiada en el directorio de la aplicación, además intente cargando la NViewLib con LoadLibrary dentro de la clase utilprn donde se llama a la función nviewlibload, pero nada, creo que se trata de otra cosa, porque en versiones anteriores de FWH no da ese problemaSaludosFernando Espinoza
uuid.lib
hi, I have: FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 If I use .bat in samples folder to test .prg files I get my .exe. Inside build64.bat there is: [code=fw:2ks9mwz2]<div class="fw" id="{CB}" style="font-family: monospace;">echo uuid.lib      >> msvc.tmp</div>[/code:2ks9mwz2] but uuid.lib tuere is not inside folder samples or folder lib in FWH64. If I try to compile my apps that is inside c:\myfolder I get: [code=fw:2ks9mwz2]<div class="fw" id="{CB}" style="font-family: monospace;">uuid.lib : <span style="color: #000000;">fatal</span> error LNK1136: <span style="color: #000000;">file</span> danneggiato o non valido</div>[/code:2ks9mwz2] why? where is the right uuid.lib?
uuid.lib
[url:1n7pfum7]http&#58;//www&#46;fivetechsupport&#46;com/forums/viewtopic&#46;php?f=3&t=38147[/url:1n7pfum7] [code=fw:1n7pfum7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ECHO OFF<br />CLS<br /><br /><br /><span style="color: #00C800;">if</span> A%<span style="color: #000000;">1</span> == A GOTO :<span style="color: #000000;">SINTAX</span><br /><br /><span style="color: #00C800;">if</span> NOT EXIST %<span style="color: #000000;">1</span>.prg GOTO :<span style="color: #000000;">NOEXIST</span><br /><br />REM ***<br /><br />REM *** Adaptado para uso <span style="color: #00C800;">do</span> FWH & MSVC Express <span style="color: #000000;">2008</span> por Vailton Renato<br /><br />REM ***<br /><br />call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio 9.0<span style="color: #000000;">\V</span>C<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%CC_DIR%"</span> == <span style="color: #ff0000;">""</span> set CC_DIR=%ProgramFiles%\Microsoft Visual Studio <span style="color: #000000;">9.0</span>\VC<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%SDK_DIR%"</span> == <span style="color: #ff0000;">""</span> set SDK_DIR=%ProgramFiles%\Microsoft SDKs\Windows\v6.0A<br /><br /><span style="color: #00C800;">if</span> <span style="color: #ff0000;">"%HBDIR%"</span> == <span style="color: #ff0000;">""</span> set HBDIR=c:\harbour<br /><br />ECHO Compiling...<br /><br /><span style="color: #00C800;">if</span> exist %HBDIR%\bin\harbour.exe set hdir=%HBDIR%\bin<br /><br /><span style="color: #00C800;">if</span> exist %HBDIR%\bin\vc\harbour.exe set hdir=%HBDIR%\bin\vc<br /><br /><span style="color: #00C800;">if</span> exist %HBDIR%\lib\hbvm.lib set hdirl=%HBDIR%\lib<br /><br /><span style="color: #00C800;">if</span> exist %HBDIR%\lib\vc\hbvm.lib set hdirl=%HBDIR%\lib\vc<br /><br />set include=%CC_DIR%\include;%HBDIR%\include;%include%<br /><br />set lib=%CC_DIR%\lib;%SDK_DIR%\lib;%hdir%\lib;%lib%<br /><br /><span style="color: #ff0000;">"%hdir%<span style="color: #000000;">\h</span>arbour"</span> %<span style="color: #000000;">1</span> /n /i..\include;%HBDIR%\include /w /p %<span style="color: #000000;">2</span> %<span style="color: #000000;">3</span> > comp.log<br /><br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO COMPILEERROR<br /><br />type comp.log<br /><br /><span style="color: #ff0000;">"%CC_DIR%<span style="color: #000000;">\b</span>in<span style="color: #000000;">\c</span>l"</span> -TP -W3 -c /GA %<span style="color: #000000;">1</span>.c<br /><br />:<span style="color: #000000;">ENDCOMPILE</span><br /><br /><span style="color: #00C800;">IF</span> EXIST %<span style="color: #000000;">1</span>.rc <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\b</span>in<span style="color: #000000;">\r</span>c"</span> -r -d__FLAT__ %<span style="color: #000000;">1</span><br /><br />echo %<span style="color: #000000;">1</span>.obj > msvc.tmp<br />echo ..\lib\FiveHM.lib ..\lib\FiveHCM.lib >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>brtl.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bvm.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\g</span>tgui.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>blang.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bmacro.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>brdd.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\r</span>ddntx.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\r</span>ddcdx.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\r</span>ddfpt.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bsix.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bdebug.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bcommon.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bpp.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bcpage.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\h</span>bwin.lib"</span> >> msvc.tmp<br /><br />rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br /><br />rem echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\r</span>ddads.lib"</span> >> msvc.tmp<br />rem echo <span style="color: #ff0000;">"%hdirl%<span style="color: #000000;">\a</span>ce32.lib"</span> >> msvc.tmp<br /><br />echo <span style="color: #ff0000;">"%CC_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\l</span>ibcmt.lib"</span> >> msvc.tmp<br /><br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\k</span>ernel32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\u</span>ser32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\g</span>di32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\w</span>inspool.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\c</span>omctl32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\c</span>omdlg32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\a</span>dvapi32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\s</span>hell32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\o</span>le32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\o</span>leaut32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\u</span>uid.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\o</span>dbc32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\o</span>dbccp32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\i</span>phlpapi.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\m</span>pr.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\v</span>ersion.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\w</span>sock32.lib"</span> >> msvc.tmp<br />echo <span style="color: #ff0000;">"%SDK_DIR%<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\m</span>simg32.lib"</span> >> msvc.tmp<br /><br /><span style="color: #00C800;">IF</span> EXIST <span style="color: #ff0000;">"%1.res"</span> echo <span style="color: #ff0000;">"%1.res"</span> >> msvc.tmp<br /><br /><span style="color: #ff0000;">"%CC_DIR%<span style="color: #000000;">\b</span>in<span style="color: #000000;">\l</span>ink"</span> @msvc.tmp /NODEFAULTLIB:<span style="color: #000000;">LIBC</span>.LIB /nologo /subsystem:<span style="color: #000000;">windows</span> /force:<span style="color: #000000;">multiple</span> /NODEFAULTLIB:<span style="color: #000000;">libcmt</span><br /><br /><span style="color: #00C800;">IF</span> ERRORLEVEL <span style="color: #000000;">1</span> GOTO LINKERROR<br /><br />ECHO * Application successfully built *<br /><br />%<span style="color: #000000;">1</span><br /><br />GOTO EXIT<br /><br />ECHO<br /><br />rem delete temporary files<br /><br />@del %<span style="color: #000000;">1</span>.c<br /><br />@del msvc.tmp<br /><br />:<span style="color: #000000;">COMPILEERROR</span><br /><br />@type comp.log<br /><br />ECHO * Compiling errors *<br /><br />GOTO EXIT<br /><br />:<span style="color: #000000;">LINKERROR</span><br /><br />ECHO * Linking errors *<br /><br />GOTO EXIT<br /><br />:<span style="color: #000000;">SINTAX</span><br /><br />ECHO SYNTAX: <span style="color: #000000;">Build</span> <span style="color: #000000;">&#91;</span>Program<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#123;</span>-- No especifiques la extensi¢n PRG<br /><br />ECHO <span style="color: #000000;">&#123;</span>-- Don<span style="color: #ff0000;">'t specify .PRG extension<br /><br />GOTO EXIT<br /><br />:NOEXIST<br /><br />ECHO The specified PRG %1 does not exist<br /><br />:EXIT<br /></span></div>[/code:1n7pfum7]
uuid.lib
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=38922&start=0">viewtopic.php?f=3&t=38922&start=0</a><!-- l -->
v/h gradient
the function GradientFill is a vertical gradient or Horizontal gradient ? Or exist another function for create a gradient vertical or Horiz ?
v/h gradient
Hello Silvio, as far as I know, [color=#FF0000:8gyy3tkg]GradientFill [/color:8gyy3tkg]is used for Gradient-painting. All together : [code=fw:8gyy3tkg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />...<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> W_GRAD<span style="color: #000000;">&#40;</span> oWnd, hDC, .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// ACTIVATE DIALOG oDlg CENTERED ;</span><br /><span style="color: #B900B9;">// ON PAINT W_GRAD( oDlg, hDC, .T. ) </span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// --------- GRADIENT  ( Window or Dialog ) ---------------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> WIN_GRAD<span style="color: #000000;">&#40;</span> oWnd, hDC, lDirect <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aGrad := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> W_MOVE, W_COLOR1, W_COLOR2 <span style="color: #000000;">&#125;</span>, ;<br />                          <span style="color: #000000;">&#123;</span> W_MOVE, W_COLOR2, W_COLOR1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>         <br /><br /><span style="color: #B900B9;">// W_MOVE = Color-Position 0 - 1</span><br /><span style="color: #B900B9;">// W_COLOR1 = 1. Gradient-Color</span><br /><span style="color: #B900B9;">// W_COLOR2 = 2. Gradient-Color</span><br /><br /><span style="color: #B900B9;">// lDirect .T. = horizontal, lFDirect .F. = vertical Direction</span><br />GradientFill<span style="color: #000000;">&#40;</span> hDC,  <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oWnd:<span style="color: #000000;">nHeight</span>, oWnd:<span style="color: #000000;">nWidth</span>, aGrad, lDirect <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ---- Brush - Function, used for  Folders -------------------</span><br />...<br />---<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> SetImages<span style="color: #000000;">&#40;</span>oDlg,oFld<span style="color: #000000;">&#41;</span>, ; <span style="color: #B900B9;">// Folder-Tab-Bitmaps</span><br />      GradBrush<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>, <span style="color: #000000;">14853684</span>, <span style="color: #000000;">16314573</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;">16314573</span>, <span style="color: #000000;">14853684</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, .T. <span style="color: #000000;">&#41;</span> ; <br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> SetFoldGrad<span style="color: #000000;">&#40;</span> oFld, .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//-------------------------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GradBrush<span style="color: #000000;">&#40;</span> oDlg, aGrad, lDirect <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hDC, hBmp, hBmpOld, oBrush<br /><br /><span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span><br />      hDC = CreateCompatibleDC<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      hBmp = CreateCompatibleBitMap<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, oDlg:<span style="color: #000000;">nWidth</span>, oDlg:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span><br />      hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmp <span style="color: #000000;">&#41;</span><br />      GradientFill<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">nHeight</span>, oDlg:<span style="color: #000000;">nWidth</span>, aGrad, lDirect<span style="color: #000000;">&#41;</span><br />      DeleteObject<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />      oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> = hBmp<br />      oDlg:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> = CreatePatternBrush<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span> <br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmpOld <span style="color: #000000;">&#41;</span><br />      oDlg:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span>   <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// --------------------------------------------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> SetFoldGrad<span style="color: #000000;">&#40;</span> oFld, lDirect <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">LOCAL</span> n, oDlg <br />    <br /><span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> oFld:<span style="color: #000000;">aDialogs</span> <span style="color: #000000;">&#41;</span> <br />   oDlg = oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>     <br />   oDlg:<span style="color: #000000;">bPainted</span> = <span style="color: #000000;">&#123;</span> | hDC | GradientFill<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oDlg:<span style="color: #000000;">nHeight</span>, ;<br />   oDlg:<span style="color: #000000;">nWidth</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.50</span>, <span style="color: #000000;">14853684</span>, <span style="color: #000000;">16314573</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;">16314573</span>, <span style="color: #000000;">14853684</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, lDirect <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span>    <br /><br /><span style="color: #B900B9;">// -----------------------------------------</span><br /><br /><span style="color: #00C800;">function</span> SetImages<span style="color: #000000;">&#40;</span>oDlg, oFld<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oImageList<br />   <br /><span style="color: #0000ff;">DEFINE</span> IMAGELIST oImageList <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">16</span>, <span style="color: #000000;">16</span><br />   <br />oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">&#40;</span> TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"show"</span>,,   oDlg <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>    <br />oImageList:<span style="color: #000000;">AddMasked</span><span style="color: #000000;">&#40;</span> TBitmap<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Define</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"show"</span>,,   oDlg <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br /><span style="color: #B900B9;">// for each Tab</span><br /><br />oFld:<span style="color: #000000;">SetImageList</span><span style="color: #000000;">&#40;</span> oImageList <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span>   <br /><br /> </div>[/code:8gyy3tkg] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
vTackBar
Amigos, Quiero bajarme la clase vtaskbar, desde donde puedo bajarla, he tratado de buscarla por el google pero no la consigo. Angel quise enviarte un mail pero me rechaza la direccion.
vTaskBar on the left MDIChild Window on the Right
Hi everyone; I'm currently using a Vertical SButtonBar of Manuel Mercado to show often used shortcuts to open mdi child windows that contain browses. I'd like to change that to use a VTaskBar: Here is how it looks now: [img:cabw9t26]http&#58;//ssfl&#46;dynalias&#46;com/temp_files/2010-09-27_0950&#46;png[/img:cabw9t26] The problem with using a vTaskBar, or any other control for that matter, is that an MDI child window could potentially be dragged over the control even when using a splitter. Like this: [img:cabw9t26]http&#58;//ssfl&#46;dynalias&#46;com/temp_files/2010-09-27_0954&#46;png[/img:cabw9t26] Any ideas on how to avoid? Reinaldo.
vTaskBar on the left MDIChild Window on the Right
Hi Reinaldo, Don't use MDI windows. Use a panel instead. Make your app into a SDI (single document interface) similar to Outlook. MDI windows are a nightmare for both users and programmers. Regards, James
vTaskBar on the left MDIChild Window on the Right
James; Hi. Yes, I know what you mean and time has proven your point. I must admit, I sort of expected that answer from you. I remember back when MDI idea was first introduced, we all wanted to do mdi regardless of the confusion it causes to the end user. We now want to stay away for some exceptions. However, this app has been out there and working for quite a few years now and allows mdis for browsing of a few tables and using the buttons on the bar you switch focus from one table to another. I'm not sure that I want to re-do it so that you must close one browse to open a different one. I was kind of hoping that an mdi child wnd could not be dragged outside a given parent window region. That would allow me to draw a more visually appealing control, such as a VTaskBar, on the Left instead of the regular window taskbar. Well, guess I'll keep the vertical obar control for now. Reinaldo.
vTaskBar on the left MDIChild Window on the Right
Reinaldo, [quote:2pki5j9k]I'm not sure that I want to re-do it so that you must close one browse to open a different one.[/quote:2pki5j9k] You don't have to close and open the browses. Just hide() and show() the panels--basically the same you do with MDI windows. I can't think of anything you can do with MDI that you can't do with SDI. You will have to try harder to find something (grin). James
vTaskBar on the left MDIChild Window on the Right
Here is a video of an SDI app made with FW (many years ago). [url:2qg3outk]http&#58;//www&#46;mediafire&#46;com/?b7ss8zqjar8nc35[/url:2qg3outk] Regards, James
vTaskBar on the left MDIChild Window on the Right
Thank you for the link. Looks good. I'm not saying it is impossible to imitate mdi with sdi or even undesirable. I'm saying it is already working with mdi. I don't like to go back and change code that is working unless there is a bug to be fixed AND your changes will please the customers. I call this my KIS (keep it simple) principle or my stay away from TPS ("The Perfectionist Syndrome). <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Thank you very much, Reinaldo.
vTaskBar on the left MDIChild Window on the Right
Reinaldo, I understand your reluctance to change. Please explain more about what you are doing now. You say you are using sbuttonbar now without a problem? And you want to use VTaskbar? What is VTaskbar, is that a FW class? I can't find it. You can any control has the problem, but you are using sbuttonbar. Is that not a control? Regards, James
vTaskBar on the left MDIChild Window on the Right
Good question. TsButton, TsButtonBar... are classes contributed by Manuel Mercado. Very good work! TsButtonBar is analogous to FW BottonBar which is a standard windows control. It is usually drawn horizontally as the first control on the window. I draw it vertically on the main parent window only to avoid having two horizontal button bars next to each other, albeit one belongs to the parent and the other to the child. Again, I know that's why you speak of sdi and I agree. If the world was perfect... <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> That I know of, the windows bar (as in oWnd:obar), is the only control that you can't move a window over, thus hiding the control. VtaskBar is analogous to the FW class Explorer bar? (I think that's what it is called). I can't remember if VtaskBar was a Canal Five contribution. I will probably end up using the explorer bar, but happen to refer to it as VTaskBar (as in Vertical bar with Tasks). Checkout vTaskBar in action: [img:2wwvco8t]http&#58;//ssfl&#46;dynalias&#46;com/temp_files/2010-09-28_1558&#46;png[/img:2wwvco8t] BTW - I bet I can guess the weather in SD. 66 degrees F on a clear blue sky. Reinaldo.
vTaskBar on the left MDIChild Window on the Right
Reinaldo, Now I remember VTaskBar--I have a copy of it somewhere. I have used Manuel's TSButtons and bar too. Below is sample code of how to simulate an SDI interface using MDI. Of course, this would also require some modification of your code--perhaps less than converting to SDI, but you would have to do both to determine which was less. You would have been correct about the weather until two days ago. We are having a record heatwave. All summer it has been unseasonably cool, but yesterday it was 113F/45C in our East county areas and it was 107F/42C where I was at noon. Right now here it is only 81F/27C. I have the AC on but I have only used it three times this summer. Saturday we spent the entire day at the beach on Coronado where the weather was really nice in spite of the heat elsewhere. Ah, I love San Diego... Regards, James [code=fw:1kfcnr8m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose : Simulate a SDI interface using MDI<br />App &nbsp; &nbsp; :<br />Author &nbsp;: James Bott, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><br />Company : Intellitech, gointellitech.com<br />Date &nbsp; &nbsp;: 09/28/10 12:50:51<br />Language: Fivewin Harbour/xHarbour<br />Notes &nbsp; :<br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">mdi</span> <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Simulate SDI with MDI"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #0000ff;">Init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> <span style="color: #0000ff;">Init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBar, oBar2, oWnd, oWnd2<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">of</span> wndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">action</span> oWnd:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">action</span> oWnd2:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">goLeft</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">mdichild</span> ;<br />&nbsp; &nbsp; &nbsp;nominimize nosysmenu;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_BLUE ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> wndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">maximized</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd2 <span style="color: #0000ff;">mdichild</span> ;<br />&nbsp; &nbsp; &nbsp;nominimize nosysmenu;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_RED ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> wndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar2 <span style="color: #0000ff;">of</span> oWnd2 3d<br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd2 <span style="color: #0000ff;">maximized</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1kfcnr8m]
vTaskBar on the left MDIChild Window on the Right
Reinaldo, I had written my sample code before I read your last message. If you use the Explorerbar class you don't need either MDI child widnows or a panel. You can put browses directly on the window. However, if you want to have buttonbars for each browse then you would have to use a panel. I have not tried MDI child windows with the Explorerbar. Regards, James
vTaskBar on the left MDIChild Window on the Right
Reinaldo, OK, below is an Explorerbar with MDI. There is a problem--the main window menu shows the Window menu allowing users to mess up the maximized mdi child windows. You would either have to not have a main window menu or you would have to modify the FW menu source to keep the mdi child windows from showing up on the menu. You don't have this issue with SDI. Regards, James [code=fw:1svdy32v]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose : Test ExplorerBar with MDI <br />Author &nbsp;: James Bott, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><br />Company : Intellitech, gointellitech.com<br />Date &nbsp; &nbsp;: 09/28/10 13:53:39<br />Language: Fivewin Harbour/xHarbour<br />Notes &nbsp; :<br /><br />*/</span><br /><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"color.ch"</span><br /><br /><span style="color: #00C800;">static</span> oWnd1, oWnd2<br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test Explorerbar with MDI Windows"</span> <span style="color: #0000ff;">MDI</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">of</span> oWnd 3d<br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oLeft</span>:= buildExbar<span style="color: #000000;">&#40;</span>oWnd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #0000ff;">Init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> <span style="color: #0000ff;">Init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBar, oBar2<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd1 <span style="color: #0000ff;">mdichild</span> ;<br />&nbsp; &nbsp; &nbsp;nominimize nosysmenu;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_BLUE ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> wndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd1 <span style="color: #0000ff;">maximized</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd2 <span style="color: #0000ff;">mdichild</span> ;<br />&nbsp; &nbsp; &nbsp;nominimize nosysmenu;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_RED ;<br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">of</span> wndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar2 <span style="color: #0000ff;">of</span> oWnd2 3d<br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd2 <span style="color: #0000ff;">maximized</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> buildExbar<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oExBar, oPanel1<br /><br />&nbsp; &nbsp;oExBar = TExplorerBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">150</span>,<span style="color: #000000;">400</span>,oWnd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPanel1 = oExBar:<span style="color: #000000;">AddPanel</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\p</span>eople.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">lSpecial</span> = .T.<br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Providers"</span>, <span style="color: #000000;">&#123;</span>|| oWnd1:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\a</span>dditem.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPanel1:<span style="color: #000000;">AddLink</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Patients"</span>, <span style="color: #000000;">&#123;</span>|| oWnd2:<span style="color: #000000;">setFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\c</span>opy.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> oExBar<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:1svdy32v]
vTaskBar on the left MDIChild Window on the Right
Reinaldo, This is a crude fix for the Windows menu problem in my previous code example. Changing these two lines to maximize the MDI child window before setting focus, will fix a screen that has been messed up by the user selecting to cascade, split vertically, or horizontally the open windows. Regards, James oPanel1:AddLink( "Providers", {|| [b:22ljb02p]oWnd1:maximize(), [/b:22ljb02p]oWnd1:setfocus()}, "c:\fwh\bitmaps\16x16\additem.bmp" ) oPanel1:AddLink( "Patients", {|| [b:22ljb02p]oWnd2:maximize(),[/b:22ljb02p] oWnd2:setFocus()}, "c:\fwh\bitmaps\16x16\copy.bmp" )
vTaskBar on the left MDIChild Window on the Right
James; Thank you very much. I really like the idea. You make it look so simple, I have no excuse not to try it. Reinaldo.
vTaskBar on the left MDIChild Window on the Right
Reinaldo, I feel obligated to say that SDI takes about the same amount of code as the MDI example. So if you are thinking of migrating to this MDI example then think twice about migrating to SDI. With SDI you won't have the windows control issues previously discussed. You will also be able to add tabs, trees, toolbars, splitters, and other such controls. Since I don't work with MDI I don't know if you can use all these with MDI windows. To be fair, I am not against MDI windows per se. It is just that the typical MDI interface requires too much overhead window manipulation by the user, so that style of interface I am not a fan of. IF, an interface can be designed using MDI Windows that looks like a typical SDI design, then that changes the picture. But then that would really be a SDI interface (just constructed using MDI windows). I am afraid that to do this would require a fair amount of changes to the FWH source code, however. And I just don't see any advantages. Regards, James
vTaskBar on the left MDIChild Window on the Right
Explorerbar-sample, complete without MDI A Buttonclick closes the Dialog on Screen and opens the selected one. I can format / resize the different pannels, to create Gradient-backgrounds. I could use any Brush as well. Menue 4 still shows a < normal > Explorerbar-Pannel. The Main-Window ( no Dialog activated ) [img:to3hn4ff]http&#58;//www&#46;pflegeplus&#46;com/pictures/expl1&#46;jpg[/img:to3hn4ff] Dialog 1 activated with Button 1 [img:to3hn4ff]http&#58;//www&#46;pflegeplus&#46;com/pictures/expl2&#46;jpg[/img:to3hn4ff] Button 2 closes Dialog 1 and opens Dialog 2 [img:to3hn4ff]http&#58;//www&#46;pflegeplus&#46;com/pictures/expl3&#46;jpg[/img:to3hn4ff] Radio- and Checkbox ( only works with SBUTTON from Manuel Mercado ) [img:to3hn4ff]http&#58;//www&#46;pflegeplus&#46;com/pictures/expl4&#46;jpg[/img:to3hn4ff] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
vTaskBar problem
I get this error: vtaskbar.lib(VMenu.obj) : error LNK2019: riferimento al simbolo esterno ___ftoll non risolto nella funzione _HB_FUN_BMPTOGRAY compiling with vTaskBar.lib ("riferimento al simbolo esterno" is the italian translate of "Unresolved external symbol") Ideas? I've read about a similar control integrated in fivewin, but i don't remember the name <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
vTaskBar problem
Hello, The similar control is ExplorerBar, but the look is not the same. Regards,
vTaskBar problem
Thank you ukservice, i'll try explorerbar.
vTitle in the upcoming FWH release. Antonio ?
Hi, just to know if could be possible to include in the upcoming fwh version a "vtitle" solution as standard FWH class. Something like this <!-- m --><a class="postlink" href="http://www.viaopen.es/images/screen/vcw95.jpg">http://www.viaopen.es/images/screen/vcw95.jpg</a><!-- m --> Thanks in advance
vTitle in the upcoming FWH release. Antonio ?
Marco, I made a class as it .... [img:2p3aakwc]http&#58;//img353&#46;imageshack&#46;us/img353/2516/tpainttileeg8&#46;png[/img:2p3aakwc] @ 2,10 PANELTITLE oTitle OF oDlg ; PROMPT "Customer"; FONT oFont; SIZE 150,30; COLOR CLR_BLACK, CLR_WHITE; COLORTEXT CLR_WHITE; BITMAP "Test.bmp"; TEXTALIGN DT_VCENTER+DT_SINGLELINE; IMAGEALIGN DT_RIGHT+DT_VCENTER <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=10716&hilit=painttitle">viewtopic.php?f=3&t=10716&hilit=painttitle</a><!-- l -->
vTitle in the upcoming FWH release. Antonio ?
Another class named TTitle which belongs to the same category. Just for your information. [url=http&#58;//img189&#46;imageshack&#46;us/i/ttitle&#46;jpg/:16m40qsk][img:16m40qsk]http&#58;//img189&#46;imageshack&#46;us/img189/5715/ttitle&#46;jpg[/img:16m40qsk][/url:16m40qsk] Regards Anser
vTitle in the upcoming FWH release. Antonio ?
Anserkk, YOU class support 2007, trasparent, set align text, horizontal and vertical gradient , action buttons, roundrect image ?
vacations for some weeks / vacaciones unas semanas
Dear friends, I will be the next two or three weeks on vacations. It has been a hard year for me, and lot of work too. So now I need to disconnect, relax and recharge batteries <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I will be monitoring my email and partially the forums. If I don't answer you it will be because I am not connected. But surely I will be around as usual <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Sales will be attended regularly. So feel free to buy your upgrades, etc. as usual Queridos amigos, Las próximas dos ó tres semanas estaré de vacaciones. Ha sido un año duro para mi y tambien mucho trabajo. Ahora necesito desconectar, relajarme y recargar las baterias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Estaré revisando mi correo y parcialmente los foros. Si no os respondo es porque no estoy conectado. Pero seguramente estaré por aqui de vez en cuando casi como de costumbre <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> las ventas se atenderán de forma normal. Asi que podeis adquirir vuestras actualizaciones, etc. como de costumbre.
vacations for some weeks / vacaciones unas semanas
Antonio, disfruta de esos días de merecido descanso. Carga pilas, relájate, disfruta. Un abrazo,
vacations for some weeks / vacaciones unas semanas
Felix, gracias, lo que pasa es que yo con el ordenador disfruto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->