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.
Progressbar Control
Moderator: Rathinagiri
-
- Posts: 270
- Joined: Wed Aug 13, 2008 2:35 pm
- Location: Córdoba - Argentina
Re: Progressbar Control
Hello Mario,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
This is standard behaviour of ProgressBar control at the themed Win Xp.
Try to revise this control at the Classic Theme (similar to Win9x)
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Progressbar Control
As Grigory said, themed XP and Vista applications, does ignore color messages for some controls.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.
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.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Progressbar Control
Thanks for the opt and simple explanation Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
-
- Posts: 270
- Joined: Wed Aug 13, 2008 2:35 pm
- Location: Córdoba - Argentina
Re: Progressbar Control
Thank you very much, Roberto and Grigory for the explanation.
Greetings
Mario Mansilla
Greetings
Mario Mansilla
Re: Progressbar Control
I didn't expect that I will need 'owner-drawn' method, but...Roberto Lopez wrote: You could, eventually 'paint' any control 'by hand' using a method called 'owner-drawn'.
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?