Hi Anton

Why not try writing a little function in the .dll that tells you whether
or not the form is visible? The following is an excerpt from the Delphi
docs - for the Visible property of a form:


Use Visible to determine whether the form is visible.

If Visible is True, the form is visible - unless it is completely
obscured by other forms. If Visible is False, the form is not visible.

The Show and ShowModal methods set Visible to True and bring the form to
the front of all open windows.


Regards

James
--------------------------------------
James Marlow, Director of GIS
Channel Marketing Corporation
[EMAIL PROTECTED]  http://www.cmcus.com
Telephone: 972-858-9600 x 350
Facsimile: 972-858-9601


> -----Original Message-----
> From: Anton de Gruchy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 20, 1999 7:49 AM
> To: 'MapInfo User List'
> Subject: MI API Calls
> 
> 
> Hi all,
> 
> I have written a  non-modal dialog box in Delphi DLL and call it from
> MapBasic. What I need to be able to find out is it visible 
> (open) or not.  I
> tried the FindWindow API using the name of the dialog, but it 
> would not find
> the window.
> 
> (Delphi3, NT4 WS Sp3, MapInfo 5)
> 
> Any ideas, TIA
> 
> 
> Yours
> 
> Anton de Gruchy
> ----------------------
> MapIT
> 29 Tecoma Crescent
> Thornton
> Cape Town
> 7460, South Africa
> Tel: 27+21+548998
> email: [EMAIL PROTECTED]
> cell: 082 855 9747
> 
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to 
> [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
> 
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to