Results 1 to 6 of 6

Thread: Changing taskbar-button caption without changing form caption

  1. #1
    Joost
    Guest

    Changing taskbar-button caption without changing form caption

    Hi,

    Is there any way to change the caption of the taskbar button, without changing the form's caption?

    Thanks.

  2. #2
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Well, i think you will need to subclass your window. Check planetsourcecode.com and vbaccelerator.com

    They may have some samples.

  3. #3
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    You could make a form that's shown in the taskbar and then your real form not and have the fake one just make you're real one pop up when you ise the taskbar button

  4. #4
    Joost
    Guest
    Using another form for every form is not a very easy solution.

    And I cannot find any samples at planetsourcecode and vbaccelerator

  5. #5
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    This indirectly came up a long time ago somewhere, and from what I looked at, what you see in the taskbar is just a reflection of what's in the caption itself, so there isn't a way to just change the taskbar version as far as I know, unless it's possible to take over drawing of the taskbar yourself, and then do something different. What would be easier would be to have a variant of that method and give the caption property the value you want to show in the taskbar, and then have your own titlebar that you draw yourself in place of the normal one. Then you can put anything in the form itself without affecting the taskbar one.
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

  6. #6
    Joost
    Guest
    I'm sure that it is possible, I have seen this in other programs.

    I have tried to solve the problem with another form which activates the normal form, but I coudn't get it working just like a normal form.

    Drawing a titlebar is not possible with the new theme system of
    Windows XP, because it's possible to skin the windows, just like in WinAmp.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width