topic
stringlengths
1
63
text
stringlengths
1
577k
Bitácora de Sistema
[quote="joseluisysturiz":1jaekhrw] Francisco, aprovechando lo que publicas, por casualidad tendras la creacion del MENU pero dinamicamente, es decir, dependiendo del nivel del usuario, entonces se agreguen unas opciones y otras no, estas ya creadas en una TABLA o DBF..? gracias, saludos.. [/quote:1jaekhrw] JoseLuis, mira si esto es a lo que te refieres: En tabla usuarios estan los campos logicos: facturas,invent,etc Despues de autorizar entrada al sistema, chequear a que modulos tiene acceso Luego en los ItemMenus establecer la condicion [code=fw:1jaekhrw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> lAutoriza <br />&nbsp; aModulosAcc:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> &nbsp; &nbsp;<span style="color: #B900B9;">//static</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> Usuarios->facturas=.t.<br />&nbsp; &nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aModulosAcc,<span style="color: #ff0000;">"FACTURACION"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span> <br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> Usuarios->Invent=.t.<br />&nbsp; &nbsp; &nbsp; aadd<span style="color: #000000;">&#40;</span>aModulosAcc,<span style="color: #ff0000;">"INVENTARIO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">Return</span> lAutoriza<br /><br /><span style="color: #B900B9;">//--------------------------//Controla si tiene acceso o no a determinado modulo</span><br /><span style="color: #00C800;">Function</span> ModuloAcces<span style="color: #000000;">&#40;</span>cModulo<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> lRet:=.f., n:=<span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span>aModulosAcc<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Return</span> .t.<br /><span style="color: #00C800;">endif</span><br />&nbsp;<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>aModulosAcc<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">if</span> aModulosAcc<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> = upper<span style="color: #000000;">&#40;</span>cModulo<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;lRet:=.t.<br />&nbsp; &nbsp; &nbsp;exit<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">next</span><br /><span style="color: #00C800;">Return</span> lRet<br />&nbsp;</div>[/code:1jaekhrw] En la creacion del menu se puede hacer: (con esto apareceran, o no, los items del menu Por supuesto faltaría profundizar mas por cada opcion de cada sub-item (lo he dejado por el momento) [code=fw:1jaekhrw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> ModuloAcces<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Facturas"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Facturacion"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Grabar &Facturas"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"etc"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> ModuloAcces<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"inventario"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Inventario"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Grabar &Entradas (Compras y otros)"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Grabar &Salidas (Salidas diversas)"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:1jaekhrw] Saludos.
Bitácora de Sistema
JoseLuis[quote:17sz376r]=En relacion a lo que necesita el colega, es guardar las acciones del usuario durante su estadia en el sistema, algo como un diario, lo que le llamamos..BITACORA DE USUARIO...[/quote:17sz376r] Upssssss.. "Se te fué la onda" (como decimos aqui) José: Efectivamente, uso una function llamada proceso() donde envío lo que hizo el usuario. Solo la uso para modificaciones o borrados. Ejemplo, despues de comparar los datos pertinentes, si estos son diferentes hago lo siguiente: if cDescrip <> cDescripAnter Proceso(cNomUser+ " Hizo cambios en xxx") //cNomUser es static endif [code=fw:17sz376r]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//------------------------</span><br /><span style="color: #00C800;">Function</span> Proceso<span style="color: #000000;">&#40;</span>cData<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cOldSele:=<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cFile<br /><span style="color: #00C800;">local</span> nAnoProceso:=Val<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"config"</span>,<span style="color: #ff0000;">"AnoProceso"</span>,<span style="color: #ff0000;">"0"</span>,cIniFile<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cBitacora:=GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"config"</span>,<span style="color: #ff0000;">"bitacora"</span>,<span style="color: #ff0000;">"S"</span>,cIniFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cEquipo:=GetEnv<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"COMPUTERNAME"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cUserWind:=GetEnv<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"USERNAME"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cLogAnual<br /><br />cData:=cData+<span style="color: #ff0000;">" &nbsp;"</span>+Alltrim<span style="color: #000000;">&#40;</span>cEquipo<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"_"</span>+cUserWind<br /><br />&nbsp;<span style="color: #00C800;">if</span> upper<span style="color: #000000;">&#40;</span>cBitacora<span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">"S"</span><br />&nbsp; &nbsp; CrlProceso<span style="color: #000000;">&#40;</span>cData,nAnoProceso<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #B900B9;">//*******</span><br />&nbsp;<span style="color: #B900B9;">//limpiar Logfile cada año</span><br />&nbsp;<span style="color: #00C800;">if</span> <span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <> nAnoProceso<br />&nbsp; &nbsp;cLogAnual:=cExeName+<span style="color: #0000ff;">Substr</span><span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>nAnoProceso,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FRename<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>cPathDef<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>+cExeName,(cPathDef)+"</span>\<span style="color: #ff0000;">"+cLogAnual )<br />&nbsp; &nbsp;CopyFiles( {(cPathDef)+"</span>\<span style="color: #ff0000;">"+cLogAnual},{ GetWinDir()+"</span>\<span style="color: #ff0000;">"+cLogAnual} ) &nbsp;//DOBLE CONTROL<br />&nbsp; &nbsp;WritePProString("</span>config<span style="color: #ff0000;">","</span>AnoProceso<span style="color: #ff0000;">",Str(Year(date())),cIniFile)<br />&nbsp;endif<br /><br />&nbsp;LogFile( cExeName, {cData} )<br />//*******<br /><br />RETURN NIL<br /></span></div>[/code:17sz376r] Saludos.
Bitácora de Sistema
José, se me quedaba la funcion: [code=fw:2b4xft4g]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//---------------------------Escribir en un fichero txt</span><br /><span style="color: #00C800;">Function</span> CrlProceso<span style="color: #000000;">&#40;</span>cCadena,nAnoProceso<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cFile := <span style="color: #000000;">&#40;</span>cPathDef<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\B</span>itaco.txt"</span>, nHand, cBitacAno<br /><span style="color: #00C800;">local</span> cCad:=Dtoc<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">": "</span>+cCadena<br /><span style="color: #00C800;">local</span> FO_READWRITE:=<span style="color: #000000;">2</span>, FO_SHARED:=<span style="color: #000000;">64</span> , FS_END:=<span style="color: #000000;">2</span>     <span style="color: #B900B9;">//Fileio.ch</span><br /><br /> <span style="color: #B900B9;">//limpiar Bitacora cada año</span><br /><span style="color: #00C800;">if</span> <span style="color: #0000ff;">Year</span><span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <> nAnoProceso<br />   cBitacAno:=<span style="color: #ff0000;">"BITC"</span>+<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>nAnoProceso,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />   CopyFiles<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>cFile<span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#40;</span>cPathDef<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>+cBitacAno+"</span>.txt<span style="color: #ff0000;">"} )<br />   Ferase(cFile)<br />   WritePProString("</span>config<span style="color: #ff0000;">","</span>AnoProceso<span style="color: #ff0000;">",Str(Year(date())),cIniFile)<br />endif<br /><br />if !file(cFile)<br />  nHand := FCreate( cFile )       // creamos el archivo <br />  FWrite(nHand, cCad + CRLF+"</span><span style="color: #ff0000;">")   // escribimos en el archivo<br />  FClose(nHand)                   // cerramos el fichero<br />else<br />  nHand := FOpen( cFile, FO_READWRITE + FO_SHARED ) // abrimos  el fichero lect-escrit-compartido<br />  FSeek(nHand, 0, FS_END)  // nos colocamos al final del fichero<br />  FWrite(nHand, cCad + CRLF+"</span><span style="color: #ff0000;">")      // escribimos en el fichero<br />  FClose(nHand)            // cerramos el fichero<br />endif<br /><br />  //WinExec("</span>NotePad.exe <span style="color: #ff0000;">"+cFile)  <br />  SysRefresh()<br />Return nil<br /></span></div>[/code:2b4xft4g] Saludos.
Bitácora de Sistema
Francisco, revisare lo del los menu, lo mas importante es como dices, que active o no los sub-menu, estoy pensando en hacer algo como un TREE que las principales sean los titulos del menu y las ramas..cada sub-menu y al final le hacerle un check de activar o no al igual q las cabezeras, si la cabezera tien false..entonces no activo los sub-menu, crei seria algo sencillo y practico...lo que me tiene un poco perdido es crear las cabezeras y sub-menus dinamicamente desde un array que lo cargaria desde la tabla o dbf, si termino algo lo camparto haber si lo vamos mejorando para todos...o si alguien tiene algo que quiera compartir...sera bien recibido..gracias..saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Bitácora de Sistema
[code=fw:23or895r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />Creación <span style="color: #0000ff;">menu</span> en forma dinámica desde una tabla<br /><br />estructura de la tabla <span style="color: #0000ff;">menu</span>.dbf<br /><br />- ccodigousu = código del usuario para filtrar su <span style="color: #0000ff;">menu</span><br />- ccodigomen <span style="color: #000000;">&#40;</span>character <span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>= código del <span style="color: #0000ff;">menu</span> en estructura tipo árbol :  <br />     primer nivel <span style="color: #000000;">01</span>,<span style="color: #000000;">02</span>,<span style="color: #000000;">03</span>,etc<br />        segundo nivel <span style="color: #000000;">0101</span>, <span style="color: #000000;">0102</span>,<span style="color: #000000;">0103</span>... etc<br />            tercer nivel  <span style="color: #000000;">010101</span>, <span style="color: #000000;">010102</span>,<span style="color: #000000;">010103</span>...etc<br />- cnombremen = nombre de la opción del <span style="color: #0000ff;">menu</span><br />- lActOpcMen <span style="color: #000000;">&#40;</span>lógico<span style="color: #000000;">&#41;</span>= activa o desactiva opción del <span style="color: #0000ff;">menu</span> para el usuario filtrado<br /> - cFunEjeMen = <span style="color: #00C800;">function</span> a ejecturar según opcion<br /><br /><span style="color: #B900B9;">// el llamado desde la window principal</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">46</span>, <span style="color: #000000;">128</span>                           ;<br />      <span style="color: #0000ff;">TITLE</span> HB_OEMTOANSI<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ZERUS. Sistema de Gesti¢n Empresarial"</span><span style="color: #000000;">&#41;</span>    ;<br />      <span style="color: #0000ff;">BRUSH</span> oBrush                                                   ;<br />      <span style="color: #0000ff;">ICON</span> oIco                                                      ;<br />      <span style="color: #0000ff;">MENU</span>  MenuPrincipal<span style="color: #000000;">&#40;</span>oWnd<span style="color: #000000;">&#41;</span>                                      ;<br />      MENUINFO <span style="color: #000000;">3</span>                                                     ;<br />      <span style="color: #0000ff;">MDI</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MenuPrincipal<span style="color: #000000;">&#40;</span>oWnd,cCodUsu<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cAliAct := <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//INDEX ON CCODIGOMEN TAG ORDER1 TO &(cPatSis+"\menu.cdx")</span><br />lUsaTab<span style="color: #000000;">&#40;</span>cPatSis+<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>, 'MENU.Dbf','MEN','MENU.CDX',.F.,NIL,'DBFCDX')<br /><br />   SET FILTER TO MEN->cCodigoUsu == cCodUsu<br /><br />   SELECT MEN<br />   DBSETORDER(1)<br />   GO TOP<br /><br />   MENU oMenu 2007<br /><br />       DO WHILE MEN->( !EOF() )<br /><br />          HB_IDLESTATE()<br /><br />          IF MEN->lActOpcMen<br />             MENUITEM HB_OEMTOANSI( ALLTRIM(MEN->cNombreMen) )<br />          ELSE<br />             MENUITEM HB_OEMTOANSI( ALLTRIM(MEN->cNombreMen) ) DISABLED<br />          ENDIF<br /><br />          MENU<br />              MENUX(1)<br />          ENDMENU<br /><br />       ENDDO<br /><br />   ENDMENU<br /><br />RETURN<br /><br /><br />//**************************************************************************************<br /><br />FUNCTION MENUX( nNroNiv )<br /><br />   LOCAL bBloEje, nNivAct<br /><br />   nNivAct := SUBS( MEN->cCodigoMen, 1, nNroNiv * 2 )<br />   DO WHILE MEN->( !EOF() ) .AND. SUBS( MEN->cCodigoMen,1,nNroNiv * 2 ) == nNivAct<br /><br />      IF LEN(ALLTRIM(MEN->cCodigoMen)) > nNroNiv * 2<br />         cFunEje := MEN->cFunEjeMen<br />         cNomOpc := HB_OEMTOANSI(MEN->cNombreMen)<br />         cRegAct := ALLTRIM(MEN->cCodigoMen)<br /><br />         MEN->( DBSKIP() )<br />         cRegSig := SUBS( MEN->cCodigoMen,1,( nNroNiv + 1 ) * 2 )<br /><br />         IF cRegAct == cRegSig<br /><br />            IF MEN->lActOpcMen  // cRegAct<br />               MENUITEM ( ALLTRIM(cNomOpc) )<br />            ELSE<br />               MENUITEM ( ALLTRIM(cNomOpc) ) DISABLED<br />            ENDIF<br /><br />            SELECT MEN<br />            SKIP -1<br />            MENU<br />              MenuX( nNroNiv + 1 )<br />            ENDMENU<br /><br />         ELSE<br /><br />            bBloEje := &( "</span><span style="color: #000000;">&#123;</span>||<span style="color: #ff0000;">" + IF( EMPTY( cFunEje ), "</span>.T.<span style="color: #ff0000;">", ALLTRIM( cFunEje ) ) + "</span><span style="color: #000000;">&#125;</span><span style="color: #ff0000;">" )<br /><br />            IF MEN->lActOpcMen<br />               MENUITEM ( ALLTRIM(cNomOpc) ) ACTION ( bBloEje )  BLOCK bBloEje<br />            ELSE<br />               MENUITEM ( ALLTRIM(cNomOpc) ) DISABLED ACTION ( bBloEje )  BLOCK bBloEje<br />            ENDIF<br /><br />         ENDIF<br />      ELSE<br />         MEN->( DBSKIP() )<br />      ENDIF<br /><br />   ENDDO<br /><br />RETURN  NIL<br /><br /><br />johnson russi<br /><br /></span></div>[/code:23or895r]
Bitácora de Sistema
muchas muchas gracias por sus ideas y aportes.. los comenzaré a analizar y luego les cuento como va quedando .. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> muy amables todos!!!! Realmente me estan ayudando mucho!! Saludos,
Black Background on Window / Dialog
Has anybody seen this type of behaviour in your FiveWin app. Using Bcc7: [img:9uc5our1]http&#58;//www&#46;matrixcomputer&#46;com/sharedimages/blackscreen&#46;jpg[/img:9uc5our1] Seems to happen after user has been utilizing the program for a while. Doesn't happen on all workstations. Thanks in advance... Byron,
Black Background on Window / Dialog
One of the reasons this could happen is when the brush used as background is deleted/released prematurely.
Black Screen of Death.
I have a fairly large app that sometimes the area of the MDI Frame turns black. Is this some sort of a resource leak in my app, any suggestions on what to check for, or how to remedy. Bcc7 Thanks, Byron ...
Black Screen of Death.
Byron I presume this happens randomly ... I would put a few well placed oWndMdi:Refresh() and perhaps accompanied by a SysReFresh() after coming out of some of your large ( add\edit ) modules .. after you close your tables ... especially if you are closing ADO tables .. and if they are Ado tables .. make sure you destroy the oRs Object .... oRs := nil ( even if oRs is a Local variable ) .. then oWndMdi:ReFresh(),SysReFresh() Rick Lipkin
Black Screen of Death.
Question, has GRADIENT in window?
Black Screen of Death.
No to the Gradiant in the background. Rick, thanks sounds very reasonable. It does use ADO everywhere.
Black Screen of Death.
Byron, Please also check the consume of GDI objects in your app: [url:2zbpwy6c]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_setresdebug[/url:2zbpwy6c]
Black Screen of Death.
How do you make sure they are disposed of properly? Just launch my program, and then exit , and I get: CheckRes.Txt file... 09/09/17 11:23:08: C:\Datafile\tmsbcc\tmsbcc.exe -- FONT,1846159188,TMDIFRAME:GETFONT(3122)->TMDICLIENT:GETFONT(3099)->TMDICLIENT:NEW(147)->TMDIFRAME:NEW(178)->MAIN(106) 09/09/17 11:23:08: C:\Datafile\tmsbcc\tmsbcc.exe -- BMP,-1476060091,TMDIFRAME:HANDLEEVENT(0)->_FWH(3602)->WINRUN(0)->TMDIFRAME:ACTIVATE(1020)->MAIN(119) 09/09/17 11:23:08: C:\Datafile\tmsbcc\tmsbcc.exe -- ==================================================================================================== End of CheckRes.txt file... How do I get rid of these? Byron ...
Black Screen of Death.
Don't worry about those as FWH will clean them <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Black Screen of Death.
[quote="byron.hopp":3tf89m35]I have a fairly large app that sometimes the area of the MDI Frame turns black. Is this some sort of a resource leak in my app, any suggestions on what to check for, or how to remedy. Bcc7 Thanks, Byron ...[/quote:3tf89m35] What version of FWH are you using? Randal
Black Screen of Death.
Fivewin for Harbour 15.10
Black Screen of Death.
[quote="byron.hopp":1s9gn0mq]Fivewin for Harbour 15.10[/quote:1s9gn0mq] Have you tried monitoring the GDI count on the Details tab of Windows (10) task manager? Randal
Black Screen of Death.
On my Windows 10 Task Manager I don't see GDI Count, where would I find it. On Details Tab: Name PID Status User name CPU Memory (private working set) Description Or is it one of the rows of the grid? Thanks, Byron ...
Black Screen of Death.
Byron: You may need to right click on one of the column headings to show a list of all column headings and then check the GDI column so it's visible. As you open and close various windows/dialogs in your app you can watch the GDI count go up/down. As you close a dialog or window the GDI count should return to the value it was before you opened it or more specifically, repeated calls to the same window/dialog/report, etc. should not cause the GDI count to continue increasing. Randal [quote="byron.hopp":ujk4zzgd]On my Windows 10 Task Manager I don't see GDI Count, where would I find it. On Details Tab: Name PID Status User name CPU Memory (private working set) Description Or is it one of the rows of the grid? Thanks, Byron ...[/quote:ujk4zzgd]
Black Screen of Death.
Randall, Wasn't that easy, sorry man I had no idea. I'll start looking at this. Byron ...
Black Screen of Death.
Once I see this number, what action do I take based on what value? My customer is really getting a little pissy about this happening. Thanks, Byron ...
Black Screen of Death.
Byron Can you reproduce this behavior on your machine or on other machines ... If not, I would ask your Customer to look at the offending machine(s) device manager and see what display adapter is in those machine(s). I bet you will find this is a local machine problem and a cranky video driver. Rick Lipkin
Black Screen of Death.
[quote="byron.hopp":2oaxrakb]Once I see this number, what action do I take based on what value? My customer is really getting a little pissy about this happening. Thanks, Byron ...[/quote:2oaxrakb] Byron, Is that number increasing and increasing ?
Black Screen on TBrowse with Windows 10.
For quite a while I had a problem on TBrowse grids where the screen background would turn black. This problem only came up on new versions of Windows 10, and only on some workstations (specifically Dell). I finally found a resolution and would like to share it. Our tbrowse grids far left column had a bitmap which we would toggle from having a bitmap, to no bitmap. When we toggled to no bitmap we just set the bitmap to nil. Worked fine on Windows 7, and some workstations on Windows 10. This seemed to be the problem. I need to create a blank bitmap and problem went away. So instead of setting it to nil we set to a blank bitmap (or whatever color the background was). Hopefully this helps somebody. Thanks,
Black Screen within grids
I asked often about this problem, and as I have found in the past, if I don't get many answers it must pretty unique. I found a solution to the black screen problem on some workstations, and it was the way we handled bitmaps. // Declare LOCAL bTagOn := LoadBitMap( GetResources(),"CHECK4" ) // single red check mark LOCAL bTagOff := LoadBitMap( GetResources(),"CHECK5" ) // blank grey screen // TC Browse Columns ADD COLUMN TO oBRW2 DATA if( lLogicalVar,bTagOn,bTagOff ) HEADER "Include" BITMAP SIZE 50 ALIGN CENTER We run into the problem with the black screen on a Dell OPTEPLEX 7050 when we did the following. ADD COLUMN TO oBRW2 DATA if( lLogicalVar,bTagOn,"" ) HEADER "Include" BITMAP SIZE 50 ALIGN CENTER Having the empty string passed to the browse column for a bitmap did not work well on the Dell, worked everywhere else. Thanks, Byron ...
Black Screen within grids
Byron, thanks for sharing it
Black Square around BTNBMPs
Hi everyone; In an effort not to stay too far behind today I'm testing with a newer fwh and noticed a black square around my btnbmps when the mouse hovers over it. That black square surrounding the button is not there with fwh 2012_04. Maybe I'm doing something wrong or maybe this is what everybody else likes. I don't like the black square. Is there a way to get rid of it? [code=fw:110uy030]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"clm_tabs"</span>    ;<br />              <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oOwner</span> TRANSPARENT <span style="color: #0000ff;">COLOR</span> CLR_BLUE, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span>, <span style="color: #000000;">240</span> <span style="color: #000000;">&#41;</span> ;<br />        GRADIENT <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">217</span>, <span style="color: #000000;">227</span>, <span style="color: #000000;">234</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">248</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> ;<br />           <span style="color: #0000ff;">TITLE</span> cTitle<br />...<br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> aoBtns<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Save32"</span> TRANSPARENT NOBORDER TOOLTIP <span style="color: #ff0000;">"Save claim information to disk."</span><br /><br /> </div>[/code:110uy030] Thank you, Reinaldo.
Black Square around BTNBMPs
Here is a self-contained reduced sample of the problem. All you have to do is hover over the btnbmp to see the [ugly] black square that gets drawn around the button: [code=fw:xucq2tno]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> START<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">LOCAL</span> oDlg<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TestDlg"</span><br />   <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Find16"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">OF</span> oDlg NOBORDER ;<br />            <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"btnbmp"</span> <span style="color: #000000;">&#41;</span> TRANSPARENT ;<br />           TOOLTIP <span style="color: #ff0000;">"Test BtnBmp"</span> <br />   <br />   <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP BITMAP <span style="color: #ff0000;">"Close16"</span>  ;<br />           TEXTRIGHT ;<br />                   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span>     ;<br />                   <span style="color: #0000ff;">OF</span> oDlg    ;<br />               <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />              TOOLTIP <span style="color: #ff0000;">"Remove id image"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /> </div>[/code:xucq2tno] Now the .rc file [code=fw:xucq2tno]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CLOSE16 BITMAP<br />MOVEABLE PURE LOADONCALL DISCARDABLE<br />LANGUAGE LANG_NEUTRAL, <span style="color: #000000;">0</span><br />BEGIN<br /><span style="color: #ff0000;">'42 4D 9E 02 00 00 00 00 00 00 36 00 00 00 28 00 '</span><br /><span style="color: #ff0000;">'00 00 0E 00 00 00 0E 00 00 00 01 00 18 00 00 00 '</span><br /><span style="color: #ff0000;">'00 00 68 02 00 00 12 0B 00 00 12 0B 00 00 00 00 '</span><br /><span style="color: #ff0000;">'00 00 00 00 00 00 FF FF FF FF FF FF FE FE FE F6 '</span><br /><span style="color: #ff0000;">'F6 F7 FD FD FD FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FD FD FD F5 F5 F6 FE FE FE FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'00 00 FF FF FF FD FD FE CF CF D5 5A 5A A8 D0 D0 '</span><br /><span style="color: #ff0000;">'D4 FD FD FE FF FF FF FF FF FF FC FC FD C1 C1 CB '</span><br /><span style="color: #ff0000;">'5F 5E A9 DE DE E4 FE FE FE FF FF FF 00 00 FE FE '</span><br /><span style="color: #ff0000;">'FE CD CD D4 3E 3D C1 39 35 EE 51 4F C2 D2 D2 D8 '</span><br /><span style="color: #ff0000;">'FD FD FE FC FC FD C0 C0 C9 4D 4A CE 3B 38 EE 4A '</span><br /><span style="color: #ff0000;">'4A B6 DE DE E4 FE FE FE 00 00 FC FC FD 5B 5B AF '</span><br /><span style="color: #ff0000;">'0E 0D EB 2A 28 F4 45 41 F2 50 4F BF D1 D1 D6 BF '</span><br /><span style="color: #ff0000;">'BF CA 4D 4A CD 49 45 F4 2D 2A F5 13 12 E8 77 77 '</span><br /><span style="color: #ff0000;">'B7 FE FE FE 00 00 FF FF FF E2 E2 EE 3C 3C C8 13 '</span><br /><span style="color: #ff0000;">'13 EF 2A 27 F4 39 36 F1 46 46 C4 42 40 D0 3C 38 '</span><br /><span style="color: #ff0000;">'F3 2B 29 F4 16 15 EE 4D 4D C5 ED ED F7 FF FF FF '</span><br /><span style="color: #ff0000;">'00 00 FF FF FF FF FF FF E0 E0 ED 3C 3B CA 0E 0D '</span><br /><span style="color: #ff0000;">'EF 18 16 F4 1E 1C F3 20 1E F3 18 17 F3 10 0F ED '</span><br /><span style="color: #ff0000;">'4F 4F CB EC EC F7 FF FF FF FF FF FF 00 00 FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF DA DA E7 32 32 CA 02 03 F2 '</span><br /><span style="color: #ff0000;">'04 03 F3 03 03 F2 04 04 F1 46 46 BC EB EB F5 FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF 00 00 FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FC FC FD B8 B8 C4 27 27 D2 01 01 F2 01 01 F3 00 '</span><br /><span style="color: #ff0000;">'00 F2 02 02 F1 38 38 C3 CF CF D5 FD FD FE FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF 00 00 FF FF FF FC FC FD BD BD C6 3B '</span><br /><span style="color: #ff0000;">'3B CD 1E 1E F1 21 21 F5 23 23 F3 23 23 F3 21 21 '</span><br /><span style="color: #ff0000;">'F4 22 22 F0 48 48 BF D2 D2 D8 FD FD FE FF FF FF '</span><br /><span style="color: #ff0000;">'00 00 FE FE FE C3 C3 CD 53 53 CF 4B 4B F4 4B 4B '</span><br /><span style="color: #ff0000;">'F6 4C 4C F3 5C 5C C9 55 55 CD 4B 4B F3 4B 4B F6 '</span><br /><span style="color: #ff0000;">'4C 4C F2 57 57 C0 D6 D6 DB FD FD FE 00 00 FC FC '</span><br /><span style="color: #ff0000;">'FD 75 75 B9 6F 6F F2 6D 6D F8 6E 6E F4 6A 6A C3 '</span><br /><span style="color: #ff0000;">'EC EC F6 E2 E2 F1 66 66 CC 6E 6E F5 6C 6C F7 6F '</span><br /><span style="color: #ff0000;">'6F F1 81 81 B3 FD FD FE 00 00 FF FF FF EE EE F4 '</span><br /><span style="color: #ff0000;">'77 77 CA 8E 8E F5 77 77 C9 F0 F0 F7 FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF E4 E4 EE 75 75 CF 8E 8E F4 7B 7B C2 F5 F5 '</span><br /><span style="color: #ff0000;">'FA FF FF FF 00 00 FF FF FF FF FF FF F0 F0 F6 91 '</span><br /><span style="color: #ff0000;">'91 C9 F3 F3 F9 FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF E7 E7 EF 92 92 C6 F7 F7 FA FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF 00 00 '</span><br />END<br /><br /><br />FIND16 BITMAP<br />MOVEABLE PURE LOADONCALL DISCARDABLE<br />LANGUAGE LANG_NEUTRAL, <span style="color: #000000;">0</span><br />BEGIN<br /><span style="color: #ff0000;">'42 4D 36 03 00 00 00 00 00 00 36 00 00 00 28 00 '</span><br /><span style="color: #ff0000;">'00 00 10 00 00 00 10 00 00 00 01 00 18 00 00 00 '</span><br /><span style="color: #ff0000;">'00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 '</span><br /><span style="color: #ff0000;">'00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF 91 91 91 88 88 88 8A '</span><br /><span style="color: #ff0000;">'8A 8A 8A 8A 8A 85 85 85 AD AD AD FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF C8 C8 C8 83 83 83 8A 8A 8A 8A 8A 8A 89 89 89 '</span><br /><span style="color: #ff0000;">'86 86 86 FC FC FC C0 B9 B8 DA 9F 95 FF DA D7 DD '</span><br /><span style="color: #ff0000;">'BA B5 A4 79 71 7B 4B 40 61 33 2B FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF 97 64 5D EE BB B2 F3 D3 CF BB 94 8E 83 56 4B '</span><br /><span style="color: #ff0000;">'7F 49 3F A7 A7 A7 E9 E4 E3 B6 83 7C DE BA B6 BE '</span><br /><span style="color: #ff0000;">'9D 98 8D 66 5F 6A 3E 34 5F 33 2A FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF 98 66 5F CB 9C 95 D2 B3 AF A0 7D 77 71 47 3E '</span><br /><span style="color: #ff0000;">'6D 3D 34 C8 C8 C8 FF FF FF B9 8C 84 EB D4 D2 D1 '</span><br /><span style="color: #ff0000;">'B8 B3 9B 78 72 72 4C 41 64 3D 34 FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF AD 81 76 DA B4 AD E3 CE CC B2 93 8C 7C 57 4D '</span><br /><span style="color: #ff0000;">'6C 40 38 EC EC EB FF FF FF D6 B4 AA FF FF FF FF '</span><br /><span style="color: #ff0000;">'FC F5 BE A7 9F 8A 6D 61 74 54 4A FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF D4 AC A2 FF F2 E8 FF FF FF DD CB C4 97 7C 71 '</span><br /><span style="color: #ff0000;">'77 56 4C FF FF FF FF FF FF A2 88 80 FF FF FF FE '</span><br /><span style="color: #ff0000;">'F3 ED B9 A1 99 86 68 5C 76 54 4B FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF D0 A7 9D FD EA E1 FF FF FF D8 C4 BC 95 79 6E '</span><br /><span style="color: #ff0000;">'62 43 39 FF FF FF FF FF FF A2 8D 88 FF FF FF FF '</span><br /><span style="color: #ff0000;">'FC F6 BD A6 9E 87 69 5E 84 60 55 93 93 93 C2 C2 '</span><br /><span style="color: #ff0000;">'C2 DC B1 A7 FF F2 E9 FF FF FF DE CB C3 9A 7E 72 '</span><br /><span style="color: #ff0000;">'4C 34 2D FF FF FF FF FF FF CB BC B9 DD D3 D3 C4 '</span><br /><span style="color: #ff0000;">'AF A9 94 74 6B 79 56 4B 75 52 48 3A 2D 28 7B 6C '</span><br /><span style="color: #ff0000;">'69 A7 80 76 C4 A7 9E D4 C5 C4 BB A0 99 96 73 69 '</span><br /><span style="color: #ff0000;">'7A 6C 6A FF FF FF FF FF FF FF FF FF 79 69 65 E5 '</span><br /><span style="color: #ff0000;">'CC C3 DF D8 D6 91 81 7A 65 4C 41 32 20 1C 6D 5A '</span><br /><span style="color: #ff0000;">'56 DF BD B1 E3 DF DB 93 81 79 5A 41 36 2E 1E 19 '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF 98 80 7B FF '</span><br /><span style="color: #ff0000;">'FF FD FF FF FF C6 AF A5 8D 6E 60 36 23 1E 74 63 '</span><br /><span style="color: #ff0000;">'5D FF F0 E4 FF FF FF D7 C1 B9 91 72 66 45 30 2B '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF C7 B4 B0 D2 '</span><br /><span style="color: #ff0000;">'BC B4 C2 B1 AE 95 75 6C 7C 58 4D 39 26 23 53 3F '</span><br /><span style="color: #ff0000;">'39 CD A9 A0 CC C0 BF B1 93 8D 85 63 58 60 4C 48 '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF B2 '</span><br /><span style="color: #ff0000;">'99 94 FF FF FF FF F6 F0 96 7A 6C 8E 7E 79 BF AE '</span><br /><span style="color: #ff0000;">'AB FF FF FF FF FE F8 8F 73 65 81 6C 67 FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF 62 38 30 7A 68 64 3A 20 19 FF FF FF CE C0 '</span><br /><span style="color: #ff0000;">'BD 77 5F 59 40 26 1D 9B 88 85 FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF D5 CA C7 83 6E 69 7D 65 5F FF FF FF F7 F6 '</span><br /><span style="color: #ff0000;">'F5 93 7E 78 7B 61 5B FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF '</span><br /><span style="color: #ff0000;">'FF FF FF FF FF FF '</span><br />END<br /><br /><br />TESTDLG <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">163</span>, <span style="color: #000000;">98</span><br /><span style="color: #0000ff;">STYLE</span> DS_SETFONT |DS_MODALFRAME |WS_OVERLAPPED |WS_VISIBLE |WS_SYSMENU |WS_CAPTION <br />CAPTION <span style="color: #ff0000;">"Test Dlg"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br />LANGUAGE LANG_NEUTRAL, <span style="color: #000000;">0</span><br />BEGIN<br />  CONTROL <span style="color: #ff0000;">""</span>,<span style="color: #000000;">1001</span>,<span style="color: #ff0000;">"BUTTON"</span>,BS_GROUPBOX |WS_CHILD |WS_VISIBLE ,<span style="color: #000000;">3</span>,<span style="color: #000000;">69</span>,<span style="color: #000000;">154</span>,<span style="color: #000000;">23</span><br />  CONTROL <span style="color: #ff0000;">"    Close"</span>,<span style="color: #000000;">201</span>,<span style="color: #ff0000;">"BUTTON"</span>,BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,<span style="color: #000000;">104</span>,<span style="color: #000000;">75</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">14</span><br />  CONTROL <span style="color: #ff0000;">""</span>,<span style="color: #000000;">200</span>,<span style="color: #ff0000;">"TBtnBmp"</span>,WS_CHILD |WS_VISIBLE ,<span style="color: #000000;">15</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">14</span>,<span style="color: #000000;">14</span><br />END<br /> </div>[/code:xucq2tno] Perhaps now you can all see what I mean? Reinaldo.
Black Square around BTNBMPs
Let us simplify the test program futher so that anyone can test it easily. Also let us choose a larger bitmap so that the rectangle is visible more clearly. [code=fw:qkdmp4kv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBtn<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> FWVERSION<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"<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;">\c</span>ascade.bmp"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT NOBORDER <span style="color: #B900B9;">//2007</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Close"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">14</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:qkdmp4kv] When the mose hovers over the btnbmp we see a rectagle around the border of the button. This change happend around 14.08 when the earlier unweildy paint method was reorganised. Years back when the hover rectangle was introduced, it was implemented for 2007 buttons only and not for non-2007 style buttons. Now this feature works for both 2007 and non-2007 style btnbmps. Partculaly with noborder btnbmps this feature provides a visual indication of the hovered button. I request testing this sample program. Retaining or removal of this feature would depend on general users' preference.
Black Square around BTNBMPs
Reinaldo, [quote="reinaldocrespo":3m72rdb6]Here is a self-contained reduced sample of the problem. All you have to do is hover over the btnbmp to see the [ugly] black square that gets drawn around the button:[/quote:3m72rdb6] I see no black square around the button. EMG
Black Square around BTNBMPs
Rao, I only see a tiny gray border around the button. EMG
Black Square around BTNBMPs
Yes. I think that is what he is referring to. You will see that more clearly in my example. This appears when move hovers, highlighting the hovered button
Black Square around BTNBMPs
[quote:12e9wn90]I request testing this sample program. Retaining or removal of this feature would depend on general users' preference.[/quote:12e9wn90] My friends; think about it... if it is coded as NOBORDER, then it shouldn't draw a border so it really isn't a matter of user preference. If the user prefers a border, then remove the NOBORDER clause. Don't you think? BTW- what I see here is a black rectangle/square as you hover over the button.
Black Square around BTNBMPs
There may be a better place to make this change but I get what I would call expected behavior by editing the Click() method of btnbmp.prg, adding a call to ::ResetBorder() at the end as follows: [code=fw:3tpw0yrx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   ::<span style="color: #00C800;">Super</span>:<span style="color: #0000ff;">Click</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// keep it here, the latest!</span><br />   ::<span style="color: #000000;">lProcessing</span> = .F.<br /><span style="color: #00C800;">endif</span><br /> </div>[/code:3tpw0yrx] [code=fw:3tpw0yrx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   ::<span style="color: #00C800;">Super</span>:<span style="color: #0000ff;">Click</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// keep it here, the latest!</span><br />   ::<span style="color: #000000;">lProcessing</span> = .F.<br />   ::<span style="color: #000000;">ResetBorder</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /> </div>[/code:3tpw0yrx] This is with 15.02, msvc Robb
Blackberry
Estimados señores:¿Alguien conoce y/o desarrolla software para dispositivos Blackberry?
Blat.exe
¿Alguien ha intentado usar Blat desde FiveWin y bajo XP? Les ha funcionado? ¿Existe una clase para manejar esta utilidad? Saludos y gracias Carlos G.
Blat.exe
Hola Carlos, yo no he utilizado Blat <!-- m --><a class="postlink" href="http://www.blat.net/">http://www.blat.net/</a><!-- m --> desde Fivewin, pero sí lo he hecho desde la solución de Backup Legato Networker y te puedo asegurar que es muy fácil su utilización. Qué necesitas ? Saludos, Félix
Blat.exe
Baxajaun Podrias postear un ejemplo funcional, incluyendo attachments, de como se usa BLAT.EXE Saludos George
Blat.exe
[quote="Baxajaun":2p18juth]Hola Carlos, yo no he utilizado Blat <!-- m --><a class="postlink" href="http://www.blat.net/">http://www.blat.net/</a><!-- m --> desde Fivewin, pero sí lo he hecho desde la solución de Backup Legato Networker y te puedo asegurar que es muy fácil su utilización. Qué necesitas ? Saludos, Félix[/quote:2p18juth] La cosa es que he creado una clase que con un simple oMail := New(mis,parametros,de,envio):Send():End() todo se crea 'de perlas' y a la hora de enviar aparecen los problemas externos a la aplicación. (Esta tarde si puedo cuelgo la clase para que quien quiera). El primer problema que he tenido es que el McAffee tenía bloqueado el envío de mails para Blat.exe, ya está solucionado, habilité que blat.exe pudiera enviar. El segundo problema es que estoy intentado enviar sin haber realizado un '-install' y me constesta que el servidor no conoce las cuentas ¡¡destinatarias!!. Ahora mismo en el entorno donde estoy no puedo reproducir el error; intentaré desde casa averiguar el código de error concreto. Saludos y gracias. Carlos G.
Blat.exe
George, la documentación de Blat es muy clara <!-- m --><a class="postlink" href="http://www.blat.net/examples/">http://www.blat.net/examples/</a><!-- m --> primero la instalación: blat -install miservidor midireccion@midominio por ejemplo para enviar lo que llega por la salida estandar: blat - -to recipient -s "SAVEGROUP COMPLETION REPORT" -server smtp_server -q donde recipient es la dirección de quien va a recibir el mensaje, lo que va de tras de -s es el asunto , smtp_server es el servidor y -q suprime todas las salidas por pantalla. Para envio de ficheros: - Ficheros binarios blat cuerpodelmensaje -to recipient -s "Mis asuntos" -server smtp_server -attach mifichero1,mifichero2,mificheroN -q - Ficheros ascii blat cuerpodelmensaje -to recipient -s "Mis asuntos" -server smtp_server -attacht mifichero1,mifichero2,mificheroN -q En la página de blat <!-- m --><a class="postlink" href="http://www.blat.net">http://www.blat.net</a><!-- m --> tienes todas las opcioes del programa. Saludos
Blat.exe
Carlos, de la documentación de blat: Blat does not need to be installed! All the 'Blat -install' command does is store various parameters in the Windows Regestry! No necesita ser instalado. Y lo que hace blat -install es alamacenar varios parámetros en el registro de windows, almacenará los parámetros que le pasemos, como nombre del servidor, cuenta de correo que envia los mensajes, puerto utilizado, etc ... Saludos
Blat.exe
[quote="Baxajaun":2ts5hul5]Carlos, de la documentación de blat: Blat does not need to be installed! All the 'Blat -install' command does is store various parameters in the Windows Regestry! No necesita ser instalado. Y lo que hace blat -install es alamacenar varios parámetros en el registro de windows, almacenará los parámetros que le pasemos, como nombre del servidor, cuenta de correo que envia los mensajes, puerto utilizado, etc ... Saludos[/quote:2ts5hul5] Entiendo que con las opciones que tiene Blat, es posible realizar un '-install' de datos falsos y al momento de usar el Blat.exe especificar un servidor y un mail correctos. Es así? Aun así, no me gusta realizar un '-install' y preferiría no hacerlo. Sigo en ello (tengo poco tiempo) Por cierto, como puedo lanzar un fichero BAT desde FiveWin sobre W2000 o XP? Con Shellexecute no lo consigo. Saludos y gracias Carlos G.
Blat.exe
Buscando, buscando, en la página de Daniel Andrade ahora alojada en <!-- m --><a class="postlink" href="http://vikthor.com.mx/fivewin/">http://vikthor.com.mx/fivewin/</a><!-- m --> he econtrado una clase para manejar Blat escrita por Jesus D¡ez Gonzalez. Ahora también la tenéis en Hyperupload: <!-- m --><a class="postlink" href="http://hyperupload.com/download/0270efa094/tblat.zip.html">http://hyperupload.com/download/0270efa ... t.zip.html</a><!-- m --> Saludos, Felix
Blat.exe
[quote="Baxajaun":1tr8q1mm]Buscando, buscando, en la página de Daniel Andrade ahora alojada en <!-- m --><a class="postlink" href="http://vikthor.com.mx/fivewin/">http://vikthor.com.mx/fivewin/</a><!-- m --> he econtrado una clase para manejar Blat escrita por Jesus D¡ez Gonzalez. Ahora también la tenéis en Hyperupload: <!-- m --><a class="postlink" href="http://hyperupload.com/download/0270efa094/tblat.zip.html">http://hyperupload.com/download/0270efa ... t.zip.html</a><!-- m --> Saludos, Felix[/quote:1tr8q1mm] Gracias Felix, Ayer dejé en utilidades una nueva clase para manejar Blat.exe de muy fácil uso y que no realiza (aunque si se desea lo permite) el install del Blat. La clase que me indicas (tblat) no era de mi gusto, no me sentía cómodo (naturalmente con todo el respeto y agradecimiento a su creador). Aunque se puede mejorar y ampliar mucho (de manera muy fácil), lo que hace esta clase cubre mis necesidades. La principal característica es que trabaja con ficheros auxiliares que crea y borra automáticamente, de ahí la 'f' en su nombre. Aquí se puede bajar: <!-- m --><a class="postlink" href="http://hyperupload.com/download/0285db1b91/TfBlat.prg.html">http://hyperupload.com/download/0285db1 ... t.prg.html</a><!-- m --> Saludos y gracias de nuevo. Carlos G.
Blat.exe
Carlos, muchas gracias. Saludos, Félix
Blinker 7
Buenas tardes, Alguien tiene o usa el enlazador Blinker 7.0 que me pueda enviar x email? Gracias de antemano
Blinker 7
Por favor, no solicitar el envio de programas que no son libres, gracias
Blinker and [x]Harbour compatibility
Hello, Happy new year to alls <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> Is someone using Blinker 7.0 with [x]Harbour <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> It is possible and if not, why <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Blinker and [x]Harbour compatibility
[quote="Badara Thiam":1ec6hz46]Hello, Happy new year to alls <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> Is someone using Blinker 7.0 with [x]Harbour <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> It is possible and if not, why <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->[/quote:1ec6hz46] No, you have to use the linker of the C compiler you are using. EMG
Blinker and [x]Harbour compatibility
Badara, Enrico's advise is the best choice, anyhow Blinker 7 lets you create 32 bits Windows EXE so theoretically it would be possible to use it to build Harbour/xHarbour applications.
Blinking Say info
Hi everybody, My Problem is : In Edit mode while I skip record one by one, say infos (like, row sum or display info from other database) are blinking. I am not able to stop blinking. I used, oSay:Refresh() prior to jump next record. But I do not get expected result. I also tried as, @ x, y Say oSay Prompt "" of oDlg ... prior to display next record info. But I do not get expected result. How can I stop blinking ? With Regards Arindam
Blinking Say info
Arindam, I'm not sure I understand the problem--it is going to have to erase and redraw the info which is going to cause a blink. If there is a lag time, then perhaps you are doing a lot of background processing between each record movement? Can you provide a small self contained example that shows the problem? James
Blinking current row in xBrowse
Hello!How to blink or make it blinking the xbrowse current row on ::nMarqueeStyle := MARQSTYLE_HIGHLROWRC <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Has any one with working code?Thanks and regards,
Blinking current row in xBrowse
Friend,For me its work with tWBrowse:[code:jesjbeih] &#46;&#46;&#46; @ 0,0 LISTBOX oLbxP1 FIELDS "" HEADERS "" SIZE 200,nSplitH PIXEL OF oChildWnd &#46;&#46;&#46; DEFINE TIMER oCLITimer OF oWnd INTERVAL 300 ACTION Blinking&#40; oLbxP1 &#41; ACTIVATE TIMER oCLITimer ACTIVATE WINDOW oChildWnd MAXIMIZED return nil Function Blinking&#40; oBrw &#41; oBrw&#58;nClrNFBack &#58;= iif&#40; oBrw&#58;nClrNFBack==oBrow&#58;nClrBackfocus, oBrow&#58;nClrBackfocus, CLR_BLACK&#41; oBrw&#58;nClrNFFore &#58;= iif&#40; oBrw&#58;nClrNFFore==oBrow&#58;nClrBackfocus, CLR_BLACK, oBrow&#58;nClrBackfocus&#41; oBrw&#58;Refresh&#40;&#41; return &#46;t&#46; &#46;&#46;&#46; [/code:jesjbeih]
Blinking current row in xBrowse
Hello Rochinha!Finally! someone generously answer this question.You are right! <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> the timer is the only way... changing the row's background color in iteration... I'm inspired to do it in xBrowse.Thank you so much for the guide.Regards,
Blinking current row in xBrowse
Good luck,A little modification:[code:1dr0lbx1] Function Blinking&#40; oBrw &#41; if ! oBrw&#58;lFocused oBrw&#58;nClrNFBack &#58;= iif&#40; oBrw&#58;nClrNFBack==oBrw&#58;nClrBackFocus,oBrw&#58;nClrBackFocus,CLR_BLACK&#41; oBrw&#58;nClrNFFore &#58;= iif&#40; oBrw&#58;nClrNFFore==oBrw&#58;nClrBackFocus,CLR_BLACK,oBrw&#58;nClrBackFocus&#41; oBrw&#58;Refresh&#40;&#41; endif return &#46;t&#46; [/code:1dr0lbx1]
Blinking during display
Hi! In my following test code, no of say are more for display the information. My problem is that, while I am entering data during checking and displaying the information, the Say information’s are blinking. The blinking rates are increasing gradually. #include "FiveWin.ch" Static oGet, oSay, n, oFont, cStat Static oDbf, oDbf1, oDbf2 //----------------------------------------------------------------------------// Function Main() Local oDlg1, BtnVal Local oBtnFind, oBtnDele, oBtnNext, oBtnPrev, oBtnGo, oBtnAdd, oBtnEdit, oBtnSave Local a1Buttons Set Century On Set Date Brit Set Date format "dd/mm/yyyy" // Replace value cStat := "ADD" // Open CustCat database and associate Indexes USE (CurDrive() + ":\" + "Testpro\Data\CustCat.Dbf") Alias "RefCate" NEW SHARED DATABASE oDbf2 // Open associate index files. SET INDEX TO (CurDrive() + ":\" + "Testpro\Data\Cust_cat") // Open Customer database and associate Indexes USE (CurDrive() + ":\" + "Testpro\Data\Customer.Dbf") Alias "RefCust" NEW SHARED DATABASE oDbf1 // Open associate index files. SET INDEX TO (CurDrive() + ":\" + "Testpro\Data\Cust_no") // Open Refill database and associate Indexes USE (CurDrive() + ":\" + "Testpro\Data\Refill.Dbf") Alias "Refill" NEW SHARED DATABASE oDbf // Open associate index files. SET INDEX TO (CurDrive() + ":\" + "Testpro\Data\Ref_ord") // Clean the Customer dataBase buffer oDbf:Blank() oDbf:OrderDt := oDbf2:LstOrdDt oDbf:OrderNo := oDbf2:LstOrdNo + 1 oDbf:Cashmemo := oDbf2:LstCshMemo + 1 oDbf:DaySerial := oDbf2:LstDaySrl + 1 //Field gets strt here DEFINE FONT oFont NAME "COURIER" SIZE 12, 10 DEFINE DIALOG oDlg1 ICON oIco RESOURCE "Booking" of oBookWind TITLE "ADD INDENT" Color RGB(170, 200, 210), RGB(170, 200, 210) SET FONT of oDlg1 to oFONT REDEFINE BUTTON oBtnFind ID 1 OF oDlg1 REDEFINE BUTTON oBtnDele ID 2 OF oDlg1 REDEFINE BUTTON oBtnNext ID 3 OF oDlg1 REDEFINE BUTTON oBtnPrev ID 4 OF oDlg1 REDEFINE BUTTON oBtnGo ID 5 OF oDlg1 REDEFINE BUTTON oBtnAdd ID 6 OF oDlg1 REDEFINE BUTTON oBtnEdit ID 7 OF oDlg1 ; ACTION ( CheckESC(oDlg1), oDlg1:Update() ) REDEFINE BUTTON oBtnBrow ID 8 OF oDlg1 ; ACTION ( lBrowFun := .T., oDlg1:End() ) REDEFINE BUTTON oBtnSave ID 9 OF oDlg1 ; ACTION ( SaveData( oRecStat, username, today, oDlg1, UserName ), oDlg1:Update() ) REDEFINE SAY oSay ID 12 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 13 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 14 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 15 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 16 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 17 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 18 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE SAY oSay ID 19 OF oDlg1 Color RGB(56, 61, 249), RGB(170, 200, 210) Font oFont1 REDEFINE GET oGet Var oDbf:CustNo ID 20 OF oDlg1 ; Valid (If(!Empty(oDbf:CustNo), ; RegValCheck( "ADD", userlevel, username, today, oDlg1 )), BtnPrsVal()) ; Picture "@!" Color RGB(0, 0, 0), RGB(255, 255, 255) Font oFont REDEFINE GET oGet Var oDbf:DlvyChrg ID 21 OF oDlg1 ; When !Empty(oDbf:CustNo) ; Valid If(nOption3 = 1, If(oDbf:DlvyMode == "H", ; dChk(oDlg1, dName), .T.), .T.) ; Picture "@Z 9999.99" Color RGB(0, 0, 0), RGB(255, 255, 255) Font oFont REDEFINE GET oGet Var oDbf:DlvyReqst ID 22 OF oDlg1 ; When !Empty(oDbf:CustNo) ; Valid refcheck( "ADD" ) .And. ; ( If( SaveData( oRecStat, "ADD", today, oDlg1, UserName ), .T., (oDlg1:aControls[ 18 ]:Setfocus(), .T.) ), .T. ) ; Picture "@!" Color RGB(0, 0, 0), RGB(255, 255, 255) Font oFont a1Buttons = { oBtnFind, oBtnDele, oBtnNext, oBtnPrev, oBtnGo, ; oBtnAdd, oBtnEdit, oBtnBrow, oBtnSave } ACTIVATE DIALOG oDlg1 NOMODAL ; Valid CloseFun( oRecStat ) // Disable appropriate buttons For n = 1 to Len( a1Buttons ) - 3 a1Buttons[ n ]:Disable() Next // Following is to set focus oDlg1:aControls[ 18 ]:SetFocus(.T.) RELEASE FONT oFont Return Nil //----------------------------------------------------------------------------// Static Function SaveData( oRecStat, helpIDX, today, oDlg1, Username ) Local saveAlias := Alias() Local saveRecno, saveOrder, chkCashmo, cBar := .F. Local cMRA := " " Local dName := " " // Confirm Message for continuation If !MsgYesNo("Sure to save current record.", "CONFIRM") CheckESC(oDlg1) Return .T. Endif // First establish to locks configure control Do While !(oDbf2:RecLock()) Enddo oDbf2:Load() dbSelectArea(saveAlias) //Field gets strt here DEFINE FONT oFont NAME "COURIER" SIZE 10, 10 BOLD // All locks successfull, check dependencies first If helpIDX == "ADD" // Save the current database state saveOrder := IndexOrd() saveRecNo := RecNo() chkCashmo := oDbf2:LstCshMemo+1 // Set the controlling index dbSelectArea("Refill") If chkCashmo <> 0 dbSeek(Dtos(oDbf:DlvyDt)+Str(ChkCashmo,8)+oDbf:ExtnCount) If Found() Tone(300,5) MsgInfo("DUPLICATE CASHMEMO FOUND :" + CRLF + CRLF + ; "Another Cashmemo found as un-delivered in Service." + CRLF + ; "Please CANCEL or SERVICE the same.", "WARNING") // Restore current database state dbSelectArea(saveAlias) dbSetOrder(saveOrder) dbGoTo(saveRecNo) oDbf8:UnLock() CheckESC(oDlg1) Return .T. Endif Endif oDbf:OrderDt := oDbf2:LstOrdDt // Order Date oDbf:OrderNo := oDbf2:LstOrdNo+1 // Order No oDbf:DaySerial := oDbf2:LstDaySrl+1 // Day Serial No oDbf2:LstOrdNo := oDbf:OrderNo oDbf2:LstDaySrl := oDbf:DaySerial If Empty(oDbf:ExtnCount) oDbf:ExtnCount := "E0" // Extention No Endif // Restore current database state dbSelectArea(saveAlias) dbSetOrder(saveOrder) dbGoTo(saveRecNo) oDbf:Cashmemo := 0 // Update parameters If oDbf:nOption1 == 1 oDbf:Cashmemo := oDbf2:LstCshMemo + 1 RefBlaze->LstCshMemo := oDbf:Cashmemo Endif If oDbf:DlvyMode == "R" .And. oDbf:DlvyChrg > 0 oDbf:DlvyChrg := ((-1) * oDbf:DlvyChrg) Endif If oDbf:DlvyMode == "C" oDbf:DlvyChrg := oDbf2:DelCharges Endif dbSelectArea("RefCust") // Update customer array oDbf1:TotRefill += oDbf:OrdCyl oDbf1:LstOrdNo := oDbf:OrderNo oDbf1:LstIndtDt := oDbf:OrderDt oDbf1:TotOpenBkg := oDbf1:TotOpenBkg + 1 // Routine check for auto home delivery If oDbf:nOption1 <> 1 If oDbf2:AutoDlvy == .T. .And. ( oDbf:DlvyMode == "H" .Or. oDbf:DlvyMode == "C" ) If !(oDbf2:DlvyManCod) oDbf:Cashmemo := oDbf2:LstCshMemo + 1 oDbf2:LstCshMemo := oDbf:Cashmemo Endif // Replace refill database oDbf:DlvyDt := today // Replace customer database oDbf1:LstDlvyDt := today oDbf1:TotOpenBkg := oDbf1:TotOpenBkg - 1 Endif Else If oDbf8:AutoDlvy == .T. .And. ( oDbf:DlvyMode == "H" .Or. oDbf:DlvyMode == "C" ) // Replace refill database oDbf:DlvyDt := today // Replace customer database oDbf1:LstDlvyDt := today oDbf1:TotOpenBkg := oDbf1:TotOpenBkg - 1 Endif Endif // Update customer database oDbf1:RecLock() oDbf1:Save() oDbf1:Commit() oDbf1:UnLock() If oDbf2:DataConvt == .T. .And. oDbf2:DlvyManCod == .T. oDbf:CashmemoDt := today Endif // First establish to locks configure control oDbf:Append() oDbf:RecLock() oDbf:Save() oDbf:Commit() oDbf:UnLock() // Create new refill information dbSelectArea(saveAlias) Endif // Refresh for new entry oDbf:Blank() oDbf1:Blank() oDbf2:Blank() oDbf:OrderDt := oDbf2:LstOrdDt oDbf:Order := oDbf2:LstOrdNo+1 oDbf:Cash := oDbf2:LstCshMemo+1 oDbf:DaySerial := oDbf2:LstDaySrl+1 // Display customer details @ 05, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 80, 12 Font oFont @ 06, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont @ 07, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont @ 08, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont @ 09, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont @ 10, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 60, 12 Font oFont @ 12, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 150, 12 Font oFont @ 14, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 16, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 17, 17 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 09, 80 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 10, 80 Say oSay Prompt "" of oDlg1 ; Picture "@Z 9999999999" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 11, 80 Say oSay Prompt "" of oDlg1 ; Picture "@Z 9999999999" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 15, 80 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 95, 12 Font oFont @ 16, 80 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 95, 12 Font oFont @ 17, 80 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 23, 116 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 27, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 28, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont @ 30, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont @ 31, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont @ 32, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont @ 34, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 35, 116 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 36, 116 Say oSay Prompt "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 37, 116 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 6, 80 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 24, 116 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont @ 25, 116 Say oSay Prompt "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont // Erase booking history @ 24, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 25, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 26, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 27, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 28, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 29, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 30, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 31, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 32, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 33, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 34, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 35, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 36, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont @ 37, 05 Say oSay Prompt "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont // Display booking info @ 05, 118 Say oSay Prompt oDbf:OrderDt of oDlg1 ; Picture "@D" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 06, 118 Say oSay Prompt oDbf:Order of oDlg1 ; Picture "@Z 99999" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 07, 118 Say oSay Prompt oDbf:Cash of oDlg1 ; Picture "@Z 999.99" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont @ 08, 118 Say oSay Prompt oDbf:DaySerial of oDlg1 ; Picture "@Z 9999" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont // Following is to set focus oDlg1:aControls[ 18 ]:Refresh(.T.) oDlg1:aControls[ 18 ]:Setfocus(.T.) RELEASE FONT oFont Return .T. //----------------------------------------------------------------------------// Static Function CloseFunc( oMenuItm, oMenu, oDlg1 ) oDbf:Close() oDbf1:Close() oDbf2:Close() Return .T. //-------------------------------------------------------------------// Static Function RegValCheck( helpIDX, userlevel, username, today, oDlg1 ) Local saveAlias := Alias() Local aMsg := "" Local aDlvyList := {} Local saveRecno, saveOrder, i, nDisp, lSay Set Century On Set Date Brit Set Date format "dd/mm/yyyy" If Empty(oDbf:CustNo) Return .F. Endif dbSelectArea("RefCust") dbSeek(oDbf:CustNo) If Found() // Reload Customer Info oDbf1:Load() Else Tone(300,5) MsgStop("INVALID CUSTOMER NO :" + CRLF + CRLF + ; "Customer with this Customer No not available." + CRLF + ; "Please enter correct No.", "WARNING") dbSelectArea(saveAlias) Return .F. Endif // Check customer category If !chkkey("RefCate", oDbf1:CustCat, 1, ; "INVALID CUSTOMER CATEGORY :" + CRLF + CRLF + ; "Undefined customer category in Customer details.") Return .F. Else dbSelectArea("RefCate") dbSeek(oDbf1:CustCat) // Reload category info oDbf2:Load() Endif // Reset to entry point state dbSelectArea(saveAlias) // Collect previous refill information DispRef( aDlvyList ) // Check if customer has taken transfer TV/TTV If !Empty(oDbf1:TvTtvNo) Tone(300,5) MsgStop("Customer has taken transfer from the Agency. " + ; oDbf1:TvTtv + " No. " + ; Transform(oDbf1:TvTtvNo, "@!") + ; " on " + Transform(oDbf1:TvTtvDt, "@D") + "." + ; " Transfered to " + TRIM(Transform(oDbf1:BlkOutDist, "@!")) + "." ,; "WARNING") Return .F. Endif // Display info @ 05, 118 Say oSay PROMPT oDbf:OrderDt of oDlg1 ; Picture "@D" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 06, 118 Say oSay PROMPT oDbf:Order of oDlg1 ; Picture "@Z 99999" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 07, 118 Say oSay PROMPT oDbf:Cash of oDlg1 ; Picture "@Z 999.99" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 08, 118 Say oSay PROMPT oDbf:DaySerial of oDlg1 ; Picture "@Z 9999" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 // Display customer details @ 05, 17 Say oSay PROMPT oDbf1:Degs of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 80, 12 Font oFont1 @ 06, 17 Say oSay PROMPT oDbf1:Name of oDlg1 ; Picture "@!" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 07, 17 Say oSay PROMPT oDbf1:Add1 of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 08, 17 Say oSay PROMPT oDbf1:Add2 of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 09, 17 Say oSay PROMPT oDbf1:Land of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 10, 17 Say oSay PROMPT oDbf1:Pin of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 60, 12 Font oFont1 @ 12, 17 Say oSay PROMPT oDbf2:Desc of oDlg1 ; Picture "@!" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 150, 12 Font oFont1 @ 14, 17 Say oSay PROMPT oDbf1:DgccNo of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 09, 80 Say oSay PROMPT oDbf1:Contact of oDlg1 ; Picture "@!" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 10, 80 Say oSay PROMPT oDbf1:OTel of oDlg1 ; Picture "@Z 9999999999" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 11, 80 Say oSay PROMPT oDbf1:MTel of oDlg1 ; Picture "@Z 9999999999" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 23, 116 Say oSay PROMPT oDbf1:Member of oDlg1 ; Picture "@!" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 27, 116 Say oSay PROMPT oDbf1:Area of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 If !Empty(oDbf1:AreaType) If oDbf1:AreaType == "U" @ 28, 116 Say oSay PROMPT "URBAN AREA" of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 Elseif oDbf1:AreaType == "R" @ 28, 116 Say oSay PROMPT "RURAL AREA" of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 Elseif oDbf1:AreaType == "D" @ 28, 116 Say oSay PROMPT "DEEPAM AREA." of oDlg1 ; Picture "@!" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 Endif Endif dbSelectArea(saveAlias) // Save entry point state saveRecno := RecNo() saveOrder := IndexOrd() // Display previous refill details If Len(aDlvyList) > 0 // Position cursor i := 24 nDisp := 1 // Display booking history For ndisp := 1 To Len(aDlvyList) @ i, 05 Say lSay PROMPT aDlvyList[ndisp][1] of oDlg1 ; Picture "@!" Color RGB(255, 255, 255), RGB(170, 200, 210) SIZE 555, 12 Font oFont1 // Position cursor ++i Next i := 24 nDisp := 1 Endif // Reset to entry point state dbSelectArea(saveAlias) dbSetOrder(saveOrder) dbGoto(saveRecno) If helpIDX == "ADD" // Display the variable If !(Empty(oDbf1:LtManDt)) @ 24, 116 Say oSay PROMPT Transform((oDbf1:LtManDt), "@D") ; of oDlg1 Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 Else @ 24, 116 Say oSay PROMPT Transform((oDbf1:ManDt), "@D") ; of oDlg1 Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 Endif @ 25, 116 Say oSay PROMPT Transform((oDbf1:ChgDt), "@D") ; of oDlg1 Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 Endif // Check if customer is temporarily suspended If oDbf1:Suspended Tone(300,5) If !MsgYesNo("Customer is temporarily suspended. " + ; "Reason " + Alltrim(oDbf1:Reason) + "." + CRLF + ; "Would you like to continue ?", "CONFIRM") CheckESC(oDlg1) Return .T. Endif Endif // Check if prev amount is due If !Empty(oDbf1:AmtPending) Tone(300,5) If !MsgYesNo("Last Service amount is pending from this " + ; "Customer Rs." + Transform(oDbf1:AmtPending, "@BZ 99999.99") + "." + CRLF + ; "Would you like to continue ?", "CONFIRM") CheckESC(oDlg1) Return .T. Endif Endif If !Empty(oDbf1:LstDDt) .And. ; (oDbf:OrderDt - oDbf1:LstDlDt) < oDbf2:BkgInt aMsg += "Too early for this Service." + CRLF Endif If !Empty(oDbf1:LtManDt) .And. ; (oDbf:OrderDt - oDbf1:LtManDt) > oDbf2:MChkIntvl aMsg += "Mandatory Inspection date is overdue." + CRLF // Equate field memory variables oDbf:ImtMessage := "Mandatory Check overdue" Endif If !Empty(aMsg) Tone(300,5) If !MsgYesNo(aMsg + CRLF + CRLF + ; "Would you like to continue.", "CONFIRM") CheckESC(oDlg1) Return .T. Endif Endif // Equate field memory variables oDbf:Status := "N" oDbf:DlvyReqst := oDbf1:DlvyReqst If (oDbf1:TotOpenBkg >= oDbf2:MaxOpenBkg .And. oDbf2:Confirm == .F.) Tone(300,5) MsgStop("ATTENTION : " + CRLF + CRLF + ; "Customer has one pending service. " + ; "Category not permited for next " + ; "Order.", "WARNING") CheckESC(oDlg1) Return .T. Endif If !Empty(oDbf1:LstDlvyDt) .And. ; (oDbf:OrderDt - oDbf1:LstDlvyDt) < oDbf2:BkgIntervl If userlevel <> "P" // Early Booking Tone(300,5) MsgStop("ATTENTION : " + CRLF + CRLF + ; "Service is not due. For this Service " + ; "DSR's confirmation required. " ,; "WARNING") CheckESC(oDlg1) Return .T. Endif Endif oDbf:CustCat := oDbf1:CustCat oDbf:CustArea := oDbf1:CustArea oDbf:AreaType := oDbf1:AreaType oDbf:CylType := oDbf2:CylType oDbf:Gap := oDbf2:DlvIntervl oDbf:BookTime := Time() If !Empty(username) Set Century Off oDbf:GenOnBy := username+","+DTOC(today) Set Century On Endif // Reset to entry point state dbSelectArea(saveAlias) dbSetOrder(saveOrder) dbGoto(saveRecno) Return .T. //----------------------------------------------------------------------------// Static Function CheckESC(oDlg1) Local saveAlias := Alias() Local saveOrder, oFont1 //Field gets strt here DEFINE FONT oFont1 NAME "COURIER" SIZE 10, 10 BOLD // Save entry point state saveOrder := IndexOrd() // Clear Dbf information oDbf:Blank() oDbf1:Blank() oDbf2:Blank() oDbf:OrderDt := oDbf2:LstOrdDt oDbf:OrderNo := oDbf2:LstOrdNo oDbf:Cashmemo := oDbf2:LstCshMemo oDbf:DaySerial := oDbf2:LstDaySrl DEFINE FONT oFont1 NAME "COURIER" SIZE 10, 10 BOLD // Display customer details @ 05, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 80, 12 Font oFont1 @ 06, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 07, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 08, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 09, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 300, 12 Font oFont1 @ 10, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 60, 12 Font oFont1 @ 12, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 150, 12 Font oFont1 @ 14, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 16, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 17, 17 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 09, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 10, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@Z 9999999999" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 11, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@Z 9999999999" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 15, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 95, 12 Font oFont1 @ 16, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 95, 12 Font oFont1 @ 17, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 23, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 27, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 28, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 @ 30, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 @ 31, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 @ 32, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 120, 12 Font oFont1 @ 34, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 35, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 36, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@!" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 37, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 6, 80 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 24, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 @ 25, 116 Say oSay PROMPT "" of oDlg1 ; Picture "@D" Color RGB(170, 200, 210), RGB(170, 200, 210) SIZE 100, 12 Font oFont1 // Display booking history @ 24, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 25, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 26, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 27, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 28, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 29, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 30, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 31, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 32, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 33, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 34, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 35, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 36, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 @ 37, 05 Say oSay PROMPT "" of oDlg1 ; SIZE 555, 12 Color RGB(170, 200, 210), RGB(170, 200, 210) Font oFont1 // Reload controls For n = 1 to Len(oDlg1:aControls) oDlg1:aControls[ n ]:Refresh(.T.) Next // Reload controls aSize((oDlg1:aControls), 88) // Display booking info @ 05, 118 Say oSay PROMPT oDbf:OrderDt of oDlg1 ; Picture "@D" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 06, 118 Say oSay PROMPT oDbf:Order of oDlg1 ; Picture "@Z 99999" Color RGB(237, 27, 27), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 07, 118 Say oSay PROMPT oDbf:Cash of oDlg1 ; Picture "@Z 999.99" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 @ 08, 118 Say oSay PROMPT oDbf:DaySerial of oDlg1 ; Picture "@Z 9999" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 // Following is to set focus oDlg1:aControls[ 18 ]:Refresh(.T.) oDlg1:aControls[ 18 ]:Setfocus(.T.) // Reset to entry point state dbSelectArea(saveAlias) dbSetOrder(saveOrder) RELEASE FONT oFont1 Return .T. //----------------------------------------------------------------------------// Static Function DispRef( aDlvyList ) Local saveAlias := Alias() Local saveRecno, saveOrder, SrlNo // Save entry point state saveRecno := RecNo() saveOrder := IndexOrd() SrlNo := 0 dbSelectArea("Refill") dbSetOrder (3) // Setup database dbSeek(oDbf:CustNo) If Found() // Display booking history Do While !Eof() If Refill->CustNo == oDbf:CustNo Aadd(aDlvyList, {Dtoc(Refill->OrderDt) + " " + Str(Refill->OrdCyl) + " " + Str(Refill->Cashmemo)+ " " +; (If(Refill->Status <> "C", Dtoc(Refill->DlvyDt), Space(10))) + " " + Refill->DlvyMan + " " +; (If(Refill->Status == "C", Dtoc(Refill->DlvyDt), Space(10))) + " " + Str(Refill->OrderNo) + " " +; Refill->Remarks}) Else Aadd(aDlvyList, {" "}) Endif ++SrlNo dbSkip() If SrlNo = 14 Exit Endif SysRefresh() Enddo Endif If Len ( aDlvyList ) < 14 SrlNo := Len ( aDlvyList ) Do While .T. Aadd(aDlvyList, {" "}) ++SrlNo If SrlNo = 14 Exit Endif SysRefresh() Enddo Endif // Reset to entry point state dbSelectArea(saveAlias) dbSetOrder(saveOrder) dbGoTo(saveRecno) Return (aDlvyList) //----------------------------------------------------------------------------// Static Function BtnPrsVal() If oBtnEdit:lMouseDown() KEYBOARD CHR(K_ENTER) Return .T. Else MsgStop("Field can not be blank. Required Valid Number for Process.","WARNING") Endif Return .F. //----------------------------------------------------------------------------// Static Function dChk(oDlg1, dName) Return .T. Can anyone give me solution to stop blinking in my testrun.prg. With regards, Arindam
Blinking during display
Hi everybody, I think my last post was too lengthy for support. Ok. I need support for the following part only. While I am entering a client’s Id, first it is display previous clients details in @Say area and then current client details. I have erased and removed all Say information from display area and also from oDbf. Even after that it is displaying previous client details. How can I stop this double display ? The process time slowly increase. After 10-15 process it is remarkable slow. Is it due to buffering problem? How can I clear the buffer? How can I reduced the value of Dlg1:aControls ? ( as because the value is increasing in every process) With regards, Arindam
Blinking during display
I don't know if I understood correctly your problem but try to not create new SAY objects and use oSay:SetText() method instead to change SAY content. EMG
Blinking during display
Arimdam, >I think my last post was too lengthy for support. Yes, it is. We need a small self-contained example. From a quick look at your code, it appears that you are doing lots of things the hard way. For instance, coding all your controls instead of using resources is the hard way. If you add the UPDATE clause to all your SAYs. Then you don't need this code: // Reload controls For n = 1 to Len(oDlg1:aControls) oDlg1:aControls[ n ]:Refresh(.T.) Next // Reload controls aSize((oDlg1:aControls), 8 All you have to do is oDlg:refresh() and all the controls with the UPDATE clause will be refreshed. This is built-in to oDlg. Then all you need to do to blank out all the SAYs is: oDBF1:blank() oDlg:refresh() If you do this you can get rid of at least 50 lines of code. But, I don't think you really need to blank out the SAYs--just reload the database object and redisplay: oDBF1:skip() // or whatever... oDlg:refresh() This will probably solve your blinking problem. And, may I suggest naming your oDBF objects something more meaningfull, like oCustomer. This makes it much easter to read and understand. With search & replace, this shouldn't take much time to do. And when you post code, please use the CODE feature of the (forum) editor so it doesn't loose all the indentation. Regards, James
Blinking during display
James, Thanks for your guideline and also for quick look to my code. I am sure this will help me in future during coding [b:380kfr59]But, I am stuck in different part now. I am not updating any data ([color=darkred:380kfr59][u:380kfr59]As this is only for information system. In very few occasion I am updating the information in Dbf[/u:380kfr59][/color:380kfr59]) in any Dbf, simply erase the information from screens and entering next client Id. May be buffers are not clear and all problem due to this reasons.[/b:380kfr59] [u:380kfr59]My steps are:[/u:380kfr59] 1> I am entering a client Id, the client’s detail (i.e. name, address, …..other information) are picking up from two separate Dbf and displaying on screen. Near about 100 nos. information I pick up from Dbf and display on screen. 2> I am using command, @ nRow(), nCol() Say oSay Prompt oDbf:xFld of oDlg1 ……. Using same Say command for every display [ I think you have observed that in [b:380kfr59]RegValCheck(….)[/b:380kfr59]] 3> After completing the job with particular client, I am erasing the Say information from display area [ I think you have observed that in [b:380kfr59]CheckESC (….)[/b:380kfr59]] 4> Erasing and removed the information and entering next client Id. [u:380kfr59]My observation:[/u:380kfr59] While I am entering a new client’s Id, first it is display previous clients details, in @Say area and then current client details. I am erasing and removing all @Say information from display area and also from oDbf 1, oDbf2,……. Even after that it is displaying previous client details. As Enrico suggested to use oSay:SetText(), I can not understand where and how should I use this. Because I am using oSay to display all 100 information of a client. With regards, Arindam
Blinking during display
>But, I am stuck in different part now. I am not sure what you are saying. Are you saying that the example you showed us is not what you are trying to debug? >I am not updating any data (As this is only for information system. In very few occasion I am updating the information in Dbf) in any Dbf, simply erase the information from screens and entering next client Id. May be buffers are not clear and all problem due to this reasons. Ah, perhaps you are confused. When I said "updating" I was referring to updating the SAYs with data from a database object NOT updating the database from the SAYs. This code from your example IS displaying data from a database object: @ 05, 118 Say oSay PROMPT oDbf:OrderDt of oDlg1 ; Picture "@D" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 If you add the UPDATE clause to the SAY statement: @ 05, 118 Say oSay PROMPT oDbf:OrderDt of oDlg1 ; Picture "@D" Color RGB(0, 0, 0), RGB(170, 200, 210) SIZE 82, 12 Font oFont1 UPDATE And then blank the database object and refresh the dialog: oDBF:blank() oDlg:refresh() The SAY should be empty. You could probably test this in your existing code by just adding the UPDATE clause to one of the SAYS, then adding the code to blank the database object and refresh the dialog. James
Blinking during display
Whoops. Above I said oDlg:refresh() but it should have been oDlg:update(). Below is a working example. James [code:3440iqlk]#include "fivewin&#46;ch" function main&#40;&#41; local oDlg, oCust, oBtn use customer database oCust define dialog oDlg @ 1,2 say oCust&#58;last UPDATE @ 3,2 button oBtn action &#40; oCust&#58;blank&#40;&#41;, oDlg&#58;update&#40;&#41; &#41; activate dialog oDlg return nil[/code:3440iqlk]
Blinking during display
James Yes, I want to debug same example which I post earlier. As you have suggested, I have modify my code. It is blank out the Says and remain as controls in oDlg1:aControls for next time use. As a result while I am entering next Client’s Id, then to displaying data from database object, I have to write in my code: oSayODt:SetText(oDbf:OrderDt) oSayONo:SetText(oDbf:OrderNo) And so on total 100 Says. To follow this I have to create total 100 oSay variables also, to identify the Says separately. If I do not follow the above and use same Say statement, then the Says will be add as new controls in oDlg1:aControls. So every time 100 new controls add into the existing array. No, it is not expected. My intention is to delete the Says control from the aControls, while I am going for next entry. If I am able to do so, I need not to create 100 oSay variables separately and easily can use same Say statement. This will not increase the length of the array also. Is it possible? Is it practical? Is it right way? Thank you once again for your last reply. With regards, Arindam
Blinking during display
Arindam, >Is it possible? Probably. >Is it practical? No. >Is it right way? No. Did you try my example code? If you use the UPDATE clause with any control it adds the control to the list of controls that get automatically updated when you do oDlg:update(). You don't need to erase the data in the SAYs yourself, nor do you need to put new data in. The data is automaically replaced with new data when oDlg:update() is called. If the database pointer has been moved to a new record then all the SAYs will reload the data from the database object into the SAYs. Try my example code replacing the oCust:blank() witho oCust:skip() and you will see that new data gets displayed each time you press the button. Forget everything you were trying to do. FW handles this all automatically. James
Blinking during display
Arindam, Just try the code below with the FW\samples\customer.dbf file and you will see what I am talking about. James [code:2xiqkbej]#include "fivewin&#46;ch" function main&#40;&#41; local oDlg, oCust, oBtn use customer database oCust define dialog oDlg @ 1,2 say oCust&#58;last UPDATE @ 3,2 button oBtn action &#40; oCust&#58;skip&#40;&#41;, oDlg&#58;update&#40;&#41; &#41; activate dialog oDlg centered return nil[/code:2xiqkbej]
Blinking during display
Arindam, Just wondering if you have made any progress on this? James
Blinking during display
James, I have tested your sample code. It is working fine. May be there are some steping problem in my code. Once again I go through my code. if necessay I will get back to you for support. Thank you for your kind efforts. With regards, Arindam
Bloated EXEs
[quote="Antonio Linares":u3uvr8ks]Enrico, Software tends to grow as it grows in complexity and in offered functionalities. See Windows 10, OSX, Linux, they all grow the same way.[/quote:u3uvr8ks] Yes, but if one doesn't use the new features why they should be included in the EXE? I mean, probably there are some unexpected and unwanted links between FWH modules. But which?... EMG
Bloated EXEs
Dear friends, EXEs sizes has grown up very much lately. As an example, the following empty function [code=fw:395odhpb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:395odhpb] generates an EXE of 3 MB! Is there any way to reduce such a big size? I'm using latest xHarbour and latest BCC32. EMG
Bloated EXEs
Enrico, Software tends to grow as it grows in complexity and in offered functionalities. See Windows 10, OSX, Linux, they all grow the same way.
Bloated EXEs
Enrico, You may compare the map files from a previous EXE and your current EXE
Bloated EXEs
I can't, as I haven't previous FWh releases. Can I get map files directly from the EXE? Anyway, I have some EXEs of 2013 that are less of 2 MB in size! <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
Bloated EXEs
I found the culprit! I removed xbrowse module and now I get: [code=fw:3cktewcx]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_XBROWSENEW'</span> referenced <span style="color: #0000ff;">from</span> E:\FWXHARB\FIVEHX.LIB|TGET<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_TXBROWS'</span> referenced <span style="color: #0000ff;">from</span> E:\FWXHARB\FIVEHX.LIB|XBROWSER<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_XBRWSETDATASOURCE'</span> referenced <span style="color: #0000ff;">from</span> E:\FWXHARB\FIVEHX.LIB|XBROWSER</div>[/code:3cktewcx] EMG
Bloated EXEs
Hi, I use to compress exe upx without reducing its processing speed Regards
Bloated EXEs
Me too. But the EXE size is still growing up (slower). EMG
Bloated EXEs
Enrico, You may try to use dummy functions to replace them
Bloated EXEs
[quote="Antonio Linares":cb7ayjq9]Enrico, You may try to use dummy functions to replace them[/quote:cb7ayjq9] Yes, but there are many others to replace... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> I give up. EMG
Bloated EXEs
I guess you deleted xbrowse.obj as it has been your preference for long. If so you have to delete xbrowser.obj too. New thing is TGet also calls xbrowse. To remove this call, you may comment out function PopupBrowse() in the tget.prg. Next time, I may move this to xbrowse.prg. To that extent, you need to modify TGet. Once you do that, xbrowse is totally out of your way. You save 250 KB
Bloated EXEs
[quote="nageswaragunupudi":3l4k23l8]I guess you deleted xbrowse.obj as it has been your preference for long. If so you have to delete xbrowser.obj too. New thing is TGet also calls xbrowse. To remove this call, you may comment out function PopupBrowse() in the tget.prg. Next time, I may move this to xbrowse.prg. To that extent, you need to modify TGet. Once you do that, xbrowse is totally out of your way. You save 250 KB[/quote:3l4k23l8] No, I haven't deleted anything. I just try to reduce the EXE size that has increased a lot lately. And I'm already using a rewritten TGet (since years) so the problem is not (only) xbrowse. That was only a sample of what probably is the root of the problem. Another big module could be menudraw.c but it can't be avoided, I suppose. EMG
Bloated EXEs
Yes, menu system grew a lot too
Bloated EXEs (reprise)
Anybody could tell me why the following sample generates an EXE of 3208192 bytes? [code=fw:29rc41fd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:29rc41fd] The same compiled with xHarbour console (without FWH) is 842240 bytes. The difference is surprisingly high. EMG
Bloated EXEs (reprise)
Which libs do you have included? I think the libraries full of functionality make the .exe bigger <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Bloated EXEs (reprise)
Only the standard libs: fivehx.lib and fivehc.lib. But please note that I make no call to any of the FWH functions or classes (see my sample). 2.4 MB size bigger is too much for doing nothing, isn't it? EMG
Bloated EXEs (reprise)
It definitely are the fwh-libs. If I comment these file out of the samples buildx.bat, my .exe is 831kb, with these libs it is 3404kb. The commented lines are: echo %fwh%\lib\Fivehx.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib + >> b32.bc echo %fwh%\lib\pgsql.lib %hdir%\lib\libpq.lib + >> b32.bc So, as long as you don't need functionality provided by these libs, you can keep them out of the compiling.
Bloated EXEs (reprise)
Gilbert, you definitely missed the point. As the linker put a module in the EXE only if at least one of the symbols contained in that module is referenced, why we have 2.4 MB of modules linked to the EXE if it's only an empty program? EMG
Bloated EXEs (reprise)
Enrico, Comparing the generated .map files we can see which modules are getting linked into the EXE
Bloated EXEs (reprise)
Antonio, thank you. I just send the map to your private email. Any thoughts? EMG
Bloated EXEs (reprise)
Enrico, Please don't link FWH libraries and check the EXE size that you get
Bloated EXEs (reprise)
829440 bytes EMG
Bloated EXEs (reprise)
Enrico, sorry, I assumed the key fwh libs were a kind of a framework which always would be linked, because this these libs at least for some years now make the exe bigger. (At least from fwh1202 I can confirm with a test I made today: 839kb vs. 1772kb. The file size with actual fivewin/xharbour is simular to yours: 831kb vs. 3404kb, which I wrote some a little further down.
Bloated EXEs (reprise)
This is something I don't understand: - fivehx.lib specified to the linker --> EXE size: 3208192 - fivehx.lib do not specified to the linker --> EXE size: 829440 In both cases I get no linker errors! So the sample is not using any of the FWH symbols. Then why the EXE size grows when fivehx.lib is specified but not used? EMG
Bloated EXEs (reprise)
Because FWH libs replace Harbour errorsys
Bloated EXEs (reprise)
The following sample is still 3195904: [code=fw:33q3axim]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> ERRORSYS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:33q3axim] EMG
Bloated EXEs (reprise)
you should review fwh sources one to one searching not static function which reescribe harbour system, in order to understand that size increase.
Bloated EXEs (reprise)
Please note that I'm not using any Harbour functions in my sample so EXE size should not increase even if FWH redefines any of those. EMG
Bloated EXEs (reprise)
Antonio, did you mean by "FWH libs replace Harbour errorsys", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?
Bloated EXEs (reprise)
[quote="Enrico Maria Giordano":3n3euxt3]Please note that I'm not using any Harbour functions in my sample so EXE size should not increase even if FWH redefines any of those.[/quote:3n3euxt3] Allright, but note what increase problem is no a fwh problem or harbour problem: it's a C linker problem from Embarcadero company if you use Borland C++
Bloated EXEs (reprise)
No, it isn't. If I remove or add an unused lib from the list, the EXE size doesn't change. EMG