C1TextEditor eliminating Menu Strip items

Posted by: cvandien on 20 March 2019, 5:13 am EST

    • Post Options:
    • Link

    Posted 20 March 2019, 5:13 am EST

    Returning (new) user of Component One (winform) controls… so, this is a newb question…

    What is the proper way (if not Enable=false or Visible=false) to disable a Rich Text Box menu strip item?

    After licensing today, and jumping into the RichTextEditor C# solution (to check out the control for incorporation into my project) I want to eliminate the Home menu (do not need file open/save/print functionality) when I do so, it fails to build, and I get a licensing error with Token Key being set to Null in the license file…

    So, “huh?”

    Assuming I can do what I want with the menus… can’t imagine the licensing would be tied to a mandatory use of the Home menu…

    I appreciate the help.

    Chuck

  • Posted 21 March 2019, 8:37 pm EST

    Hi Chuck,

    As you wish to eliminate the open/save/print functionality, you should remove the code which adds items to the RibbonApplicationMenu as these options are present under the application menu itself.

    In the attached modified sample, I have commented the related code in C1TextEditorRibbon.cs. Now, the menu looks as in the attached application.

    Hope it helps.

    Best Regards,

    Esha

    RichTextEditor_mod.zip[img]https://gccontent.blob.core.windows.net/forum-uploads/file-29a3320a-4c4e-4287-ac5a-5517b99e24f5.png[/img]

  • Posted 22 March 2019, 4:13 am EST

    Thank you, that is very helpful.

    Just as a discussion point… if I wanted instead to enable and disable the visible property of this item (let’s say as a user function of who I want to have that feature…) why would turning visibility to false invoke a licensing issue? That would appear to limit what I do with the control as far as dynamically configuring it.

    Can you speak specifically why it modifies the Token Key… that part makes no sense to me.

    Thank you,

    Chuck

  • Posted 24 March 2019, 8:56 pm EST

    Hello,

    I would request you to share in detail about where and how you set the Visibility of the tab. Further, share a screenshot of the error observed.

    You can also share the modified sample. These details will help me replicate the problem and assist you further at the earliest.

    Regards.

Need extra support?

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

Learn More

Forum Channels