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

Home » Public Forums » archive » Re: OnExpose in ActiveX
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
Re: OnExpose in ActiveX [message #26032] Wed, 01 August 2001 07:21
Bert Bierman is currently offline  Bert Bierman
Messages: 5
Registered: July 2001
Junior Member
>
> I would guess you haven't turned EXPOSE events
> on for the draw widget, therefore they are not
> being generated:
>
> drawid = Widget_Draw(baseID, ...., Expose_Events=1)
>
> Cheers,
>
> David
Hello,

No I haven't.
I understood that since I use it through the IDLDrawWidget
ActiveX-control you are not supposed to do widget_control
in the idl-code.

When you use it is seens to override the setting in VB.
But then I get the same problem when I turn it off in VB.

I rebuild the slicer3-program so a slice from a volume is
drawn in an other window.
Appearently "painting" both images takes too much time
and the procedure is not finished when the next event in the
main window fires. Although I catch the events which have the
same coordinates.
I get a: "% Temporary variables are still checked out - cleaning up.."
error.

Greetings,
Bert
o--o

E.P.B. Bierman
TNO Human Factors
P.O. Box 23
3769 ZG Soesterberg
The Netherlands
Tel: + 31 3463 56 304
fax: + 31 3463 53 977
email: bierman@tm.tno.nl
Re: OnExpose in ActiveX [message #26033 is a reply to message #26032] Wed, 01 August 2001 06:39 Go to previous message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Bert Bierman writes:

> I ran into a problem which I hope someone can give me a hint:
>
> I use the IDLDrawWidget with Visual Basic.
> In the IDL-procedure I create a surface with SurfaceShade and PolyShade,
> and display this in the IDLDrawWidget.
>
> Because I want to manipulate the image I played around with the
> RegisterForEvents to set who is handling the mouse-events
> (VB or IDL).
>
> If you set "forward expose events" the image is no longer
> displayed?? But the button-processing is perfect.
> I guess the expose-event does not reach the IDL and the image
> is not actually displayed. I looked for an expose-function to
> trgger from VB like the ...->draw.... in object graphics but could
> not find it.
>
> Does someone know how this can be done?

I would guess you haven't turned EXPOSE events
on for the draw widget, therefore they are not
being generated:

drawid = Widget_Draw(baseID, ...., Expose_Events=1)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: OnExpose in ActiveX
Next Topic: extrapolation of surface

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

Current Time: Wed Oct 08 13:42:39 PDT 2025

Total time taken to generate the page: 0.00602 seconds