Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Caption but show caption in task bar

Status
Not open for further replies.

SpiderBear6

Programmer
Sep 17, 2003
422
AU
If there any way that anyone knows of to make a form show up in the task bar but not have a form caption bar? I know if I remove the caption text, set the border to none and turn off the control box, I get no border but I also don't get an item for the form in the task bar.

I know this is probably a silly thing to do but the form would look better without a caption.

Cheers all and thanks.

--------------------------------------
"We are star-stuff. We are the universe made manifest trying to figure itself out."
-- Delenn in Babylon 5 - "A Distant Star"
 
But because I don't want a form caption, I have made the caption text of the form nothing. This means that no words are shown in the task bar next to the icon.

--------------------------------------
"We are star-stuff. We are the universe made manifest trying to figure itself out."
-- Delenn in Babylon 5 - "A Distant Star"
 
My first thought would be to change the Caption color to the same as the Titlebar itself, but it's not quite that easy. So rather than change the font color you might just draw a rect of the same color over the caption remembering to change colors when the form is active or inactive and to move it with the form. There has got to be an easier way but I'm too tired tonight.
 
Thanks for your help anyway, DrJavaJoe.

--------------------------------------
"We are star-stuff. We are the universe made manifest trying to figure itself out."
-- Delenn in Babylon 5 - "A Distant Star"
 
Sorry but I completely forgot about this thread. I've seen solutions that change the font color but seems like way to much effort if you're just going to change it to the same color as the background. Drawing a rect over the caption would be much easier. Here's a link to a Google Group, the second post describes how to change the font.


"Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'."
 

Check out the SetWindowRgn API. I think it may do the trick for you. Also check the SetWindowPos and SetWindowPlacement API's.

Good Luck

 
vb5prgrmr,

Decided it was all too much effort just to have the form look at little prettier.

Cheers.

--------------------------------------
"We are star-stuff. We are the universe made manifest trying to figure itself out."
-- Delenn in Babylon 5 - "A Distant Star"
 
Hi
I just made a form with:
Control Box set to False
MaxButton set to False
MinButton set to False
Caption = ""

The form has one Button on it.(caption is "Minimise")

the following code is in the form.

Private Sub Command1_Click()
Me.WindowState = 1
End Sub

Private Sub Form_Resize()
If Me.WindowState = 1 Then
Me.Caption = "My Test"
Else
Me.Caption = ""
End If
End Sub

Is this the action You need?


Good Luck
Bob


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top