Text Editor Tool

Forum Forums Visual Components 4.1 .NET Addon Programming Text Editor Tool

This topic contains 7 replies, has 5 voices, and was last updated by Avatar SimonS 1 month, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3751
    RSilva
    RSilva
    Participant

    Hi everyone,

    How can I set the text of a text box in a custom ribbon menu from the .NET API?

    I also want to disable its edition, making it read-only.

    Can anyone help me?

    Thanks,
    Ricardo

    #3753
    zesty
    zesty
    Moderator

    It’s been awhile since I looked at the code, but try looking in .NET API reference > VisualComponents.UX.Shared > ActionItem Class.

    From there you should be able to disable/make the item non-executable/read-only.

    #4150
    Jay
    Jay
    Moderator

    Here is a demo project.

    Attachments:
    You must be logged in to view attached files.
    #15465
    Avatar
    SimonS
    Participant

    Hi Jay,

    very good. I solved my problem.

    Thank`s for your support!

    #15564
    Avatar
    SimonS
    Participant

    Hi,

    I have already one problem with adding a icon to ActionItem.

    I am writing the test parameter “rBox” in the base constructor call of the ActionItem constructor. But it doesn`t show the icon.

    Can anyone help me?

    Thanks,
    Simon

    #15574
    Avatar
    jouha
    Moderator

    I’m quite sure that a CheckBoxTool can’t have an icon.

    Change to MenuTools.ButtonTool. It might be also a good idea to add arguments: getIconPathFromFile = false and isColoredIcon = true after the controlType.

    #15579
    zesty
    zesty
    Moderator
    #15594
    Avatar
    SimonS
    Participant

    Hi,

    Of course, only buttons 🙄 ! Sorry, that was my thinking error.

    Thank´s for your supoort!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.