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).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.