MapInfo Pro Developers User Group

 View Only
  • 1.  Split Button

    Posted 01-17-2020 13:00
    When clicked on a custom button in a split button, is there a way to have the split button back to the original state instead of the button clicked state in MapBasic? Thanks



    ------------------------------
    Michel Li
    Programmer
    GEOSEARCH LLP
    Austin TX
    ------------------------------


  • 2.  RE: Split Button

    Employee
    Posted 01-20-2020 02:58

    Hi Michel

    The ribbon supports two control types that are quite similar:

    • SplitButton Control
    • DropDownButton Control

    The major difference between these two is that the SplitButton will remember the last used control and so give the user quick access to that control again. The user can access the same control again by click on the top or left part of the control. If the user wants to select another control from the SplitButton, he/she needs to click on the bottom/right side of the control where the small triangle is. This will show all the controls of the SplitButton.


    The DropDownButton, on the other side, will also fold out and show all the controls. It doesn't remember the last used control.


    I'd suggest that you use the DropDownButton Control to achieve what you are looking for.

    Yet another control that can hold multiple controls, is the Gallery Control. Like the DropDownButton, the Gallery Control doesn't remember the last choice. The Gallery Control supports filtering the list of controls which can be quite useful if you have a lot of controls in the Gallery control.



    ------------------------------
    Peter Horsbøll Møller
    Distinguished Engineer
    Pitney Bowes Software & Data
    ------------------------------



  • 3.  RE: Split Button

    Posted 01-20-2020 09:25
    Thanks Peter.

    ------------------------------
    Michel Li
    Programmer
    GEOSEARCH LLP
    Austin TX
    ------------------------------