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

Home » Public Forums » archive » ? Weird DRAW widget VALUE ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
? Weird DRAW widget VALUE ? [message #14149] Wed, 27 January 1999 00:00
Peter Cornelius is currently offline  Peter Cornelius
Messages: 6
Registered: January 1999
Junior Member
Re again...

With IDL 4.0.1 on Windoze95, I am trying to use some code like:

[...]
PRO PDMENU298_Event, Event

COMMON DRAW_Comm

CASE Event.Value OF
[...]
'DISPLAY.Display Mode.ROI': BEGIN
MESSAGE, 'Event for DISPLAY.Display Mode.ROI', /INFORMATIONAL
WSET, DRAW288_Id
WIDGET_CONTROL, DRAW288_Id, GET_VALUE=win
HELP, DRAW288_Id
HELP, win
ROI=CW_DEFROI(DRAW288_Id)
HELP, ROI
END
[...]
ENDCASE
END
[...]

But what I get is the following:

% PDMENU298_EVENT: Event for DISPLAY.Display Mode.ROI
DRAW288_ID (DRAW_COMM)
LONG = 32
WIN STRING = 'Display Mode'
% Compiled module: CW_DEFROI.
% Compiled module: CW_BGROUP.
% Type conversion error: Unable to convert
given STRING to Long.
% Detected at: CW_DEFROI 232
c:\progra~1\rsi\idl40\lib\cw_defro.pro
% Type conversion error: Unable to convert
given STRING to Long.
% Detected at: CW_DEFROI 242
c:\progra~1\rsi\idl40\lib\cw_defro.pro
% Type conversion error: Unable to convert
given STRING to Long.
% Detected at: CW_DEFROI 264
c:\progra~1\rsi\idl40\lib\cw_defro.pro
ROI LONG = -1

Now, I expect CW_DEFROI to be in order, what puzzles
me is that I get STRING as return, although the DRAW288_Id
is ok (it's in the COMMON DRAW_Comm block 8-S). In CW_DEFROI,
it hangs just at the lines

[...]
WIDGET_CONTROL, draw, GET_VALUE=win
WSET, win
[...]

which obviously doesn't work with a STRING. Is there anyone who
can give me a hint how this STRING could have gotten into
win?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ls and PV-WAVE problem on HP-UX 10.20
Next Topic: ls and PV-WAVE problem on HP-UX 10.20

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

Current Time: Wed Oct 08 19:13:59 PDT 2025

Total time taken to generate the page: 0.00824 seconds