Search found 26 matches

by svein
Wed 05 Jun 2019, 08:48
Forum: BBC BASIC language
Topic: Program Not Closing ON CLOSE
Replies: 8
Views: 2202

Re: Program Not Closing ON CLOSE

ON CLOSE AND ON MOUSE is triggered by mouse button release. Your code does not wait for the mouse button to be released before issuing a new SYS "MessageBox", wich is then blocking the ON CLOSE interrupt. The solution is to wait for button release or insert a long enough wait in the SYS line. REPEAT...
by svein
Tue 04 Jun 2019, 09:54
Forum: BBC BASIC language
Topic: SystemParametersInfoA
Replies: 5
Views: 1568

Re: SystemParametersInfoA

Change the window size after you change the style, as hinted in the help page "Fixing the window size" : " It is important to execute a MODE or VDU 23 statement after changing the window style. " Is there a way of stopping the user actually moving the window at all? Yes, but that's usually a bad ide...
by svein
Wed 08 May 2019, 19:47
Forum: Tools and Utilities
Topic: Cross Reference
Replies: 4
Views: 2475

Re: Cross Reference

Have you tried to reinstall basic ?
Svein
by svein
Wed 08 May 2019, 19:44
Forum: Interpreters & Run-Time Engines
Topic: Compiling to a fixed size window
Replies: 2
Views: 1984

Re: Compiling to a fixed size window

From the manual. Hope this helps you. Svein Edit: If you are using BB4W Fixing the window size Normally the user can re-size the output window by dragging the side or corner to a new position. However there may be circumstances when you would prefer to fix the window size, and prevent it from being ...
by svein
Sat 19 Jan 2019, 11:41
Forum: User Interface
Topic: Tree View routine
Replies: 27
Views: 13398

Re: Tree View routine

Finally got time to finish this. The treeview routine works in BBC4W and BBCsdl 32bit on Windows. 64bit will have to wait a little and my Ubuntu is still not working. There are no known bugs or limitations. Any one can build a tree with this routine, example code included. Copy, paste and run. Open ...
by svein
Wed 09 Jan 2019, 12:11
Forum: User Interface
Topic: Tree View routine
Replies: 27
Views: 13398

Re: Tree View routine

Status update: Testing the program as in i presume would be the real case. New bugs found and corrected, except one or maybe two. (slightly difficult ones) Question: BBCsdl Is it possible that one need to perform some 'thread synchronisation' in other cases than reading the system variables ? Reason...
by svein
Wed 09 Jan 2019, 09:48
Forum: BBC BASIC language
Topic: GET$# can read past EOF#
Replies: 7
Views: 3888

Re: GET$# can read past EOF#

Sorry for delayed answer, yes case closed, my fault.
Svein
by svein
Tue 01 Jan 2019, 00:12
Forum: BBC BASIC language
Topic: GET$# can read past EOF#
Replies: 7
Views: 3888

Re: GET$# can read past EOF#

Hmm, maybe i just made a silly mistake. The loop in program 1 looks ok though. It goes thru several new files before locking. I thought the loop would stop at UNTIL EOF#F%. REPEAT REPEAT a$=GET$#F% M%+=1 UNTIL a$<>"" N%+=1 UNTIL EOF#F% If you listed the loop from program 2, it appears to lock at 542...
by svein
Mon 31 Dec 2018, 23:30
Forum: BBC BASIC language
Topic: GET$# can read past EOF#
Replies: 7
Views: 3888

Re: GET$# can read past EOF#

Yes the file fail every time on window 10, BBC4W and BBCsdl 32 bit basic.
I'll send you the file.
Svein
by svein
Mon 31 Dec 2018, 22:53
Forum: BBC BASIC language
Topic: GET$# can read past EOF#
Replies: 7
Views: 3888

GET$# can read past EOF#

Edit: There's no bug, but missing EOF#F% in the inner loop. GET$#F% (on all platforms) should return an empty string at EOF, and if it's not doing so it's a bug. Appears to be a bug here . Used program 1 to create the fault, only took 1 minute before M% started to go wild. Used program 2 to find whe...