Hi
Are you trying to activate these from MapBasic?
From: mapi...@googlegroups.com <mapi...@googlegroups.com>
On Behalf Of Sergi Gàmiz Ribelles
Sent: 2. august 2022 15:22
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Snap mode ("S" key), window-cross cursor ("C") by mapbasic
This message originated Externally. Use proper judgement and caution with attachments, links, or responses. |
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mapinfo-l+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mapinfo-l/8ce11977-d1fc-4b38-b259-409271302a07n%40googlegroups.com.
I had hoped the commands might appear in the Keyboard shortcuts but they don’t.
It doesn’t seem to be possible through MapBasic.
One option could be to use the WIN API methods for sending a keystroke. I think it’s called SendKey or similar.
Not sure how stable that would be?
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/18304bbe-34f3-4f46-84b3-07a313d43313n%40googlegroups.com.
The can be a couple of things that makes Pro complain about the missing method.
Here’s how I typically declare a .NET in my MapBasic source
Declare Method FILEBrowseForFolder
Class "FILELib.Files" Lib "FILELib.dll" Alias "BrowseForFolder"
( ByVal sDescription As String 'Text to display in the dialog
, ByVal sFolder As String 'Start folder to use in the dialog
) As String
1. Declare Method is right syntax for declaring .NET methods for use in your MapBasic code
2. I never give a path to the file
3. Remember to include the namespace
4. Remember to add potential parameters and be sure to use the right types.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/09eeab2f-02fc-40cb-a5e0-d22f07257e9fn%40googlegroups.com.