Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Superscript text in dialog boxes

Posted on 1998-02-23
3
Medium Priority
?
429 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
ID: 1316500
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
ID: 1316501
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
ID: 1316502
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

782 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