Hello,
> I have the following questions about integrated mapping using VB 5:
>
> 1. I have a menu for selecting records that calls the mapinfo standard
> Selection (RunMenuCommand M_ANALYZE_SELECT). The question is: How can I
> detect if the user checks the "Browse results" checkmark?
Check NumWindows() before and after the running menu command M_ANALYZE_SELECT.
If it is incremented after the call - "Browse results" was checked.
> 2. How can I show (supposing the user checks it) the browser window?.
You may close the invisible browser using:
Close Window WindowID(0)
and re-open using:
Set Next Document Parent ...
Browse * From Selection
Also, you may use Set Next Document Parent before calling M_ANALYZE_SELECT, if you
don't need to perform any specific actions to create the parent for MapInfo document
(for
example, you might need to create new MDI child form).
> 3. How do I enable a "find selection" menu command?(I don`t know if the user
> cancel the selection)
After executing M_ANALYZE_SELECT, check SelectionInfo(SEL_INFO_NROWS) - if selection
is not empty, it must be positive.
> 4. How can I show the legend window when the user selects the Create
> Thematic Map command in the menu?
> (I launch a RunMenuCommand M_MAP_THEMATIC in that menu)
Use Create Legend From Window ... statement.
Dmitry
Dmitry Bogdanov
GIS Department Manager
Kiev Software Factory Ltd.
room 46 9/12 Baumana St, Kiev, Ukraine 252190
Tel: (380 44) 442-6077; (380 44) 443-7925
Fax: (380 44) 443-7925
Internet: http://www.ksf.kiev.ua
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]