Search found 79 matches

by Zaphod
Wed 25 Jul 2018, 00:09
Forum: Assembly language
Topic: Older code now crashes!
Replies: 4
Views: 4825

Re: Older code now crashes!

Mike, works here on Windows 10 64 bit, both in the IDE and compiled, so it is a mystery.
At times like that I usually look out the window in case there is a UFO hovering overhead. Not seen one yet though.
Z
by Zaphod
Fri 20 Jul 2018, 18:15
Forum: Libraries
Topic: UTF-8 String functions.
Replies: 5
Views: 4469

Re: UTF-8 String functions.

That is an interesting question, Mike. It is just personal preference to sometimes use variants for integer parameters. On another day I might have used num%, nchars% and st% for the parameters and maybe it would have been better if I had. I had not considered that someone would put in non-integer v...
by Zaphod
Wed 18 Jul 2018, 23:45
Forum: Libraries
Topic: UTF-8 String functions.
Replies: 5
Views: 4469

UTF-8 String functions.

BBC BASIC string function keywords such as MID$() assume ANSI and will give strange or misleading results when used on UTF-8 strings. Below are some alternatives that work correctly on UTF-8 or ANSI. Here are replacements for INSTR(), MID$, LEFT$, RIGHT$, LEN$ and a function to find the number of by...
by Zaphod
Tue 17 Jul 2018, 22:31
Forum: User Interface
Topic: BB4W themes?
Replies: 8
Views: 5746

Re: BB4W themes?

You seem to be reading a lot into what I said, so let me clarify what I believe the situation to be. BB4W IS still supported by Richard. Maintenance releases would probably occur if there were a need but there are no plans for any extension or changes to the language or IDE. Version 6.11a is the lat...
by Zaphod
Sat 14 Jul 2018, 03:20
Forum: User Interface
Topic: BB4W themes?
Replies: 8
Views: 5746

Re: BB4W themes?

Hi 5:4, I don't recall that coming up. What you may not realize is that BB4W has been out of development for several years and the design is frozen, so I very much doubt if such a feature would ever be added. But the SDL versions are still being developed. As part of the package there are two IDE's ...
by Zaphod
Sun 08 Jul 2018, 01:09
Forum: User Interface
Topic: Windows Controls and WINLIB2B events.
Replies: 4
Views: 4127

Re: Windows Controls and WINLIB2B events.

Part 2 the code: REM!WC WM_HSCROLL = 276 WM_LBUTTONDBLCLK = 515 WM_LBUTTONDOWN = 513 WM_MBUTTONDBLCLK = 521 WM_MBUTTONDOWN = 519 WM_RBUTTONDBLCLK = 518 WM_RBUTTONDOWN = 516 WM_TIMER = 275 WM_VSCROLL = 277 WM_MOVE = 3 WM_SIZE = 5 FCONTROL = 8 FVIRTKEY = 1 BM_SETSTATE% = &F3 BS_AUTO3STATE = 6 BS_DEFPU...
by Zaphod
Sun 08 Jul 2018, 00:57
Forum: User Interface
Topic: Windows Controls and WINLIB2B events.
Replies: 4
Views: 4127

Windows Controls and WINLIB2B events.

A recent post reminded me of some of the difficulties in using interrupts from Windows controls. If you are using just a few buttons then there is usually no problem BUT you do need to be careful to make sure your code is capable of being reentrant, that is, that you can handle an interrupt that occ...
by Zaphod
Fri 06 Jul 2018, 21:35
Forum: Support and Promote
Topic: Radio Button tool (on/off) (New)
Replies: 13
Views: 8888

Re: Radio Button tool (on/off) (New)

Slider Control In the same vein here is the toggle switch in the Android Slider guise usually used for settings. Clearly you could make a checkbox graphic using the same logic. To recap you use this type of control if you only have two options and a radio button if you have 3 or more mutually exclu...
by Zaphod
Fri 06 Jul 2018, 19:11
Forum: Support and Promote
Topic: Radio Button tool (on/off) (New)
Replies: 13
Views: 8888

Re: Radio Button tool (on/off) (New)

Hi, Michael, Now we agree on what a radio button should do here is a little no frills demo that should work in all flavours of BBC BASIC. Edit by Z. Perhaps I should add since no one else has that SDL and BB4W have perfectly good libraries for this function of button already. But if you still feel t...
by Zaphod
Fri 06 Jul 2018, 12:23
Forum: BBC BASIC language
Topic: Runtime for Windows 95 until Windows 10
Replies: 5
Views: 4593

Re: Runtime for Windows 95 until Windows 10

My apologies.
David is, of course, correct about mouse interrupts and I am embarrassed that I wrote otherwise.

Z