General Category > ASL Scripts

ASL Editor [version 3.5 is out!]

<< < (3/8) > >>

Kubajzz:

--- Quote from: lizeal93 ---(one side point. i apologize in advance since this doesn't really have to do with anim8or but i was wondering since i'm learning C# and i was trying to figure out how to program your intellisense feature. so if you caould give some direction i would ge much obliged.)

thanks in advance

--- End quote ---

Sure, here's a (very) short summary of what I've done:

I created a new windows form that would represent the Auto-Complete list (and the only control inside this window is the list itself).

Then I had to track the "OnKeyPress" and "OnKeyDown" events of the text box to show/hide the auto-complete window and I also had to check for mouse events in the auto-complete box itself... There was a lot of other things I had to do, for example to search the code for variable declarations to maintain a list of all variables, to close the auto-complete window when the textbox loses focus, to fill the list with appropriate content... The piece of code is about 600 lines long.

If you want a more detailed explanation, send me a pm or an e-mail, I don't mind sharing a part of my secrets ;)

ps. Right now I'm working on a "Syntax checker" - this function will try to parse your script and check it for errors so you don't have to save the file, start Anim8or and load the script to find out that there's a semicolon missing...

3Dgeek11:
A little question, why does it need .NET Framework 3.5? Or .NET Framework at all?

I might actually try to make a script now!

Thanks, Kubajzz! Good job and keep it up! :D
3DGeek

Kubajzz:

--- Quote from: 3Dgeek11 ---A little question, why does it need .NET Framework 3.5? Or .NET Framework at all?

--- End quote ---

Huh.. That's a difficult question :)

There are at least 2 good reasons why I'm developing this application using .NET. First, the C# language is closely related to the .NET platform and as far as I know it's not possible to write a C# application that does not need .NET (and if you want to ask why I'm using C#, it's because I don't know any other programming language ;D).

The second reason is quite simple: the .NET platform makes some things extremely easy (from developer's point of view).

I tried to make the application compatible with earlier versions of .NET, but (un)fortunately .NET 3.5 introduced several amazing features I can't live without...

I know this is quite a big problem problem because not everybody has .NET 3.5 installed, but you can download it for free from microsoft.com (as far as I know it' about 250 MB ::)).

lizeal93:
thanks a lot really helpful. if i need more help i'll take you up on your offer thanks again

off topic again:

i've tried to pm you but i'm not sure if youve been getting the messages. anyway here is the quetsion.

are you using the express edtion and if you are how did you make it not need and installer.

thank you in advance

Jdez:
Hey cool you used C#? I am learning to program that language too!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version