Solved

Superscript text in dialog boxes

Posted on 1998-02-23
3
425 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 97
MaxSpan challenge 9 140
Problem to event 3 123
how to split multiple lines delimiter : 8 134
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…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

752 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