Formula editor
As I was saying in a previous post, the formula editor was awful, a thing that I discovered as I was writing various formula to check the functions (still a lot of checking and writing needed). Of course it was made just to be there and barely functional so today I added some improvements and still there are improvements required as you can read bellow. But, as a first improvement now: multiple editors can be opened in the same time; font can be changed and it will stay the next time the editor is opened; panels are resizable, there are three panes one for coded writing one for function help information and syntax checking info and one pane as the list of functions available in program - on the left of the editor as can be seen in the images bellow, and I almost forgot to mention the function list pane and the function information pane can be hidden
These improvements although required were the easy part. Whats more difficult and I got no ideea for now how to do it is the part with colouring the code in the formula editor area and providing help to code editing as the user types. I suppose I have to write some more code in the main loop of the editor and also there is a control in this language named rich edit control which seems to have the capacity of doing what I mentioned above, colour code and some real time help info. I never used this control anywhere else in the program and while I did check it a bit I`m far from figuring out how to do the things I need. As of now I`m not even sure I will bother changing this edit control or trying to see how I can make code writing more easy with the edit control that the editor now uses. Next days I`ll see what can be done to these things and what I`ll decide to make.
On the other hand there is still the verify syntax button code that I have to write but its possible to only write that after I`m 100% certain that all the functions work fine and the entire formula language is running 100% flawless
From what I can figure now these are the things required to the editor, otherwise its quite nice as design and I`m satisfied with it as is.
Comments
Post a Comment