- Status Assigned
- Percent Complete
- Task Type Bug Report
- Category Application
-
Assigned To
Admin - Operating System All
- Severity Low
- Priority Very Low
- Reported Version Development
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#182 - Tools | Generating Options | Template doesn't show Events Example
But Events Example is in Code Templates dialog
This combo showing only applicable templates. If you check "Generate OneEvent code", you will see it.
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:
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.
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.
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?
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.
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?
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.