Hi Hannah
What statements are you using to create the ribbon and buttons in MapInfo Pro?
There are a few options to choose from with MapInfo Pro v2021:
Maybe even try sharing a snippet of code for one of your buttons
Thanks
Peter
From: mapi...@googlegroups.com <mapi...@googlegroups.com>
On Behalf Of Hannah Dyer
Sent: Friday, 9 December 2022 11.11
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Creating Buttons MI21.1
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/5534ef91-985c-4817-8548-2017134bc191n%40googlegroups.com.
Hi Hannah
Can you try changing your Main procedure into this:
Sub Main
Create ButtonPad "Background Maps" As
PushButton
Icon MI_ICON_OPEN_FILE
Calling run_NPU
HelpMsg "NPU Maps\nNPUs"
Tab "TAB_MapStore|Map Store"
End Sub
What you can see is that the code creates a new group called Background Maps on a new ribbon tabbed called Map Store.
You don’t need the Create Ribbon statement if you just are looking to add a number of buttons to a new or existing tab
You can read more about using the Create/Alter Buttonpad method in this thread:
You can of course also do the same through the Create Ribbon statement only.
You can find some examples here:
I hope this helps you on the way
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/dbefd9fd-af76-410b-a4db-1b22206ff0adn%40googlegroups.com.