
D
It's off-topic if one is satisfied to agree that BBC BASIC is not evolving anymore as I see the situation respectfullyDDRM wrote: ↑Wed 22 Sep 2021, 21:25 Mixing C and BASIC, as suggested by David Williams, would definitely be on topic: if he (or anyone else!) wanted to offer a tutorial on how to do it I think that would be very welcome. I'd suggest that is more likely to be C than C++ (the latter is very much object-oriented, and mixing that in probably wouldn't be easy) - though of course C programs will run in C++, since it's an extension of it.
I felt it was drifting off into a discussion of the merits of C++, which is off-topic.
BW
D
Code: Select all
PROCtwarn("Clock Error",STR$variablename%)
:
REM Handles a temporary warning window that closes automatically
DEFPROCtwarn(title$,mess$):LOCALT%,g%,mb%
PROC_showdialog(warn%)
SYS"SetWindowText",!warn%,title$
SYS"SetDlgItemText",!warn%,900,mess$
T%=TIME+300
REPEAT:g%=INKEY(0):MOUSEmx%,my%,mb%:UNTILTIME>T%ORmb%>0ORg%>0
PROC_closedialog(warn%)
ENDPROC
:
REM Warn dialog box
warn%=FN_newdialog("Warning",80,0,280,80,10,10*50)
PROC_static(warn%,"",900,4,4,272,50,1)
PROC_pushbutton(warn%,"OK",901,114,64,54,12,1)