-
1 Attachment(s)
[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)
-
Re: Different Captions For TitleBar and TaskBar
my friend did it once for his app in vb6 so its posible, ill try searching some APIs
-
Re: Different Captions For TitleBar and TaskBar
Check this API i g2g so this might help you,or not
Declare Function SetLayeredWindowAttributes
-
Re: Different Captions For TitleBar and TaskBar
try this:
VB Code:
Private Sub Form_Load()
Me.Caption = "IconMaker - Blank.ico"
End Sub
Private Sub Form_Resize()
If Me.WindowState = 1 Then
Me.Caption = "IconMaker 2.10"
End If
If Me.WindowState = 0 Then
Me.Caption = "IconMaker - Blank.ico"
End If
End Sub
hope this helps you.............absolutely no API needed!!!!
-
Re: Different Captions For TitleBar and TaskBar
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.
-
Re: Different Captions For TitleBar and TaskBar
Trillian does the same thing. In the main form, it's graphical, and in the taskbar, it just says Trillian.
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RobDog888
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.
-
Re: Different Captions For TitleBar and TaskBar
Wiz, that link you posted is for alphablending the window. That isn't what I was after. But thanks for trying.
-
Re: Different Captions For TitleBar and TaskBar
If you can register and get it free then why do they even try to sell it for $29.99? Maybe because of the caption bar issue?
-
Re: Different Captions For TitleBar and TaskBar
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
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by eyeRmonkey
Wiz, that link you posted is for alphablending the window. That isn't what I was after. But thanks for trying.
it seems u forgot to scroll up the page :( ............i tried one for the same thing you wanted!!! Post no. - 4
neway..........i just wanted to know if i m on the right track :rolleyes: !!!!
-
Re: Different Captions For TitleBar and TaskBar
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.
Anyone else have any imput on this?
-
Re: Different Captions For TitleBar and TaskBar
Did you try contacting their tech support?
-
Re: Different Captions For TitleBar and TaskBar
probably u can do that in Registry!!!!! i dont know but u can try this!!
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RobDog888
If you can register and get it free then why do they even try to sell it for $29.99? Maybe because of the caption bar issue?
That's not relevant at all.
eyeRmonkey's question is very interesting and it will drive me nuts until I find the solution - will let you know once I do. :wave:
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RobDog888
Did you try contacting their tech support?
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.
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RhinoBull
That's not relevant at all.
eyeRmonkey's question is very interesting and it will drive me nuts until I find the solution - will let you know once I do. :wave:
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. :)
-
Re: Different Captions For TitleBar and TaskBar
did you try using spy++ to see weather its a control?
-
Re: Different Captions For TitleBar and TaskBar
No, I'll try that when I get home.
They might have faked a titlebar but I don't know how they would have have got the XP styles to apply to it.
-
Re: Different Captions For TitleBar and TaskBar
RhinoBull, I don't suppose you have found anything on this topic?
-
Re: Different Captions For TitleBar and TaskBar
Yep, I did something myself (just recently got an idea :cool: ) and it seems to work. :) See attachments.
ps, KIM that it's a very very quick sample project so you might need to work with it to make it better. Anyway, enjoy it. :wave:
EDIT: for attachments see post #25.
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RhinoBull
Yep, I did something myself (just recently got an idea :cool: ) and it seems to work. :) See attachments.
ps, KIM that it's a very very quick sample project so you might need to work with it to make it better. Anyway, enjoy it. :wave:
well done RB :lol:
-
Re: Different Captions For TitleBar and TaskBar
That was the quickest QA ... :p
Thanks.
-
Re: Different Captions For TitleBar and TaskBar
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 Attachment(s)
Re: Different Captions For TitleBar and TaskBar
As I said it's a very quick sample so make it better as you wish - it just gives you an idea and the rest is really upto your imagination.
Best regards.
ps, for what it's worth here is a "fixed" version.
-
Re: Different Captions For TitleBar and TaskBar
Quote:
you might need to work with it to make it better
sorry......missed out this part!!!! but seriously.........cool idea!!!
-
Re: Different Captions For TitleBar and TaskBar
Quote:
ps, for what it's worth here is a "fixed" version
nothing fixed....... :p :D
-
Re: Different Captions For TitleBar and TaskBar
-
Re: Different Captions For TitleBar and TaskBar
Gee, that code looks mighty familiar. :D
It was my understanding that the different caption in the taskbar was changed by the icon maker code somehow or something like that?
-
Re: Different Captions For TitleBar and TaskBar
Nevermind, I think I have dyslexia. :D I could have answered it earlier if I realized he wanted "To" change it and not prevent it. :blush:
-
Re: Different Captions For TitleBar and TaskBar
I was thinking of something like that. Glad to see that it works.
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by Harsh Gupta
nothing fixed....... :p :D
LOL, I forgot to rebuild zip file... so re-download it from post #25. :)
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RobDog888
Gee, that code looks mighty familiar. :D ...
????????
-
Re: Different Captions For TitleBar and TaskBar
Quote:
Originally Posted by RobDog888
... I could have answered it earlier if I realized he wanted "To" change it and not prevent it. :blush:
Quote:
Originally Posted by dglienna
I was thinking of something like that. Glad to see that it works.
Yea, but I am the idea's Patentee. ;)
-
Re: Different Captions For TitleBar and TaskBar
I couldnt find my posted code yet (may be an attachment) but here is one of my earlier ones from a year and a half ago.
http://www.vbforums.com/showpost.php...3&postcount=11
:D
-
Re: Different Captions For TitleBar and TaskBar
Well, I wasn't aware of that post nor I searched forums at all - if I did I would simply provide link.
Regards.
-
Re: Different Captions For TitleBar and TaskBar
:D Just giving you a hard time RB. ;) Its all good. :)
Also, backing myself up that if I read the Q correctly I would have answered it earlier. :)
-
Re: Different Captions For TitleBar and TaskBar
No problem but I'm still the Patentee and not planning to sell it ... ;) :wave:
-
Re: Different Captions For TitleBar and TaskBar
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.
Don't suppose anyone has a clue how to get that?
-
Re: Different Captions For TitleBar and TaskBar
Must not be in VB, I guess. You would have to hide the main form in the minimize event, and restore it when the user clicked on the taskbar.