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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to show subscripts on the title bar

Status
Not open for further replies.

xwb

Programmer
Jul 11, 2002
6,828
GB
I would like to show something like "CO2 Output" or "H2SO4 Output" with the numbers as subscripts. Does anyone know if this is possible? I can't set any font characteristics for the characters in the title bar.
 
Having looked at a lot of web sites, it doesn't look like this is possible.

What someone suggested is to create a window without a title bar and make up my own title bar with my own special font settings.

I can make a very basic one which slaps on the colour and the title in the font that I need but it doesn't look like a normal title bar because I haven't programmed in the shading or any of the other standard behaviour.

Does anyone have code for a title bar? Would be nice if it was an FLTK title bar but Windows SDK or MFC would suffice - they're quite easy to translate.
 
I'm thinking let the window draw its title bar the way it's used to doing it, but leave the title blank. Then add a window "on top of" the title bar with your text and don't paint the background so the already drawn title bar will "show thru.
 
Idea might work - I'll have to see if I can capture the mouse events so that the fake title bar follows the real title bar when I move the window around. When I did stuff like this in the past, the fake one sometimes stayed behind (as in windows on top of boxes in grids).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top