Flickering in checkbox click

Re: Flickering in checkbox click

Postby byte-one » Mon Oct 18, 2010 10:39 pm

My way to kill all this problems:
Function isthemed() return .T. if i use a manifest in RC.
I commented out the messages VM_LBUTTONDOWN and WM_LBUTTONUP in control.prg. Flickering on both cases: when mouse down and mouse up.
I am also defined all dialogs as transparent. Whe i not do this, all static says are not transparent!??In control.prg in method colors i commented out the "SendMessage(::oWnd:hWnd, WM_ERASEBKGROUND, hDC,0)".

I wrote my way (but not a really solution) sometimes in this forum but no reaction!?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Flickering in checkbox click

Postby Antonio Linares » Mon Oct 18, 2010 10:46 pm

Jeff,

Your flickering comes from your call to GradientFill() from the ON PAINT as you force the dialog to get repainted and that forces all controls to be painted again:

ACTIVATE DIALOG oDlgPat ON PAINT GradientFill( ... )

You should use a brush instead of calling to GradientFill()

DEFINE DIALOG oDlg TRANSPARENT BRUSH oBrush
...
ACTIVATE DIALOG oDlg

Here you have a complete example that Daniel implemented:
viewtopic.php?f=6&t=19363&hilit=+brush#p102058
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Flickering in checkbox click

Postby Jeff Barnes » Mon Oct 18, 2010 11:58 pm

If I remove the "ON PAINT....." I still get the flickering.

Code: Select all  Expand view
#include "FiveWin.ch"

FUNCTION Test()
    LOCAL oDlgPat, lTest:=.t., oCbx, oRadio, nSelect
    DEFINE DIALOG oDlgPat RESOURCE "PatInfo" FROM 0,0 TO MAXROW(),MAXCOL() TRANSPARENT
        REDEFINE RADIO oRADIO  VAR nSelect OF oDlgPat  id 1014,1015
        REDEFINE CHECKBOX oCbx VAR lTest ID 1018
    ACTIVATE DIALOG oDlgPat
RETURN Nil

 


If I remove the "TRANSPARENT" the problem is not there.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Flickering in checkbox click

Postby Jeff Barnes » Tue Oct 19, 2010 12:39 am

Solved.

I went back to the beginning and it looks like the modified control.prg was not getting added.

Thanks for all the help.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 99 guests

cron