[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OnExpose in ActiveX
- Subject: Re: OnExpose in ActiveX
- From: david(at)dfanning.com (David Fanning)
- Date: Wed, 1 Aug 2001 07:39:25 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <3B680444.5CA701F4@tm.tno.nl>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:25940
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