FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with xHabour/Dbutton
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Problem with xHabour/Dbutton
Posted: Wed Nov 09, 2005 02:21 AM

hi,

When use dbuttons with clause WHEN the figure is shown with a deep black color! The problem alone appears in buttons that it has a specified clause WHEN.

Sds,
Vilian F. Arraes

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Problem with xHabour/Dbutton
Posted: Fri Nov 11, 2005 10:18 AM

Vilian,

If WHEN returns false, then the control is painted as disabled, that may be the reason why it looks different.

You may modify class DButton to avoid painting the control in a different way if it is disabled.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Problem with xHabour/Dbutton
Posted: Fri Dec 02, 2005 02:30 PM

Antonio,

Already I obtained to identify that the problem is in the function hPalBitmapDraw() that in Windows XP is painting missed the figure of the button, but does not know where to find this function! You can help me?

thanks,
Vilian F. Arraes

vilian@vfatec.com.br

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil

Continue the discussion