Koda

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.

Tasklist

FS#77 - Making Code Templates more flexible

Attached to Project: Koda
Opened by David (Willichan) - Thursday, 17 September 2009, 23:49 GMT+3
Last edited by Admin (Lazycat) - Monday, 28 September 2009, 10:55 GMT+3
Type Feature Request
Category Application
Status Waiting feedback
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

I would like to see additional variables available for the Code Templates.
Ex.

  %FORMNAME% - the name of the form as assigned in the form's properties.

The ability to inject code into general event functions.
Ex.

  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.

This task depends upon

Comment by David (Willichan) - Friday, 18 September 2009, 18:41 GMT+3

Here is a small example of what I generate.

Comment by Admin (Lazycat) - Monday, 21 September 2009, 14:33 GMT+3
I would like to see additional variables available for the Code Templates.

This should not be complicated to add GUI ID var.

The ability to inject code into general event functions.

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.

Comment by David (Willichan) - Monday, 12 October 2009, 23:08 GMT+3

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?

Comment by Admin (Lazycat) - Wednesday, 14 October 2009, 10:38 GMT+3
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.

Comment by Martin Gibson (martin) - Monday, 30 May 2011, 20:47 GMT+3

My wish list:
When 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 that.
I 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.

Loading...