Calling a Form From an OLE control in a Form
Date: Wed, 1 Dec 1999 15:47:23 -0000
Message-ID: <944063052.15831.0.nnrp-12.d4f09c29_at_news.demon.co.uk>
[Quoted] 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 Wed Dec 01 1999 - 16:47:23 CET