Integrated editor with Autocomplete

Forum Forums Visual Components 4.0 .NET Addon Programming Integrated editor with Autocomplete

Visual Components Essentials has been officially released, download link

Be sure to read the Forum Rules and Guidelinesย before start using the Forum.

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by line_out line_out 6 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2398
    Chungmin
    Chungmin
    Participant

    Wishlist,

    1. All PythonScript editors integrated into 1 window
    2. Change PythonScript editor’s background
    3. Autocomplete function

    At first I thought these cannot be done.

    After doing some research and work, it’s quite possible to do so. ๐Ÿ˜†

    Here is the prototype demo video.

    https://youtu.be/iA54E5XDIFQ

    #2409
    ccamilo
    ccamilo
    Participant

    Pretty nice. Would you share how you did it?

    In any case, the future python editor will contain all items in your wishlist: theming, autocomplete and “intellisense”, snippets and others.

    #2410
    Chungmin
    Chungmin
    Participant

    So glad future python editor will contain these! ๐Ÿ˜€

    I use AvalonEditor component to do this.

    #2414
    line_out
    line_out
    Participant

    Hi Chungmin, cool stuff :).

    As ccamilo said, we are looking into the possibilities to implement some more helpful features.

    Meanwhile, did your solution contain any save/compile option? I did not find any so I added one when I was playing around. If you would want to extend your app. You should of course check if simulation is running and such before over writing the script.

    private void SaveProgress(object sender, RoutedEventArgs e)
    {
    doSave();
    }

    private void doSave()
    {
    ListBoxItem lbi = (ListBoxItem)Comps.SelectedItem;
    string info = lbi.Content as string;
    ListBoxItem item = listComps.Where(i => i.Content.ToString() == info).FirstOrDefault();
    if (item != null)
    {
    ExtListBoxItem extItem = (ExtListBoxItem)item;
    IPythonScript script = (IPythonScript)extItem.Script;
    script.Script = AEEditor.Text;
    script.Compile();
    }
    }

    #2417
    Chungmin
    Chungmin
    Participant

    Ah-ha, you’ve got me. It’s prototype.

    There are a lot of work need to do. Glad you will implement these good stuff.

    I guess we can sit tight and wait.ย  ๐Ÿ˜›

     

    #2430
    line_out
    line_out
    Participant

    Yes, there is ๐Ÿ™‚

    Yes, let’s sit back and enjoy the ride, and see what comes out in the end ^^

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

You must be logged in to reply to this topic.