MapInfo Pro Developers User Group

Expand all | Collapse all

Ribbon Control Borders and Colours

  • 1.  Ribbon Control Borders and Colours

    Posted 08-07-2019 09:36
    Trying to control some borders around RibbonToolButtons using SetRbnToolBtnCtrlLtBorderThick but the border is transparent which is the default .Net mode. Although there is a way of  setting the brush for Gallery Controls - SetRbnGalleryCtrlBorderBrush, what is the means to set the brush for other controls? Also the SetRbnGalleryCtrl*BorderThick calls do not seem to change the thickness? I want to do this from MapBasic and avoid using .Net.
    Thanks in advance.

    Tom Nash
    Knowledge Community Shared Account
    CDR Group

  • 2.  RE: Ribbon Control Borders and Colours

    Posted 08-08-2019 09:03
    The Gallery is an expandable window-like control that allows for setting a brush for background.  It is the only control that exposes this brush property.
    Yes, I think this is a good idea to have ability to set a brush color for backgrounds on these ribbon controls.
    I think you would need to be careful that you don't set a background color that is same as that used for a selected tool highlight though.
    Perhaps that would also require an additional highlight property?  Perhaps just let that one sort itself out...
    Either way, I am putting this into the Engineering queue as a work item.


    Bill Wemple
    Principal QA Engineer
    Pitney Bowes
    Troy, NY