comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » y_width of xyouts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: y_width of xyouts [message #17564 is a reply to message #17449] Thu, 28 October 1999 00:00 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
"Martin.Schultz@dkrz.de" wrote:

> In article <3815E4EF.93A13CA6@fz-juelich.de>,
> "R.Bauer" <R.Bauer@fz-juelich.de> writes:
>> Hi,
>>
>> I like to know exactly the y_width of a text in normal coordinates.
>> I have written a small routine which unfortunately don't run with all
>> devices set.
>>
>> Any other ideas are welcome
>>
>> I know already !D.Y_CH_SIZE but its only useful on some windows systems.
>>
> Hallo Reimar,
>
> I am not exactly sure why !D.Y_CH_Size shouldn't work on all devices.
> Here is a piece of code from my AxLabel routine which may help:
>
> ; Get y position for label
> ; Subtract one character size
> PY = !Y.Window[0]
> PYOFF = CONVERT_COORD(1,!D.Y_CH_SIZE*CHARSIZE,/DEVICE,/TO_NORMAL)
> PY = PY - 1.05*PYOFF[1]
>
> (it calculates the position for a label on the x axis by placing it
> below the axis with a 5% margin)
>
> Viele Gruesse,
> Martin

Hallo Martin,

hast Du Dich schon gut eingelebt?

I am not meaning that !D.Y_CH_Size don't work more I like to say it's not
exactly.
We found differences between aix and NT IDL.

If you try to get the height of one char or one line this will be quiet good
enough. But what's with
formulars or many lines with increments or exponents.

How did you determine the space between two lines?


Gruss

Reimar
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: get_boundingbox
Next Topic: How to import an source interface ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:00:16 PDT 2025

Total time taken to generate the page: 0.24262 seconds