#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    7
    Rep Power
    0

    Change progressbar color


    I didn't find a good way to change progressbar color.

    This method only works disabling runtime themes and I don't want to do it.

    SendMessage(ProgressBar1.Handle, PBM_SETBARCOLOR, 0, clBlue) ;

    I know I can use custom styles but they change a lot of things and I'd like to change only progressbar. Besides Bitmap Style Designer seems to be bugged since If I save a new style then I can't see it in Options/Application/Appearance.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    352
    Rep Power
    7
    I've found that if I theme my app (XE2), then any attempt to color my application is just disregarded, so I gave up on styles where I want custom colors.

    As to your comment, "If I save a new style, then I can't see it in Options/Application/Appearance."

    From here , you can download a few new styles, and the last sentence in the article explains where to place the files to make them available to the IDE.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2014
    Posts
    7
    Rep Power
    0
    I tried again and I can see and set my custom style.
    The problem is that I cannot find a Windows 7 look like style.

    If a use any of available styles or try to edit them, my app is completely redesigned.

    I'd like Windows 7 runtime style and I would only change progress bar color. Besides if I do it using styles then all progress bars will be of one color. I need some bars on one color and others of another color.

IMN logo majestic logo threadwatch logo seochat tools logo