• Status Assigned
  • Percent Complete
  • Task Type Bug Report
  • Category Application
  • Assigned To
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Koda
Opened by Chris Haslam - 20.02.2011

FS#182 - Tools | Generating Options | Template doesn't show Events Example

But Events Example is in Code Templates dialog

Admin commented on 21.02.2011 09:16

This combo showing only applicable templates. If you check "Generate OneEvent code", you will see it.

Chris Haslam commented on 22.02.2011 05:26

I understand, but ...

I think the screenshot below is clearer:

I can then say in the documentation that the templates available in the drop-down depend on the GUI Mode.

Note that, because MessageLoop mode is selected, Generate events for all controls is disabled. If the user chooses OnEvent mode, it would be enabled.

Even clearer would be to replace Generate events for all controls with

Generate events for:

  • Controls with OnClick specified
  • All controls

BTW My screenshot shows an empty group for Formatting. It is empty because I am lazy! It would contains the same controls as you have now.

Admin commented on 22.02.2011 10:59

Seems "Generate events for all controls" is not clear. This is generate not only all events in OnEvent mode, but also all "Case ControlN" variables in message loop mode. This probably should be "Generate variables/events for all controls".

This function was once added by request, but to be honest, I still think it's almost useless and unclear.

Chris Haslam commented on 23.02.2011 05:04
This probably should be "Generate variables/events for all controls"

If you really want to keep this as a single checkbox, how about "Generate cases/functions for all controls"?

What do you think of having the first choice in this dialog be 2 radios: Message loop or OnEvent?

Admin commented on 23.02.2011 16:29

Radios can be ok, but in this case it will be inconsistent with default options. Now those dialogs are intentionally the same.

"Generate cases/functions for all controls" is ok for me.

Chris Haslam commented on 24.02.2011 04:15

By "default options" do you mean Options → Options → Code Generator? If so, I think that it would be clearer if the Generate OnEvent code checkbox were replaced with two radio buttons.

I think that one code-generation template could contain stuff for both Loop and OnEvent (as Default does now). Am I correct?

Admin commented on 24.02.2011 08:33

I think your idea with radio buttons is right. This should make things clearer. I'm going to change both dialogs.

About templates - no, both modes can't be in one template. Default template is internally two different templates too.


Available keyboard shortcuts


Task Details

Task Editing