Re: Different Captions For TitleBar and TaskBar
Or in case anyone hasnt mentioned it before, its either done with subclassing the taskbar using something like moeurs C++ dll to subclass external app or its all written in C++, or even just APIs to SendMessage to the taskbar passing the WM_SETTEXT argument to change the taskbars caption for it.
Re: Different Captions For TitleBar and TaskBar
That is what RB and RD posted already dglienna. Unless I misunderstood you...
Re: Different Captions For TitleBar and TaskBar
Also EM, your saying that it has the same caption as the form if the window state is not maxed?
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by eyeRmonkey
... One animated its way to down by the start button and the other animated down into the task bar. ...
Don't suppose anyone has a clue how to get that?
Not sure I follow you this time arround, though. You can create different animation - perhaps fading form out would work too.
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RhinoBull
Not sure I follow you this time arround, though. You can create different animation - perhaps fading form out would work too.
Sorry that was confusing. You're right.
In win XP there is an option to animate the window as it is being minimized or maximized. Since I have this option on, your solution won't work RB because it looks really bad to watch 1 form (with .ShowInTaskbar = False) minimize to right above the start button and the other form (that is off the screen and invisible) minimize to the taskbar.
Quote:
Originally Posted by RobDog888
Also EM, your saying that it has the same caption as the form if the window state is not maxed?
Not sure what you mean RD. Let me restate what I was trying to say.
Your guys' solution was with 2 forms. The IconMaker did it with 1 form. I could tell this because when I minimized the form, it animated into the taskbar where as with your guys' solution, it animates to right about the start button (since show in taskbar = false for that form).
So all in all, my question is how do I do this with an API/subclassing and no extra form?
Re: Different Captions For TitleBar and TaskBar
When your form is max'ed it shows one caption on the form and another in the taskbar. What about when its in Normal window state? Does it also show the two different captions?
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by eyeRmonkey
...So all in all, my question is how do I do this with an API/subclassing and no extra form?
Hmmmmmmmmmmmmmmmmmmmm
You might need to skin your app so you can create custom titlebar/caption but use "original" form caption for taskbar. Take a look at vbAccelerator's NeoCaption Component. I think it would be your best bet to achive this.
Re: Different Captions For TitleBar and TaskBar
Seems like allot of work either way.
Seeing how nobodys asked this yet, why do you want to make them different?
Is it really going to be worth it?
Re: Different Captions For TitleBar and TaskBar
I want it because I want the taskbar caption to show the name of the project that is open (like VB does - So you don't get confused about which instance of the program is which) and I want the actual titlebar to be organized like so: LightFusion - ProjectName - ChildName.
Its not that big of a deal, but it would be nice.
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by eyeRmonkey
I want it because I want the taskbar caption to show the name of the project that is open (like VB does - So you don't get confused about which instance of the program is which) and I want the actual titlebar to be organized like so: LightFusion - ProjectName - ChildName.
Its not that big of a deal, but it would be nice.
Yeah, its a nice little nifty feature + a challenge is always nice :D
Re: Different Captions For TitleBar and TaskBar
Has anyone made any progress on this?
Re: Different Captions For TitleBar and TaskBar
Oh ya, I forgot to tell you I solved the whole thing but accidentally deleted it. :D Jk.
Actually I did get a small bit farther. The taskbar is actually a variation of the toolbar control. Each "window" that is represented in the taskbar is actually a toolbar button. So doesnt look good for using SendMessage since there are no handles for the buttons.
If anything else popups up I'll let you know.
Re: Different Captions For TitleBar and TaskBar
Cool. Thanks for the update RD. :D
Re: Different Captions For TitleBar and TaskBar
It doesnt look too good as the solution probably requires a c++ dll or completely written in c++. Is it really going to be worth all this work? :)
Re: Different Captions For TitleBar and TaskBar
Probably not even close to worth all the work. It would be nice to find out though. A C++ DLL wouldn't be too bad, if someone already made it for us that is. :) Don't worry too much about it.
Thanks to everyone for your efforts. I will mark this resolved and if anyone figures anything out feel free to revive the thread.
PS - Congrats RD! 19,000 posts!