FS#77 - Making Code Templates more flexible
I would like to see additional variables available for the Code
%FORMNAME% - the name of the form as assigned in the form's properties.
The ability to inject code into general event
Func MyGUIClose() $MyVar="Some Value" EndFunc
The reason for this request is that most of the time, when I create a GUI, I create it within a function in an include file, with additional control structures. I typically spend 5-10 minutes each time I generate new code using KODA to fit it into my format. I would like to be able to use custom Code Templates to create them already in my format, so I can jump right into the application coding.
Here is a small example of what I generate.
This should not be complicated to add GUI ID var.
Seems I not understand your necessity right. You can create your functions in template. Koda will generate empty events anyway, but you can delete them.
RE: The ability to inject code ...
Do you mean that I should create my functions in the template with my code, that Koda will create duplicate empty functions, and that I should then delete the duplicates?
I see this is as an only way so far.
Though it's probably possible to get rid empty function when function with this name already exists in template. I'll think.
My wish
you doubleclick a control there should be a way to automatically jump to the "onclick" handler in Scite, and if there isn't one then add it. I would love
have considered adding it myself by adding a button "Jump to Event Code" to the dialog which pops up when you set the event for a control but there is always something more interesting to do so.