Problem with xHabour/Dbutton

Post Reply
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Problem with xHabour/Dbutton

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Post 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
Post Reply