Welcome to Koda bug tracker!
At the moment you can post bugreports or suggestions anonymously. But registered users have some benefits: attaching files, commenting, voting, tracking tasks e.t.c.
Due some asshole started spamming tracker, now (at least for some time) it’s not allowed to create anonymous tasks. Sorry for unconvenience.
In edit fields you can use DokuWiki syntax for formatting.
FS#77 - Making Code Templates more flexible
Opened by David (Willichan) - Thursday, 17 September 2009, 23:49 GMT+4
Last edited by Admin (Lazycat) - Monday, 28 September 2009, 10:55 GMT+4
|
Details
I would like to see additional variables available for the Code Templates. %FORMNAME% - the name of the form as assigned in the form's properties.
The ability to inject code into general event functions. 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.