Hello everyone,
I'm developing an application in VB5 in a MDI interface,that uses integrated
mapping.
I have defined a MDI form called frmMapa that holds the mapinfo window. When
the user
opens a layout or browser window a new instance of frmMapa is created as a
new MDI form.
I have a routine in the form_activate event for frmMapa that:
1. takes de window ID of the current window using frontwindow()
2. checks the type of window related with this window ID
3. enables/disables certain toolbuttons
The problem is that when I open the layout window, the routine works fine
and detects that
this is a layout, but:
- If I close the layout (leaving open the mapper), the mapinfo dialogs no
longer works.
- If I click on the mapper window, the form_activate routine starts, but
the windowID
is the same of the layout window, so the toolbuttons doesn't works as
desired (and the mapinfo dialogs
no longer works)
How can I solve this problem? (Maybe I need to do the check in another
routine)
Any ideas would be appreciated.
Thanks in advance,
Jos� Luis Armero
INCLAM, S.A.
Madrid, Spain
[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]