Progressbar Control

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Progressbar Control

Post 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.
User avatar
gfilatov
Posts: 1084
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Progressbar Control

Post 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:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Progressbar Control

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
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

Post by Rathinagiri »

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.
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: Progressbar Control

Post by Mario Mansilla »

Thank you very much, Roberto and Grigory for the explanation.
Greetings
Mario Mansilla
User avatar
mol
Posts: 3728
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Progressbar Control

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