Problem with GetProperty of IDLgrContour [message #34770] |
Tue, 22 April 2003 05:19 |
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
|
|
|