Thanks to Peter Horsb�ll M�ller who pointed out that if the document window control is disabled then right-button mouse clicks are not passed through to the underlying window, though the appearance of the window is unchanged.
Cheers, 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: 2673
