WimpWorks FAQ
HEAPSIZEreturns a greater value than I wanted fromCLAIM.Due to differing memory systems between versions of RISC OS and even the same machine with different amounts of memory,CLAIMhas to round up to the next boundary. Suffice to say, you will always (assuming the memory is available) get at least the amount of space requested.- I don't want an iconbar icon for my application (like Chars), how do I get this?This is actually mentioned in the manual, in your "Start Up" subroutine you need to delete the iconbar icon which WimpWorks has created for you:
DELETEICON(-2, TASKINFO(3))This will delete the icon in the window -2 (the iconbar) whose handle is equal to that of our iconbar icon. Note that WimpWorks will still create the icon, so the info in the Task Editor still needs to be valid (ie. a "real" sprite name etc.)
- Is there a Zap or StrongEd mode for WimpWorks? The lack of coloured syntax highlighting is a major omission...There is a StrongEd mode available. Unzip this archive over !StrongED.
- I try and use
LOADFILEbut when I run my code I getUnknown function or procedure call.You need to include the Starter Pack WEM (the online help forLOADFILEshows it is "...supplied by Starter Pack WEM..."). Open the Task Editor and open the WEMs to include menu and ensure that Starter Pack is ticked. Resave your application. READdoesn't get the proper stuff fromDATA.Try puttingRESTORE +0before you try and do the first READ as this will start reading the data from the first DATA statement after the RESTORE.- How can I stop a radio block from being deselected when using the right mouse button (Adjust)?Deselecting the active icon in the "Exclusive Selection Group" is the default WIMP behaviour. To workaround this, you can set up a click handler that reselects the icon if the ESG is deselected:
LOCAL esg% esg% = 1 IF GROUPSTATE(window%, icon%, esg%)=-1 THEN SETSTATE(window%, icon%, 1)