FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Flicker oSay object
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Flicker oSay object
Posted: Tue Jan 31, 2012 03:35 PM
Is it possible to reduce flicker?

Code (fw): Select all Collapse
#include "fivewin.ch"

FUNCTION MAIN()

LOCAL oDlg, oTimer
LOCAL oOra , cOra := TIME()
LOCAL oFont3

DEFINE FONT oFont3 NAME "MS Sans Serif" SIZE 0, -18 BOLD

DEFINE DIALOG oDlg FONT oFont3



DEFINE timer oTimer OF oDlg interval 1000 ACTION refreshora( oOra )

@ 1 , 1 SAY oOra PROMPT cOra OF oDlg

ACTIVATE DIALOG oDlg CENTER ON INIT ( oTimer:hWndowner := oDlg:hwnd, oTimer:activate() )

oTimer:deactivate()
RELEASE TIMER oTimer

RELEASE FONT oFont3

RETURN NIL

FUNCTION REFRESHORA( oOra )

oOra:settext( TIME() )


RETURN NIL
Marco Boschi
info@marcoboschi.it
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Flicker oSay object
Posted: Tue Jan 31, 2012 04:02 PM

Your sample is not flickering here (FWH 11.11).

EMG

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Flicker oSay object
Posted: Wed Feb 01, 2012 07:40 AM

It's time to upgrade
thanks

Marco Boschi
info@marcoboschi.it
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion