Re: Calling a Form From an OLE control in a Form

From: Yann Chevriaux <ychevriaux_at_theleme.com>
Date: Fri, 03 Dec 1999 09:55:21 +0100
Message-ID: <38478579.A35250B3_at_theleme.com>


Hi.
Why are you using OLE container ?
Could you not do exaclty the same with an image item ?

Yann.

Simon Wood a écrit :

> I have an OLE control that displays an image. It is embedded in to a DEV2000
> form as a control - on a mouse click within the OLE control I need to call a
> further form - depending on x,y position etc.
>
> I capture the mouse click and position in the OLE and pass it on to forms -
> this works - forms does some calculations and then is supposed to call
> another form.
>
> I have tried to use CALL_FORM(.....) - this calls the subsequent fom - which
> then sits there thrashing - not displaying any text or allowing me to do
> anything apart from kill it via Task Manager. I have tried to use various
> combinations of hide/replace etc - but to no avail.
>
> OPEN_FORM cannot be used in the OLE event trigger
>
> I can use RUN_PRODUCT - which works - but do not really want a second
> application running.
>
> If I call the form outside of the OLE - e.g. via a button in my calling
> form - the called form works ok.
>
> I think this is something to do with the focus - I try to GO_ITEM before the
> call but cannot do it from the OLE event trigger as this is restricted.
>
> How can I call the second form using CALL_FORM from the event trigger on my
> OLE control.
>
> Any help appreciated.
Received on Fri Dec 03 1999 - 09:55:21 CET

Original text of this message