How do I "Shade" a button in wimp Basic
jon scott (1841) 23 posts |
I am having trouble working out how to shade out a button so it can’t be clicked, until a process is ready I have been searching for several evenings and not found the answer. A hint would be appreciated. I am using Basic. Thanks in Advance Jon |
Rick Murray (539) 13850 posts |
Set bit 22 (icon is shaded). If blk% is your wimp poll block, window% is a window handle, and icon% is an icon handle, this will do it:
|
jon scott (1841) 23 posts |
Thanks, for that I will see how I get on and report back. I have been using Dr Wimp and that hides some of this stuff. Jon |
Andrew Flegg (1574) 28 posts |
Note you might want to be careful with the term “wimp Basic”. There was a product from Clares (was it ever 32-bitted? <shrug/>) called “WimpBasic” which provided a BBC BASIC-like language for programming the WIMP. Personally, I think you’re better off with something using BBC BASIC proper, such as Dr Wimp or <plug> WimpWorks </plug>. The WIMP StrongHelp manual is invaluable for this kind of stuff, and you can often guess from the SWI names. |
jon scott (1841) 23 posts |
Thanks, I got it working. I am sorry if my terminology was a bit lax, I have not been on the riscos scene for a long time. WimpWorks looks interesting Jon |