FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Pocket PC Clase TClock para FWPPC
Posts: 172
Joined: Fri Oct 07, 2005 12:00 PM
Clase TClock para FWPPC
Posted: Tue Feb 21, 2006 11:34 PM
Hola a todos. Todav铆a no funciona del todo bien pero creo que merece la pena ir viendola funcionar.

http://www.arrakis.es/~canal_five/reloj.zip

En cuanto encuentre una solucion para PolyPolygon mandare el resto.

Un saludo
Posts: 172
Joined: Fri Oct 07, 2005 12:00 PM
Clase TClock para FWPPC
Posted: Wed Feb 22, 2006 10:46 AM
Hola

驴Por que puede pasar en este c贸digo que al ir a otra aplicaci贸n y la ventana que muestra el reloj perder el foco y luego posteriormente recuperarlo, sale un error de argumentos en GotFocus?





Un saludo
Posts: 172
Joined: Fri Oct 07, 2005 12:00 PM
Clase TClock para FWPPC
Posted: Wed Feb 22, 2006 01:51 PM
El error.

Hola Antonio.

El error esta en este m茅todo de la clase TWindow.

METHOD GotFocus(hWndLoseFocus) CLASS TWindow

   ::lFocused = .t.

   if ::bGotFocus != nil
      Eval( ::bGotFocus )
   endif

   if ! Empty( ::hCtlFocus )
      if Upper( GetClassName( ::hCtlFocus ) ) $ "SYSTABCONTROL32,TPAGES"
         AEval( ::aControls, {| Ctrl | If( Ctrl:hWnd != ::hCtlFocus, , ;
                  SetFocus( Ctrl:aDialogs[ Ctrl:nOption ]:hCtlFocus ) ) } )
      else
         SetFocus( ::hCtlFocus )
      endif
   else
      if ::aControls != nil .and. Len( ::aControls ) > 0
         if ::aControls[ 1 ] != nil
            ::hCtlFocus = NextDlgTab( ::hWnd ) // , ::aControls[ 1 ]:hWnd )
            //SetFocus( ::hCtlFocus ) <<<<<<<<<<<
         endif
      endif
   endif

return 0   // no standard behavior


Si comento la l铆nea se帽alada, el programa funciona y no se peta cuando vuelve a pillar el foco.
Posts: 172
Joined: Fri Oct 07, 2005 12:00 PM
Clase TClock para FWPPC
Posted: Wed Feb 22, 2006 02:19 PM

Es curioso. Si le quito WS_TABSTOP no peta :(

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Clase TClock para FWPPC
Posted: Wed Feb 22, 2006 04:05 PM

Paco,

Acabo de probar samples\tutor05.prg, estando el foco en un GET, y cambiando a otra aplicaci贸n y volviendo, y no d谩 ning煤n error.

Puedes probarlo ? (sin tu modificaci贸n) gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Clase TClock para FWPPC
Posted: Wed Sep 03, 2008 06:33 PM

Antonio,
where I can found tclock for fwppc ?

Best Regards, Saludos



Falconi Silvio
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Clase TClock para FWPPC
Posted: Thu Sep 04, 2008 12:54 PM

Silvio,

We don't have it.

Maybe another FWPPC user may have it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Clase TClock para FWPPC
Posted: Thu Sep 04, 2008 02:37 PM

Antonio,
I'm trying mine clock but (msgclock) I'm afraid not run in fwppc
I can post here the function if it run ok on Arm

Best Regards, Saludos



Falconi Silvio

Continue the discussion