2 little questions: (Object windows with widget_draw) AND (geting working directory) [message #37617] |
Wed, 07 January 2004 07:01 |
Nuno Oliveira
Messages: 75 Registered: October 2003
|
Member |
|
|
Hi.
I have two little questions that perhaps someone could give me a quick
answer.
I'm trying do work an object window created with widget draw. Seems to me,
for what I have seen from the tutorial and programs distributed from people
on this group, that I'm doing all the steps needed.
I do something like this (omitting unnecessary code):
Draw = WIDGET_DRAW(tlb, XSIZE=xsize, YSIZE=ysize, GRAPHICS_LEVEL=2)
;graphics_level=2 to set as object window
;then .
WIDGET_CONTROL_, draw, GET_VALUE=myWindow
;in this statement myWindow should now be an Window Object?
;assuming that I have a View with a lots of pretty things
; I do
myWindow->Draw, myView
;and this is the point where I get the error:
;MESSAGE: 'Unable to invoke method on NULL object reference: myWindow'
when the problem arrived I put a debugging statement
HELP, myWindow
just after the statement widget_control, draw, GET_VALUE=myWindow
And the output is WINDOW OBJREF=<NullObject>
when I suppose it should and WindowIDLObject
Which step am I missing?
Second question: There is a command/function that returns the directory
from which the idled was calling from? I'm looking in the quick
reference -> 'Operating System Access' and I don't find it. If it doesn't
exist can you give a clue how can I get it?
(Perhaps I can take a long making, in unix, a spawn procedure with pwd and
get the output to a string? But in Windows OS Family?)
|
|
|