BBC BASIC for Windows
General >> General Board >> Vertical text
http://bb4w.conforums.com/index.cgi?board=general&action=display&num=1464447339

Vertical text
Post by Ric on May 28th, 2016, 2:55pm

A simple question.

Can BB4W output text to the screen vertically?
Would be ideal if I could do
Code:
VDU 5
MOVE X,Y
PRINT VERTICAL"TEXTTEXTTEXT"
VDU 4 


Yours hoping
Ric
Re: Vertical text
Post by JGHarston on May 28th, 2016, 11:32pm

on May 28th, 2016, 2:55pm, Ric wrote:
A simple question.

Can BB4W output text to the screen vertically?
Would be ideal if I could do
Code:
VDU 5
MOVE X,Y
PRINT VERTICAL"TEXTTEXTTEXT"
VDU 4 


Yours hoping
Ric

VDU 23,16 controls cursor direction. link, link

eg:
VDU 23,16,8;0;0;0;
PRINT "Hello there"


Re: Vertical text
Post by Ric on May 29th, 2016, 07:19am

Thanks JG,

I knew it had to be simple, just couldn't find it.


Ric
Re: Vertical text
Post by Ric on May 29th, 2016, 07:46am

JG
Just tested VDU 23,16 which does what it says but not what I want.
What I wanted to do was to effectively rotate the text through 90 degrees so that I could insert in to vertical tabs.
I could do this with screen capture, do the rotation and reprint the dots, but it would be long winded and slow.
Help

Ric
Re: Vertical text
Post by RockOve on May 30th, 2016, 9:26pm

on May 29th, 2016, 07:46am, Ric wrote:
JG
Just tested VDU 23,16 which does what it says but not what I want.
What I wanted to do was to effectively rotate the text through 90 degrees so that I could insert in to vertical tabs.
I could do this with screen capture, do the rotation and reprint the dots, but it would be long winded and slow.
Help

Ric

i think you try to figure a way to tilt the screen output, a way that its at its side all the time?

Re: Vertical text
Post by KenDown on Jun 1st, 2016, 07:23am

Search in the Help file that comes with BB4W. Select the "Search" tab and type in "angle" as the keyword. One of the options is "Drawing angled text". It will do what you want.

The only thing to be aware of is that the size of the text is predetermined with the height% variable and altering the font size (*FONT) will not change the size of the angled text.