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

Using subscripts in a list control

Status
Not open for further replies.

timmay3141

Programmer
Joined
Dec 3, 2002
Messages
468
Location
US
I'm writing a program where the user will be able to enter the chemical formula of a molecule into an edit box, and it will also be displayed in a list control. I want the edit box and list control to display the subscripts of atoms appropriately, making them small rather than making them normal size. I also have a list control that displays these molecules, so I want it to make the numbers subscripts as well. I think I can do the edit box if you use a rich edit control (correct me if I'm wrong, I've never used it before), but the list control is more of a problem. As far as I can tell, you can't use multiple fonts in a list control.
 
>> As far as I can tell, you can't use multiple fonts in a list control.

No you can't... well yes you can [lol]

Seriously you need to do an "ownerdraw" List control. That way you paint the contents of the cells yourself.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top