C1RadialMenu VB sample opening forms on click

Posted by: saidnai on 28 November 2024, 9:25 am EST

  • Posted 28 November 2024, 9:25 am EST

    Good day,

    i am looking for a VB sample creating a C1RadialMenu/item including the click event to open the necessary form.

    Thanks for support

    Best regards

    Said

  • Posted 29 November 2024, 12:42 am EST

    Hello Said,

    Sure, please refer to the attached VB sample implementing a simple RadialMenu with some buttons. (see RadialMenu_VBSample.zip)

    For more info: https://developer.mescius.com/componentone/docs/win/online-menus-toolbar/RadialMenuOverview.html

    Regards,

    Uttkarsh.

  • Posted 2 December 2024, 5:59 am EST

    Dear Uttkarsh,

    The sample is working. I have tried the same at my end no problem.

    Till now i have used the C1OutBar1 all fine till now. I use the following code to hide or unhide the main options according to the user right:

    'C1CommandHolder1

    For r As Integer = 0 To Me.C1CommandHolder1.Commands.Count - 1

    Dim m As Integer = 0

    Dim VShow As Boolean = False

    For m = 1 To 400

    ’ MsgBox(Me.C1CommandHolder1.Commands(r).Name)

    If Me.C1CommandHolder1.Commands(r).Name = UserModul(m) Then

    If UserShow(m) = True Then

    VShow = True

    End If

    End If

    Next

    If VShow = True Then

    Me.C1CommandHolder1.Commands(r).Visible = True

    Else

    Me.C1CommandHolder1.Commands(r).Visible = False

    End If

    Next

    Is there a VB sample for the C1RadialMenu to read the Item und under Item using hide or unhide?

    I mean some Buttons should be hidden for normal user.

    Best regards

    Said

  • Posted 3 December 2024, 7:53 am EST

    Hello Said,

    We’re sorry, but there is no direct way to hide items in RadialMenu. We’ve forwarded your concerns to the development team for further insights. [Internal tracking ID: C1WIN-33416]

    Rest assured, we’ll update you once we have got more information.

    However, until then, you can add only the visible items in the Items collection before displaying the menu. Please refer to the attached sample for implementation. (see RadialMenu_VBSample_Mod.zip)

    Regards,

    Uttkarsh.

  • Posted 5 December 2024, 3:47 am EST

    Dear Uttkarsh,

    Thanks for the provided sample.

    Till the team give a feedback about the hidden issue. The RadialMenu can be shown. the target is to hide/unhide or enable/disable any item without user right. So how to go through the RadialMenus Item for it?

    Best regards

    Said

    Best regards

    Said

  • Posted 5 December 2024, 11:50 pm EST

    Hello Said,

    It seems you want to traverse the RadialMenu Items to hide/unhide them.

    If so, you can use the Items property of the RadialMenu. You can remove items from it to hide them and re-add/insert the items to show them again.

    We have handled the MenuExpanding event in the sample we shared earlier. In that event, we have traversed through Items to hide some of the menu items. You can refer to it for implementation.

    If this is not what you mean, please share more information on your requirement.

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels