Search found 74 matches

by Zaphod
Fri 07 Jun 2019, 15:44
Forum: BBC BASIC language
Topic: Prefilled INPUT - editing variables rather than retyping the whole thing
Replies: 4
Views: 167

Re: Prefilled INPUT - editing variables rather than retyping the whole thing

First, while there may be a way of prefilling the input buffer I don't know it. However, there is a quick solution and that is to use the NOWAIT library, where similar functions are implemented in BBC BASIC and so is easy to modify. If you look at FNinput in that library you can add a modified versi...
by Zaphod
Thu 06 Jun 2019, 22:56
Forum: Suggestion Box
Topic: Dark mode for IDE
Replies: 3
Views: 161

Re: Dark mode for IDE

BBCSDL, which can be downloaded from Richard's site has SDLIDE.BBC as part of the package. That will also run under BB4W and has a dark mode. If you were thinking that BB4W would ever have a dark mode it should be noted that development of BB4W ceased a while back. BBCSDL is still being developed an...
by Zaphod
Tue 04 Jun 2019, 13:33
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 409

Re: Program Not Closing ON CLOSE

I am afraid I don't know what caused the change in behaviour and I have never managed to get it to do it again spontaneously. However, putting a WAIT 10 after SYS "GetForegroundWindow" TO W% seemed to fix it. So it looks like a timing issue and how fast the screen window changes focus which may well...
by Zaphod
Mon 03 Jun 2019, 17:08
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 409

Re: Program Not Closing ON CLOSE

So on my machine it did not close either, but then for some reason after many attempts trying to move the dialog and clicking background windows etc. it suddenly started closing and kept doing that from then on. No ideas. But your program clearly needs ON MOUSE as an interrupt will sort that I am su...
by Zaphod
Thu 30 May 2019, 05:25
Forum: BBC BASIC language
Topic: SystemParametersInfoA
Replies: 5
Views: 316

Re: SystemParametersInfoA

Um, that 30 is hex! Try &30 and it should work.

Z
by Zaphod
Tue 28 May 2019, 13:02
Forum: BBC BASIC language
Topic: Finding if a Font is Available
Replies: 2
Views: 254

Re: Finding if a Font is Available

The answer is in the Wiki. INSTALL @lib$+"CALLBACK" DIM font$(999) index% = 0 SYS FN_syscalls("EnumFonts"), @memhdc%, 0, FN_callback(FNenumfontfunc(), 4), \ \ 0 TO !FN_systo(result%) PRINT "Exit code = ";result% PRINT "Number of fonts enumerated = ";index% FOR I% =0 TO index%-1 IF font$(I%)="Termina...
by Zaphod
Thu 23 May 2019, 17:54
Forum: Database and Files
Topic: COMLIB--Excel webdata download
Replies: 2
Views: 561

Re: COMLIB--Excel webdata download

Perhaps you need to Activate WorkSheet(1)?

Z
by Zaphod
Fri 26 Apr 2019, 23:57
Forum: Graphics and Games
Topic: Leading spaces INPUT
Replies: 3
Views: 626

Re: Leading spaces INPUT

It looks like the FNinput in the NOWAIT library will do that for you.

Z
by Zaphod
Sun 21 Apr 2019, 23:40
Forum: BBC BASIC language
Topic: Multi column listbox?
Replies: 5
Views: 871

Re: Multi column listbox?

Glad you found a solution and the Tabbed one is the one I usually use. To find and define the value of windows constants you need to run the "Add Windows Constants" utility that you will find on the Utilities menu most likely. You will find that LBS_MULTICOLUMN=512. The only problem with tabbed inpu...
by Zaphod
Sun 21 Apr 2019, 14:15
Forum: BBC BASIC language
Topic: Multi column listbox?
Replies: 5
Views: 871

Re: Multi column listbox?

Well you could try what the manual tells you and use the LBS_MULTICOLUMN style!

Z