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.  Is there a way to make a RadioControlCroup horizontal instead of vertical?

    Posted 03-05-2018 15:55


  • 2.  RE: Is there a way to make a RadioControlCroup horizontal instead of vertical?

    Employee
    Posted 03-05-2018 10:59

    Not an easy way...

     

    You can have multiple RadioGroup controls with only one element each and a handler where you uncheck the other elements when you check one element.

     

    I can’t recall if that’s even possible or if I used a checkbox to do this some years back

     

    In the handler you’d do like this:

     

    Sub DLGHandler_RadiogroupClicked

    Dim nCtrl, i As Integer

       nCtrl = TriggerControl()

       For i = 1 to 5

         If (BASE_CONTROL_ID + i) <> nCtrl Then

            Alter Control (BASE_CONTROL_ID + i) Value 0

         End If

      Next

    End Sub



  • 3.  RE: Is there a way to make a RadioControlCroup horizontal instead of vertical?

    Posted 03-05-2018 11:05

    Lol that's what I was thinking as well however I was hoping, as it turns out, beyond hope :) If I select one how do I disable/gray out others?



  • 4.  RE: Is there a way to make a RadioControlCroup horizontal instead of vertical?

    Posted 03-05-2018 11:12

    Peter I didn't click the "More..." and missed your complete answer. Please forgive me for this oversight and disregard my follow-up question. Thank you for your reply. I will see what I can do to get this option working.

    Cheers, Martin



  • 5.  RE: Is there a way to make a RadioControlCroup horizontal instead of vertical?

    Employee
    Posted 03-05-2018 12:03

    No worries, Martin 😊

    If you make it work, feel free to share the solution here for others to find.