[RESOLVED] Different Captions For TitleBar and TaskBar
I just downloaded an awesome free icon editor from www.iconempire.com and I noticed somethin weird. Somehow they have a different caption for the titlbar than they do for the Titlebar.
Now I would hazarad a guess that it was written in C++ and had more control over lower level stuff, but shouldn't there be a way to do this with an API in VB?
I attached a screenshot. (This is the titlebar and the taskbar AT THE SAME TIME)
my friend did it once for his app in vb6 so its posible, ill try searching some APIs
1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
2) If someone has been useful to you please show your respect by rating their posts.
3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
4) Before posting your question, make sure you checked this links: MICROSOFT MSDN -- VB FORUMS SEARCH
5)Support Classic VB - A PETITION TO MICROSOFT
1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
2) If someone has been useful to you please show your respect by rating their posts.
3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
4) Before posting your question, make sure you checked this links: MICROSOFT MSDN -- VB FORUMS SEARCH
5)Support Classic VB - A PETITION TO MICROSOFT
Its probably because its a trial version. There is also a Nag screen. i would assume that if you were to purchase the product the captions would behave normally and no nag screen. You may not be able to override it it they coded it in to behave this way.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Its probably because its a trial version. There is also a Nag screen. i would assume that if you were to purchase the product the captions would behave normally and no nag screen. You may not be able to override it it they coded it in to behave this way.
It leaves trial mode if you register for free (give them your email) on their website. So that is not.
I think you guys (except dglienna) might have misunderstood. That screenshot was while the app was maxmized. It doesn't do different things while maximized and minizmed. It has a different caption while maximized.
Wiz, I'll look into that and let you know if it works. Thanks.
Here's an idea... I haven't tried it, so I could be completely off base. If I understand what you're asking, you want the title bar and the window to have difering captions, right?
Why not make one form that is invisible, but appears on the title bar. Give it a gotfocus event, that checks the window state of a visible form that does not appear on the title bar, and sets it to window-state normal/ minimised as necessairy.
It may or may not work, I'll try making something right now and post it up if I can work it out.
Don't listen to me.
Surveillance.
This works:
On form1(the one to display on the screen)
VB Code:
Private Sub Form_Load()
Form2.Show
End Sub
on form2(the one to have in the start bar)
VB Code:
Private Sub Form_Load()
Me.Visible = False
End Sub
Private Sub Form_Resize()
If Not Me.WindowState = 1 Then
Me.WindowState = 1
Else
If Form1.WindowState = 1 Then
Form1.WindowState = 0
Else
Form1.WindowState = 1
End If
End If
End Sub
Last edited by Surveillance; Sep 30th, 2005 at 03:02 AM.
Surveillance, that is a decent idea, but I was hoping to do it in a better way. I was hoping wiz would be able to find what he had mentioned.
Harsh Gupta, as I already mentioned, I am not trying to get different captions when it is minimized and maximized. I was different captions for the titlebar and task bar when it is maximized. That screen shot above are crops from the program IN ONE SCREENSHOT. Meaning that it had a caption in the taskbar and titlebar that were different at the same moment.
What does that have to do with anything? Their app is working fine. I want to get the same effect for my program. I doubt Tech support knows anything about VB6.
eyeRmonkey's question is very interesting and it will drive me nuts until I find the solution - will let you know once I do.
Thanks!
That rules. I hope whatever you find can work in VB6. I found some stuff (well, dglienna found some stuff for me) but it is in C++ and I don't feel like compiling it or editing it or converting it or whatever.
did you try using spy++ to see weather its a control?
1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
2) If someone has been useful to you please show your respect by rating their posts.
3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
4) Before posting your question, make sure you checked this links: MICROSOFT MSDN -- VB FORUMS SEARCH
5)Support Classic VB - A PETITION TO MICROSOFT
but it has a flaw..........if frmMain is minimised then the user can understand that u have played a nice trick, n also u have to search for the minimised main form!!!!
1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
2) If someone has been useful to you please show your respect by rating their posts.
3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
4) Before posting your question, make sure you checked this links: MICROSOFT MSDN -- VB FORUMS SEARCH
5)Support Classic VB - A PETITION TO MICROSOFT
Thanks guys. But that gives a really bad effect IMO. Especially since I have the option enabled in XP to animated min/max operations. One animated its way to down by the start button and the other animated down into the task bar. The IconMaker goes into the taskbar which makes me think it ACTUALLY has different captions.