MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only
  • 1.  Adding buttons to a stack panel in the mini tool bar

    Posted 09-28-2017 13:42

    I've managed to add buttons to the mini toolbar using the RBNMapMTBAddControl

    I then wanted to add some to a stack panel, so I could then show or hide the complete panel rather than having to alter each button.

    But if the buttons are large then I can only see one button displayed although it hasn't given an error when 3 or more are added to that stack. If the buttons are small then 2 buttons shown.

    Presumably I can't use the stack panel similar to a group on the main ribbon tabs.

    As there are no longer floating toolbars the use of the mini toolbar for a number of customised buttons would be useful.

    thanks



  • 2.  RE: Adding buttons to a stack panel in the mini tool bar

    Posted 09-28-2017 10:07

    Found a work around, I've named the stack panels A1,A2,A3, B1,B2,B3 etc and add one button per panel. Then just loop round the number of panels to set the visibility, that way I don't need to know what button was actually added.



  • 3.  RE: Adding buttons to a stack panel in the mini tool bar

    Employee
    Posted 09-28-2017 15:33

    I have only ever added small icons to the Map Mini Toolbar - never big icons.

    I have always seen the StackPanels as "Vertical Groups" and only ever added two controls to each.