Hi Tobie,

I don't think you can chenge the cursor in the MapInfow.mnu. My guess would
be that you have to
make a special application to handle this, more or less like the one below:

Please note that my errorhandling is non existing in this example, there is
quite some thing that might
go wrong when creating your own tool like this: What if there is no
editable layer ...

In my example I simply insert the drawn object into the cosmetic layer or
into the "layer" of the
layout window.

'********************************************************************
Sub Main

     Alter ButtonPad "Tegn"
          Add
               Toolbutton
                    Icon 18
                    Cursor MI_CURSOR_FINGER_LEFT
                    DrawMode DM_CUSTOM_POLYLINE
                    Calling MyPolyLineTool
                    HelpMsg "My Polyline Tool.\nMy Polyline"

End Sub

Sub MyPolyLineTool

Dim  oDrawnLine As Object,
     nWID As Integer

     oDrawnLine = CommandInfo(CMD_INFO_CUSTOM_OBJ)

     nWID = FrontWindow()
     If nWID = 0 Then
          Exit Sub
     End if
     If WindowInfo(nWID, WIN_INFO_TYPE) = WIN_LAYOUT Then
          Insert Into WindowInfo(nWID, WIN_INFO_TABLE)
               (OBJ) Values (oDrawnLine)
     ElseIf WindowInfo(nWID, WIN_INFO_TYPE) = WIN_MAPPER Then
          Insert Into WindowInfo(nWID, WIN_INFO_TABLE)
               (OBJ) Values (oDrawnLine)
     End If

End Sub
'********************************************************************

HTH,
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!


                                                                                       
                            
                    "Tobie"                                                            
                            
                    <tdev@ananzi.        Til:    <[EMAIL PROTECTED]>                      
                            
                    co.za>               cc:     <[EMAIL PROTECTED]>                      
                            
                                         Vedr.:  MI-L Using mapbasic to customize the 
mouse cursor                 
                    16-08-2002                                                         
                            
                    13:59                                                              
                            
                                                                                       
                            
                                                                                       
                            



Hi,

I am new to the List server.

I hope it is ok for me to contact you via email?

I need to change my cursor when drawing polylines from the small cross to a
larger crosshair type, like cursor 131 or larger and if possible the colour
as well.

I tried specifying cursor 131 in the mnu file, but it has no efect.

I hope you can help.

Thank You
Regards
Tobie




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

Reply via email to