Page 1 of 1

Progressbar Control

Posted: Wed Aug 12, 2009 3:12 pm
by Mario Mansilla
Hola :
ejecuto el demo3 de los ejemplos del control Progressbar de Hmg 2.9.3 y siempre coloca los colores por omisión .
Win Xp Sp2
Saludos .
Mario Mansilla

Hi:
demo3 run the examples of HMG 2.9.3 ProgressBar control does not work and always puts default colors.
Win Xp sp2
Greetings.

Re: Progressbar Control

Posted: Wed Aug 12, 2009 3:21 pm
by gfilatov
Mario Mansilla wrote:
Hi:
demo3 run the examples of HMG 2.9.3 ProgressBar control does not work and always puts default colors.
Win Xp sp2
Hello Mario,

This is standard behaviour of ProgressBar control at the themed Win Xp.
Try to revise this control at the Classic Theme (similar to Win9x) :idea:

Re: Progressbar Control

Posted: Wed Aug 12, 2009 11:12 pm
by Roberto Lopez
Mario Mansilla wrote:Hola :
ejecuto el demo3 de los ejemplos del control Progressbar de Hmg 2.9.3 y siempre coloca los colores por omisión .
Win Xp Sp2
Saludos .
Mario Mansilla

Hi:
demo3 run the examples of HMG 2.9.3 ProgressBar control does not work and always puts default colors.
Win Xp sp2
Greetings.
As Grigory said, themed XP and Vista applications, does ignore color messages for some controls.

IMHO, this is because MS wants that most controls colors being, theme colors.

I agree with this. I guess that non-theme colors should be used only in very special situations, when is really needed, if not, the interface becomes clumsy and confusing for the user.

Besides that, there is another issue that I've already commented:

You could, eventually 'paint' any control 'by hand' using a method called 'owner-drawn'.

The problem with it, is that the control appearance could become not consistent with the other (not owner-drawn) controls from a Windows version to another.

This currently could happen between Win9x apps and XP-themed/Vista-themed ones.

This is because I've avoided the use of 'owner-drawn' controls.

A clear example of this, is the tab control background.

In XP-themed apps it is filled with a color gradient depending on selected theme. having a background color for tab could give us an ugly an terribly inconsistent look.

Regards,

Roberto.

Re: Progressbar Control

Posted: Thu Aug 13, 2009 4:23 am
by Rathinagiri
Thanks for the opt and simple explanation Roberto.

Re: Progressbar Control

Posted: Thu Aug 13, 2009 12:09 pm
by Mario Mansilla
Thank you very much, Roberto and Grigory for the explanation.
Greetings
Mario Mansilla

Re: Progressbar Control

Posted: Wed Aug 26, 2009 5:30 am
by mol
Roberto Lopez wrote: You could, eventually 'paint' any control 'by hand' using a method called 'owner-drawn'.
I didn't expect that I will need 'owner-drawn' method, but...
While working with my application, i need to create sample graph and I want to use progressbar to do it.
http://hmgforum.com/viewtopic.php?f=5&t=822
Where can I find sample about using owner-drawn method?