Hi Peter,
I'd love to see some support document which lists how to add, insert, remove, modify, etc, controls on the ribbon tabs. I know some of this exists in documents you've created, but I'm not sure it's comprehensive.
Some examples of the mapbasic commands would be really helpful.
In order to remove/alter existing ribbon controls, I'd like to see a full list of the control names.
It's a bit confusing searching the MapBasic application help. It has topics on altering button pads, which relate to the old 32bit style toolbars which will be shown in the Legacy tab, but it doesn't contain any help on modify the ribbon controls. I understand you have to use the commands related to the ribbon library, but there's nothing in the application help documents which could help a user with this.
Regards
------------------------------
Kalu Ribush
Senior Mapping Specialist
Department of Economic Development, Jobs, Transport and Resources (DEDJTR)
Melbourne NT
------------------------------
Original Message:
Sent: 07-10-2019 12:23
From: Peter Horsbøll Møller
Subject: MapBasic to remove button from ribbon tab
I second that request, Kalu :-)
The missing documentation is starting to become an issue, not only for the RibbonLib but for the MapBasic Common Libraries in general.
What type of documentation would be most helpful?
1. A general description of each function
2. Samples
3. Both
I'm not making any promises but just trying to understand what you would like/need/prefer.
------------------------------
Peter Horsbøll Møller
Pitney Bowes
Original Message:
Sent: 07-10-2019 02:13
From: Kalu Ribush
Subject: MapBasic to remove button from ribbon tab
Thanks Andrew, that worked.
It would be great if there was some documention on this on the community site somewhere.
Cheers
------------------------------
Kalu Ribush
Senior Mapping Specialist
Department of Economic Development, Jobs, Transport and Resources (DEDJTR)
Melbourne NT
Original Message:
Sent: 07-10-2019 01:16
From: Andrew Niebling
Subject: MapBasic to remove button from ribbon tab
Hi Kalu,
I needed to hide some controls some time back, to find out the names of the controls was difficult until I found a tool that prints out a lot of info about the ribbon to a file.
What you need is this to turn off the Save Workspace SplitButton.
Call RBNControlSetVisibility("TabHome", "HomeFile", "HomeSaveWorkspaceSplitButton", False)
I can't seem to upload the file think my workplace blocks it, will try it from home.
Regards
Andrew
------------------------------
Andrew Niebling
Systems Administrator (GIS)
Queensland Rail Ltd
Brisbane
Original Message:
Sent: 07-09-2019 19:19
From: Kalu Ribush
Subject: MapBasic to remove button from ribbon tab
Hi Peter, either approach would work for me.
I'm not sure how to go about replacing the handler for the existing control. Perhaps you could explain that further.
I was trying to hide the existing buttons. I thought it was something like:
Call RBNControlSetVisibility(TAB_HOME,TAB_GROUP_HOME_FILE,"SaveWorkspaceButton",False)
But that doesn't seem to work. Perhaps I don't have the button name correct?
Thanks Kalu
------------------------------
Kalu Ribush
Senior Mapping Specialist
Department of Economic Development, Jobs, Transport and Resources (DEDJTR)
Melbourne NT
Original Message:
Sent: 07-09-2019 14:47
From: Peter Horsbøll Møller
Subject: MapBasic to remove button from ribbon tab
Hi Kalu
Do you want to replace the control completely or just assign a new handler to the existing control?
For the first, you could hide the existing control and place your new control after or before.
for the later, just assign a new MBXHandler to the control
------------------------------
Peter Horsbøll Møller
Pitney Bowes
Original Message:
Sent: 07-08-2019 22:00
From: Kalu Ribush
Subject: MapBasic to remove button from ribbon tab
I want to run a MapBasic app which will remove standard buttons from the ribbon tab, specifically the Save Workspace and Save Workspace As split buttons.
The reason I want to do this is I want to replace them with my own buttons, which run some checks on the WOR file after I've saved it.
How can I remove these buttons with MapBasic?
Thanks Kalu
------------------------------
Kalu Ribush
Senior Mapping Specialist
Department of Economic Development, Jobs, Transport and Resources (DEDJTR)
Melbourne NT
------------------------------