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

Home » Public Forums » archive » 1)analog #define in IDL? 2) get position of a window?
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: 1)analog #define in IDL? 2) get position of a window? [message #4131 is a reply to message #4059] Sun, 30 April 1995 00:00 Go to previous message
todd is currently offline  todd
Messages: 25
Registered: February 1994
Junior Member
In article <3nnhvl$p8c@mirv.unsw.edu.au>, feigin@saturn.gas.unsw.EDU.AU (Michael Feigin,ARC Research Fellow,AS,951231) writes:
|>
|> Dear colleagues,
|>
|>
|> 1. The problem is that it's necessary to define some variables in a IDL program
|> in such a way that allows easy to change them in the future. I understand
|> that it may be implemented via using COMMON BLOCKS but it's extremely poor
|> style.
|> Is there some directive in IDL similar pre-processor directive
|> #define in C?

I believe someone already mentioned it, but to be complete: use an
include file. Make your definitions in a file, say define.pro, then
include it where necessary via @define.pro.

|> 2. According to IDL Reference Guide p.3-14 keyword GET_WINDOW_POSITION (to DEVICE proc)
|> returns (X,Y) position of the current window on the screen. What does it
|> mean 'current' window? Is this a window that has been constructed the last?
|> Or is it an active window? To put in other way, I'd like to know a position
|> of a c o n c r e t e window on the screen. How can I get it?
|> Is it possible to use ID of this window in any way?
|>

The device call accesses the curent device. So you get the
position of the currently active window.

Okay, you want the position of window 3:

idl> wset,3
idl> device,get_window_postion=pos

|> Sincerely,
|>
|> Michael.
|>


S`all right?

Todd

--

Todd Ratcliff
UCLA Dept. of Earth & Space Sciences
Room 2707 Geology Building
UCLA Box 951567
Los Angeles, CA 90095-1567 todd@artemis.ess.ucla.edu
(310)825-3118 http://artemis.ess.ucla.edu/~todd/home.html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Common blocks
Next Topic: [Q] MathLink connection with IDL

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

Current Time: Fri Nov 28 09:42:35 PST 2025

Total time taken to generate the page: 0.76956 seconds