Page 1 of 1

Problem with xHabour/Dbutton

Posted: Wed Nov 09, 2005 2:21 am
by vilian
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

Posted: Fri Nov 11, 2005 10:18 am
by Antonio Linares
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.

Posted: Fri Dec 02, 2005 2:30 pm
by vilian
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