Re: Characters and buttons [message #19834] |
Wed, 19 April 2000 00:00 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Jan Cami <jancami@my-deja.com> writes:
> Hi folks,
>
> This looks like the ideal place to post this question :
> is it possible -- well, given the excellent people around here, I will
> rephrase this --
> How can I put things like superscript, Greek letters, ... onto
> a widget_button ?
> Say that I want a button that would show something like
> "F!D!7k!N!5".
> Any hints ??
An untested suggestion...
Maybe you could create the button with an image?
You could create an off-screen window, use XYOUTS to create your text,
and then TVRD the image. Then you can create the button with the
BITMAP keyword, using the image you just loaded. I can see lots of
places to go awry, especially on how to make a window of the right
size. Good luck!
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: Characters and buttons [message #19836 is a reply to message #19834] |
Wed, 19 April 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Jan Cami (jancami@my-deja.com) writes:
> This looks like the ideal place to post this question :
> is it possible -- well, given the excellent people around here, I will
> rephrase this --
> How can I put things like superscript, Greek letters, ... onto
> a widget_button ?
> Say that I want a button that would show something like
> "F!D!7k!N!5".
> Any hints ??
Even excellent programmers have to use the tools they are
given. :-(
The way this is normally handled is to modify the design
criteria to indicated that what you REALLY want is the
label "Magnetic Flux", rather than the equation itself.
One can always make the argument that this means more to
the head of the funding agency than the equation does
anyway. :-)
Cheers,
David
P.S. If worst came to worst and your boss is implacable,
I can imagine some convoluted method to create what I
wanted with, say, Microsoft Word's equation editor and
then some exquisitely involved method of producing a bitmap
from that, which I could then paste onto a button. But
I've always found the design criteria method far simpler.
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|