Solved

Superscript text in dialog boxes

Posted on 1998-02-23
3
420 Views
Last Modified: 2013-11-20
How can superscript text (x^2, y^3, etc. without having to show the carrot symbol) be displayed in dialog boxes? Also, to update this at run-time, how can the strings be concatenated to indicate superscript text?
0
Comment
Question by:makarand031097
3 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
Comment Utility
Most of the regular controls in a dialog can only use one font. A particular font can either be superscripted or not, but it cannot change once created. If you need to use more than one font, then you will have to use a rich edit control, but then you will have some work ahead of you because a rich edit control can not be easily placed in a dialog without some work.
0
 

Author Comment

by:makarand031097
Comment Utility
I am using a *single* font in the dialog box. However, I could not find a way to display superscripted text. Secondly, I will need to update the text fields dynamically. How do I compose strings and how do I indicate that certain text in it should be superscripted?
0
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
Comment Utility
No common control allows you to use superscript text since as thui pointed out absolutly correctly these controls can use only one font. You have to choices. First you can use UNICODE, create you own font when you can define characters you need. Since in UNICODE you can display up to 65536 characters you can do this. But only windows NT supports UNICODE windows 95 uses ANSI. Other way is to create you own control, i.g. ActiveX control and perform your own painting characters as superscripted. This involves rather much work but this is the only way to do this.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now