![]() |
|||||
![]() ![]() |
|
||||
| a |
![]() ![]()
|
What is WimpBasic ?Wimp Basic is a total programming environment. It enables you to write WIMP applications without having to understand how the RISC OS windows environment works. Wimp Basic handles it all for you. To run a program written in WimpBasic you will need the WimpBasic run-time modules application and this must be 'seen' by the filer before the program can be run. This is, of course, provided with WimpBasic and may be distributed with any programs, but if you do not have a copy and want to run a compiled WimpBasic program you will need to download the Wimp Basic Run-time Modules here. Some questions about WimpBasicIs it compatible with ordinary Basic ? Who is WimpBasic aimed at ? What do I get ? How do I write an application ? Wimp Basic has various component parts. The Main window is shown below. ![]()
A typical Select procedure might be: DefProcOpenWindow Rem Called when user clicks on iconbar icon Open HelloWorld EndProc That is all you type. WB handles everything else and when you click on the Icon Bar icon the window called 'HelloWorld' is opened on the screen.
The Window CreatorWindows are created graphically. 'Window' means to windows, dialogue boxes, error boxes etc. You create the window as you want to see it and give it a name, just like a variable. This name is used to manipulate the window, open it, move it etc. In addition to creating windows this is where you create icons. These can be text icons, graphical icons or writable icons. Button types are assigned to the icon. For example, you might want an action to take place when an icon is clicked on, so you set Button type to Click and select a procedure to be actioned. Simple. The Menu CreatorMenus are also created graphically. A menu entry can then have a sub menu or a procedure attached to it. Keyboard short cuts can also be added. See below. The menu was created by clicking into the header and typing the menu name. The two menu entries were also just type in and the sub menu selected from the list of menus available. Likewise the Procedure was selected from a list. ![]() The Variables EditorThis is a list of global variables, defined in Groups. By default it contains a set of System variables dealing with the screen, printer and some other necessary variables. New groups and variables are added using a simple dialogue. Local variables are defined in each procedure. The Code EditorThis is very similar to Edit and will be familiar to anyone who has used Edit. The main differences are that the WB Editor automatically colour codes your code to distinguish keywords, variables, REM statements etc. If you write several procedures in the same Editor window they are automatically split into individual procedures so that they can be selected from a list. One other useful addition is the ability to search all procedures using the Search and Replace. One advantage of the way you write code in WB is that procedures and functions can be complete units of re-usable code. These can be filed in a Library directory and re-used in other applications. The same applies to Windows and Menus. For example, you will probably only ever need one Program Info window, one Quit procedure, one Icon Bar menu will do for many applications etc. The Sprite ViewerThis simply lists the available sprites and provides information. Paint or another editor is used to edit sprites and icons. The Raw Event HandlersThis is for those who want to delve a little deeper. It enables you to assign procedures that are actioned when a particular Raw Event happens. Perhaps the most common Raw Event that most people will use is the Null event. If it means nothing to you don't worry as you don't have to use it. What's new in WimpBasic 2?There are many new keywords and facilities. These include :-
What they said about the original WimpBasic"the application achieves what it sets out to do very well: it brings the creation of simple to medium complex WIMP applications within reach of the average user.. This is a Very Good Thing." "..excellent value for money. I found the manual very usable" "The claim about being able to create applications quickly and easily is most certainly true! Within 15 minutes, and 15 lines of code, I had a finished and compiled program. ..exceptionally easy to share code.. ..a brilliant piece of kit.. It's a great way to get started, so get going." "Hi I just got Wimpbasic Friday 8am by 8.40 am it was up and running with my first wimp program which they say will take less than one hour. It's brill if you have written in Basic and never got to grips with the wimp get WimpBasic it's now so easy to program the wimp, hopefully there will be loads of new freeware available." The latest, 32 bit neutral, version of the WimpBasic Run-Time Module is now available for download here. Note that these alone will not enable you to run WimpBasic programs on a 32 bit system. The programs must have been re-compiled for 32 bit. For more information about the WimpBasic Run-Time Module this short document gives a history of recent versions and some technical information. ![]()
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
© Copyright 3QD Developments - 04/09/2026 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||