SelectedRibbonTabChanged

61 views
Skip to first unread message

ICW Keith

unread,
Sep 15, 2022, 2:14:33 PM9/15/22
to MapInfo-L
I am working on a few applications that run in MapInfo 2021.  There are multiple tabs along the ribbon bar(1 for each Application).  I am trying to use key gestures, however there is an Alt+N in 2 separate Ribbon Tabs.  I was under the impression that the active tab would be the item executed using the Key Gesture.  The last tab added is the executed tool.   I want to be able to have the active tab tool/item to be execute when Key Gesture Alt+N is pressed.  Looking at the ProSpyMB sample application there is a "SelectedRibbonTabChanged" that does not seem to fire the event when the selected tab on the ribbon is changed.  Am I missing something or do all key gestures have to be unique?
Thank you for any insight on this topic.

Keith Tozier
ICW


Peter Horsbøll Møller

unread,
Sep 16, 2022, 1:35:13 AM9/16/22
to mapi...@googlegroups.com

Hi Keith

 

The Alt-<key> gestures have to be unique per tab.

 

Also note that some versions back, we add an option to disable these key tips as they also are referred to.

 

In the Application Preference dialog, check if Disable Key Tips is checked.

If it is, these Alt keys will not work.

 

Thanks

Peter

 

Peter Horsbøll Møller
Principal Sales Engineer - Distinguished Engineer

 

From: mapi...@googlegroups.com <mapi...@googlegroups.com> On Behalf Of ICW Keith
Sent: Thursday, 15 September 2022 20.15
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] SelectedRibbonTabChanged

 

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/d6294479-ad51-4b66-82ac-f37a3cac8e6bn%40googlegroups.com.

ICW Keith

unread,
Sep 21, 2022, 7:08:34 PM9/21/22
to MapInfo-L
Peter,


I am using MapInfo 2021.1 and it looks great!

I have three separate applications that each occupy a tab on the ribbon.

briefly stated,

1 GeoAuthor - Used for Adding/Editing/Deleting Lines and Poly lines to a linear network.

2 GeoPoints - Used for Adding/Editing/Deleting an Address Point file.

3 GeoElections - Used for managing districts and demographics on a Block table as well as interoperating with Voter Registration Systems.



Tabs #1 and #2 have similar functions for example GeoAuthor>Add Segment and GeoPoints>Add Point.

Which in a perfect world would only be used with an active map window where both use ALT+A for the key gesture when their TAB is active.

If GeoAuthor is launched first and GeoPoints is launched secondly, the last application launched gets the key gesture.

So if GeoAuthor is the active TAB in the ribbon and the user presses ALT+A, the ribbon item from  GeoPoints>Add Point is executed.

It seems the shortcuts are ubiquitous in MapInfo, so if I have a browser with a list of my short cuts as the active window.

Upon pressing ALT+A, the GeoPoints>Add Point ribbon item from GeoPoints is executed.


I am wondering if there is a way to 1) to turn the shortcuts on and off depending on the Active Tab
                                                               2) turn the shortcuts on and off if the active window is a Map Window or Browser?

Can Events be used to manage the shortcuts behavior(On or Off)?

Perhaps there is an example that comes with MapBasic that would demonstrate this capability.

Thanks Again  and have a Great Day!

Keith Tozier
ICW







Peter Horsbøll Møller

unread,
Sep 22, 2022, 9:27:49 AM9/22/22
to mapi...@googlegroups.com

Hi Keith

 

I haven’t worked much with the key gestures myself so I was a bit surprised to learn MapInfo Pro didn’t stick to the current tab.

 

I think you may be onto something here.

The events could be used to change the key gestures of your tools.

 

So if your GeoAuthors has an event that listens to the change of the current tab, it can set or remove the key gestures of its controls based on this.

 

Not sure if it works though

 

Peter

 

Peter Horsbøll Møller
Principal Sales Engineer - Distinguished Engineer

 

From: mapi...@googlegroups.com <mapi...@googlegroups.com> On Behalf Of ICW Keith
Sent: Thursday, 22 September 2022 01.09
To: MapInfo-L <mapi...@googlegroups.com>
Subject: Re: [MI-L] SelectedRibbonTabChanged

 

This message originated Externally. Use proper judgement and caution with attachments, links, or responses.

 

Peter,

--

--
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.

Reply all
Reply to author
Forward
0 new messages