Date   

Re: I hope Richard will return to the group

 

Add me in to that as well. It's very sad that Richard gets upset by minor criticisms - we need his input now as much as ever.

--
Alan Roberts - Mugswell, Surrey
+44 (0)1737832586
+44 (0)7749387934


Re: I hope Richard will return to the group

Robin Hodson
 

I thought this was a bit odd, because I was chatting with him, only two weeks ago - on Twitter. He's very active there, if that helps:


From: bb4w@groups.io <bb4w@groups.io> on behalf of nbadderley via Groups.Io <nbadderley@...>
Sent: Wednesday, May 29, 2019 6:24:49 AM
To: bb4w@groups.io
Subject: Re: [bb4w] I hope Richard will return to the group
 
I’ll fourth it. 


On 29 May 2019, at 04:38, mclout@... wrote:

Nothing would be better, I third the motion if he wants to.


Re: I hope Richard will return to the group

nbadderley
 

I’ll fourth it. 


On 29 May 2019, at 04:38, mclout@... wrote:

Nothing would be better, I third the motion if he wants to.


Re: I hope Richard will return to the group

mclout@...
 

Nothing would be better, I third the motion if he wants to.


Re: I hope Richard will return to the group

Abd Al-Latif
 

I certainly second that.

 

From: bb4w@groups.io [mailto:bb4w@groups.io] On Behalf Of 8mbgmgs@...
Sent: 28 May 2019 18:50
To: bb4w@groups.io
Subject: [bb4w] I hope Richard will return to the group

 

Hello,

It would be great if Richard came back to the group. Don't you agree?
I would personally like him to return (if he wants to, of course)

Regards,
8mbgmgs


I hope Richard will return to the group

8mbgmgs@...
 

Hello,

It would be great if Richard came back to the group. Don't you agree?
I would personally like him to return (if he wants to, of course)

Regards,
8mbgmgs


Big Integer Library

8mbgmgs@...
 

Hello,
 
Richard Russell has posted something interesting on the raspberry pi forum. I thought it might be of interest to people here.
 
https://www.raspberrypi.org/forums/viewtopic.php?f=34&t=238187&p=1466828#p1466828
 
Richard writes:
>I mentioned in the other thread that I was thinking of writing a native code BigInt library for BBC BASIC; it would be an interesting exercise and hopefully provide a route to an efficient solution of the Fibonacci challenge. I've started to look at this, but I'm facing a dilemma: should I use a 10^n radix for the limbs (as the classic BASIC Fibo program does) or a more conventional 2^n radix? The advantage of the former is that the conversion back from the BigInt to decimal becomes trivial (and fast) which is of particular value when outputting a million-digit result! The disadvantage - and it's a big one - is that the BigInt computations themselves become significantly less efficient.
 
>For a general-purpose BigInt library I'm in little doubt that the 2^n limb radix is better. In a typical application the formatting of the output as a decimal number is likely to be a small proportion of the total work (it might not even always be needed, if the output value isn't intended for 'human consumption') and efficiency of the BigInt arithmetic will be the most important factor (GMP uses a 2^n radix incidentally). But I suspect that in the specific case of the million-digit Fibonacci challenge it would give poor results because of the time taken to convert the result to decimal (which I assume is supposed to be part of the challenge).
 
>What to do?! Does anybody have some BASIC code for multiple-precision binary-to-decimal conversion that I could benchmark?
 
Regards,
P


Re: VDU 23,16

Jerónimo Luis Dalla Via
 

Hello David,

 

I Works great!

 

I clearly understand how it Works now.

 

Because of AND Boolean operator, y=10111111 BIN (BF HEX) won’t change anything (0 will continue as 0 and 1 will continue as 1) except for bit 6 that will value 0 now (0 AND 0=0, 1 AND 0=0).

 

Because of OR Boolean operator, x=01000000 BIN (40 HEX) won’t change anything (0 will continue as 0 and 1 will continue as 1) except for bit 6 that will value 1 now (0 OR 1=1).

 

Thank you very much!

 

Best regards.

 

Saludos,

 

Jerónimo

 

De: bb4w@groups.io [mailto:bb4w@groups.io] En nombre de dai_m_leeds
Enviado el: miércoles, 1 de mayo de 2019 07:55
Para: bb4w@groups.io
Asunto: Re: [bb4w] VDU 23,16

 

Hi Jeronimo,

Using the form VDU 23,16,x,y,0;0;0;

The manual says the existing flag byte is first ANDed with y and the XORed with X, so:

1) If we set y =10111111 binary =&BF, then the flag bit will have everything unchanged except that bit 6 will be 0.
2) If we set x=01000000 binary = &40, then bit 6 will get set to 1 (since we know it WAS 0), and everything else will be unchanged.

So the command you want should be:
VDU 23,16,&40,&BF,0;0;0;

I haven't actually checked this, so I'd be interested to hear if it works!

Best wishes,

D


Libre de virus. www.avast.com


Re: VDU 23,16

J.G.Harston
 

Jerónimo Luis Dalla Via wrote:
I want to use VDU 23,16 to let the text cursor move beyond the edge of
the viewport/page (in VDU 5 mode).
...
VDU 23,16,f|
And I want to activate only this:
Bit 6 = 1 The text cursor can move beyond the edge of the
viewport/page (except in VDU 4 mode).
It only works in VDU 5 mode, like this:

MODE 1
VDU 5
MOVE 0,1024-16:PRINT STRING$(60,"*");
VDU 23,16,64|
MOVE 0,1024-96:PRINT STRING$(60,"#");

The VDU 23,16,x,y| form allows you to turn individual bits on and off,
the final setting is (oldsetting AND y) XOR x, so VDU 23,16,64,255-64|
would turn bit 6 on without changing any other setting. You may
recognise this as the same method as OSBYTE variables.

--
J.G.Harston - jgh@... - mdfs.net/jgh


Re: VDU 23,16

dai_m_leeds
 

Hi Jeronimo,

Using the form VDU 23,16,x,y,0;0;0;

The manual says the existing flag byte is first ANDed with y and the XORed with X, so:

1) If we set y =10111111 binary =&BF, then the flag bit will have everything unchanged except that bit 6 will be 0.
2) If we set x=01000000 binary = &40, then bit 6 will get set to 1 (since we know it WAS 0), and everything else will be unchanged.

So the command you want should be:
VDU 23,16,&40,&BF,0;0;0;

I haven't actually checked this, so I'd be interested to hear if it works!

Best wishes,

D


VDU 23,16

Jerónimo Luis Dalla Via
 

Hello, how are you?

 

I want to use VDU 23,16 to let the text cursor move beyond the edge of the viewport/page (in VDU 5 mode).

VDU 5 causes text to be written at the graphics cursor position.

 

The structure shown in the help file is this:

 

VDU 23,16,x,y,0;0;0;

VDU 23,16,f;0;0;0;

or

VDU 23,16,f|

 

And I want to activate only this:

 

Bit 6 = 1 The text cursor can move beyond the edge of the viewport/page (except in VDU 4 mode).

 

Does anyone know how to achieve it?

 

I tried everything but I couldn’t make it work.

 

Thank you very much.

 

Best regards.

 

Saludos,

 

Jerónimo

 


Libre de virus. www.avast.com


Re: Problem with Property Sheet

Hans van der Hoeven
 

Maybe this helps: This little program uses that function and shows the size and location of itself in it's window:

DIM Myrect{l%,t%,r%,b%} : REM Structure to receive current client window size.
Left%=-10
Height%=-10
Width%=-10
REPEAT
SYS"GetWindowRect",@hwnd%,Myrect{} : REM Read size and place of window.
WAIT 10
IF Left%<> Myrect.l% OR Height%<> Myrect.b%-Myrect.t% OR Width%<> Myrect.r%-Myrect.l% THEN
CLS
PRINT"Resize or move me."
PRINT "Left "+STR$(Myrect.l%)
PRINT "Top "+STR$(Myrect.t%)
PRINT "Right "+STR$(Myrect.r%)
PRINT "Bottom "+STR$(Myrect.b%)
PRINT "Height "+STR$(Myrect.b%-Myrect.t%)
PRINT "Width "+STR$(Myrect.r%-Myrect.l%)
Left%=Myrect.l%
Height%=Myrect.b%-Myrect.t%
Width%=Myrect.r%-Myrect.l%
ENDIF
UNTIL FALSE


Hans.

-----Oorspronkelijk bericht-----
Van: bb4w@groups.io <bb4w@groups.io> Namens alan836975 via Groups.Io
Verzonden: zondag 28 april 2019 13:56
Aan: bb4w@groups.io
Onderwerp: Re: [bb4w] Problem with Property Sheet

Thanks, I'll see if I can understand it. But I've never had much success in decoding those notes.

--
Alan Roberts - Mugswell, Surrey
+44 (0)1737832586
+44 (0)7749387934


Re: Problem with Property Sheet

 

Thanks, I'll see if I can understand it. But I've never had much success in decoding those notes.

--
Alan Roberts - Mugswell, Surrey
+44 (0)1737832586
+44 (0)7749387934


Re: Problem with Property Sheet

Hans van der Hoeven
 

you need to use the GetWindowRect function
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-getwindowrect
to find out the location and size of the window.

Hans.

-----Oorspronkelijk bericht-----
Van: bb4w@groups.io <bb4w@groups.io> Namens alan836975 via Groups.Io
Verzonden: vrijdag 26 april 2019 19:44
Aan: bb4w@groups.io
Onderwerp: [bb4w] Problem with Property Sheet

Is there a way to find out the coordinates of a property sheet, so that I can put it back in the same place? This line will place it at, say 600,300, but I want to have my program put it back where it was when it was last closed.

SYS "SetWindowPos",!Sheet%(SheetOpen%),0,600,300,0,0,5 :REM move it to 600,300

Thanks.

Alan Roberts

--
Alan Roberts - Mugswell, Surrey
+44 (0)1737832586
+44 (0)7749387934


Problem with Property Sheet

 

Is there a way to find out the coordinates of a property sheet, so that I can put it back in the same place? This line will place it at, say 600,300, but I want to have my program put it back where it was when it was last closed.

       SYS "SetWindowPos",!Sheet%(SheetOpen%),0,600,300,0,0,5 :REM move it to 600,300

Thanks.

Alan Roberts

--
Alan Roberts - Mugswell, Surrey
+44 (0)1737832586
+44 (0)7749387934


Re: Open source code in BBC Basic for a menu driven database in BBC Basic

 

Always happy to see well-written code as an example how to improve my programming.
Thanks !
Regards,
Edja


On Monday, April 8, 2019, 10:47:57 AM GMT+2, David Smith via Groups.Io <drsgraphicsbris@...> wrote:


A web page of mine containg a link to a blog with Open Source code for a database in BBC Basic-
Blog with BBC code

Have a nice day.


Open source code in BBC Basic for a menu driven database in BBC Basic

David Smith
 

A web page of mine containg a link to a blog with Open Source code for a database in BBC Basic-
Blog with BBC code

Have a nice day.


Re: BBC BASIC for Android updated

guy.leckythompson@...
 

Hi All;

For what it's worth - still get the "couldn't allocate memory" error when running on a Chromebook under ARC Welder.

Now, that could be because it's an older device [CB3-111] with less memory, but it's on Stable Build 73 of ChromeOS and almost works!

I'll continue to mess with ARC just to see if anything else runs / doesn't run.

All the best,
Guy


Re: Colours other than black for editbox text?

general@...
 

Yes, I'd come to the same conclusion.  Happly playing around with this after reading Richard's great Wiki page.  The subclassing looks interesting for a few other projects I have on the go.  Anyway, thanks again for the pointers.  Simon


Re: Colours other than black for editbox text?

dai_m_leeds
 

Hi Simon,

Subclassing may be more than you need/want: you can simply include richedit controls in your standard dialogue boxes, as discussed here:
http://www.bbcbasic.co.uk/wiki/doku.php?id=using_20rich_20edit_20controls
which may give you an easier solution to your problem.

Best wishes,

D