Ticket #268 (Fixed)Mon Feb 14 06:17:12 UTC 2011
Draw$Options not saved by Draw when changed by user's menu choices
Reported by: | Trevor Johnson (329) | Severity: | Enhancement |
Part: | RISC OS: Application | Release: | |
Milestone: | Status | Fixed |
Details by Trevor Johnson (329):
https://www.riscosopen.org/viewer/view/castle/RiscOS/Sources/Apps/Draw/c/Draw seems to read Draw$Options
to draw_current_options
at startup but this isn’t subsequently changed when user options are picked from the menu.
The code seems to indicate that the necessary Draw$Options
should be written out to a file but I guess this doesn’t function now Draw is back in ROM. In any case, Draw$Options
doesn’t seem to be set by the app.
This c.s.a.apps thread links to a previous thread which refers to setting the options in Choices during boot.
From my limited understanding of the code, I may well have missed something. If this is the case, an explanation here by someone more knowledgeable would be useful. The wiki Draw info can then be updated to provide some guidance.
Changelog:
Modified by Trevor Johnson (329) Mon, February 14 2011 - 06:18:02 GMT
Oops – that should have been:
Modified by Jeffrey Lee (213) Mon, February 14 2011 - 20:16:57 GMT
It looks like Draw$Options will currently only be saved in response to a desktop save message. Since saving desktop boot files in this method is pretty much deprecated now it would probably be a good idea to update Draw and all the other ROM/disc apps to automatically save to individual Choices folders instead.
Modified by Trevor Johnson (329) Tue, February 15 2011 - 09:21:07 GMT
For both Draw and Edit, the …$Options system variables seem to only be set in conjunction with desktop saves, as you say: Draw, Edit.
However, in Edit, choosing options from the menu does change the Edit$Options system variable – even without saving the desktop. Draw doesn’t exhibit similar behaviour.
Modified by Sprow (202) Mon, May 30 2011 - 19:10:39 GMT
- Status changed from Open to Fixed
Modified to match !Edit behaviour. See !Draw 1.18.
Modified by Trevor Johnson (329) Mon, May 30 2011 - 20:16:01 GMT
Drawtastic!