Hi,

What if you disable your Document Control ?

Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS Udviklingskonsulent / GIS-Developer
Kampsax A/S - GIS Software & Solutions
Rugaardsvej 55, 5000 Odense, DK
tel: +45 6313 5013,  dir:+45 6313 5008,  fax: +45 6313 5090
mailto:[EMAIL PROTECTED]
www.kampsax-gis.dk and www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway.
------------------------------------------------------------------------------------------------
Se mere om Dansk MapInfo Brugerkonference p� 
http://www.kampsax-gis.dk/Default.asp?ID=296

Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
Check http://www.kortal.dk and have a look at Denmark from above!
----- Videresendt af Peter M�ller/Kampsax - 26-08-2002 12:30 -----
                                                                                       
                            
                    "Martin                                                            
                            
                    Higham"              Til:    "MapInfo-L" 
<[EMAIL PROTECTED]>                   
                    <martin@avant        cc:                                           
                            
                    ra.com.au>           Vedr.:  MI-L MB DocumentWindow control        
                            
                                                                                       
                            
                    26-08-2002                                                         
                            
                    09:04                                                              
                            
                    Besvar                                                             
                            
                    venligst til                                                       
                            
                    martin                                                             
                            
                                                                                       
                            
                                                                                       
                            



Just having a look at the new DocumentWindow dialog control introduced in
MBv7, and showcased in the NorthArrow tool that ships with MI Pro v7.

The document window control contains (ie. reparents) a MapInfo document
window (map, browser, legend etc) and works very nicely.  When I make a
little test mbx, the context sensitive menu from a right mouse button click
is activated in the document window, but in NorthArrow.mbx the right mouse
button doesn't do anything.

If I use this control I don't want the context sensitive menus, but I can't
disable them.

Anyone else noticed this behaviour ?  Any gems of wisdom out there ?

My simple test mbx code is below.  The NorthArrow mb code is shipped with
MB7 and contains nothing that I can see to turn the context menus off.

*******************************************************************
Sub Main

Create Table dwt (ID char(10)) file "c:\tmp\dwt.tab"
Create Map for dwt

Dialog Title "Document Window Test"
           Calling DocWin_Hndlr
           Control StaticText       Title "Show Text"         Position 5,10
           Control PopUpMenu        Title "1;2;3;4;5;6;7;8;9;10"
                     ID 1
                     Calling DocWin_Hndlr
                     Position 50,8 Width 50
           Control DocumentWindow
                     ID 2
                     Position 5,30 Width 100 Height 100

Control OKButton
Control CancelButton

End Sub

Sub DocWin_Hndlr

Dim i as smallint, objNum as object

i = ReadControlValue(1)

Create Text into variable objNum str$(i) (0,i) (1,i+1)
Insert into dwt (ID, obj) values(str$(i), objNum)
i = TableInfo(dwt, TAB_INFO_NROWS)
Select * from dwt where RowID = i into selDWT NoSelect

Set Next Document Parent ReadControlValue(2) Style WIN_STYLE_CHILD
Map from selDWT

End Sub
*******************************************************************


Best Regards,

Martin Higham
Avantra Geosystems

ph (61 3) 8504 0428   0425-730-428
fx (61 3) 9596 7997
www.avantra.com.au


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2662





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2664

Reply via email to