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

Home » Public Forums » archive » Problem with GetProperty of IDLgrContour
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
Problem with GetProperty of IDLgrContour [message #34770] Tue, 22 April 2003 05:19
bias is currently offline  bias
Messages: 7
Registered: February 2003
Junior Member
Hello,

I've been agonizing now for some hours over a problem
with using the HIDE property of a contour object.
It occurs at the following (abbreviated) part of my
widget program:

; open dialog to manipulate contour
;
pro openContour, Event
...

; retrieve HIDE property
oContour->GetProperty, HIDE=hideContour ;<-- (A)
IF hideContour THEN $
;...do something

; open dialog
contourDialog, GROUP_LEADER=Event.TOP

...
end

...

; event handler for contour dialog
;
pro onButton, Event
...

;oContour->GetProperty, HIDE=dummy ;<-- (B)

; checkbox to switch visibility of contour
IF Event.ID EQ ViewContourButtonID THEN $
BEGIN
oContour->SetProperty, HIDE=1-Event.SELECT ;<-- (C)
; redraw the view
oWindow->Draw, oView
END

...
end

The proplem is that (C) does not work when I call (A)
without using line (B) (the current situation).
It seems that I have to call (B) though I do not need
the information here. The contour is hidden by default
when 'openContour' is called.
I can try to switch the visibility in the dialog as often
as I want but it has no effect on the contour object.
I saw that the redraw workes because I tried the same with
a polyline object and everything was fine.
It also works if I call 'openContour' again (which is
somehow similar to using (B)).
I don't know what's wrong here and would appreciate
any hint.

Thanks,
Tobias
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Pie Charts in IDL
Next Topic: Re: IDLWAVE question

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

Current Time: Sat Oct 11 12:20:16 PDT 2025

Total time taken to generate the page: 0.68809 seconds