Re: Problem with GetProperty of IDLgrContour [message #34769] |
Tue, 22 April 2003 06:17  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Tobias Umblia (bias@planet-interkom.de) writes:
> 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.
I suspect you are getting two events for the same
button through your event handler. Do you have the
keyword NO_RELEASE set for these buttons? My guess
is, you should. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Problem with GetProperty of IDLgrContour [message #34862 is a reply to message #34769] |
Wed, 23 April 2003 04:53  |
bias
Messages: 7 Registered: February 2003
|
Junior Member |
|
|
David Fanning <david@dfanning.com> wrote in message news:<MPG.190eeec5621d7061989b61@news.frii.com>...
>
> I suspect you are getting two events for the same
> button through your event handler. Do you have the
> keyword NO_RELEASE set for these buttons? My guess
> is, you should. :-)
>
> Cheers,
>
> David
But this is exactly what I want, because it is
a toggle button and I need to know whether it was set or
released to switch the HIDE property of my contour
accordingly.
And, as I mentioned before, I use a polyline object as
a frame around the contour and can toggle the visibility
without having to call the GetProperty method a second
time (as in line (B) for the contour).
Tobias
|
|
|