BBC BASIC for Windows
Programming >> BBC BASIC language >> Documents
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1279208064

Documents
Post by JB91 on Jul 15th, 2010, 3:34pm

There are two things I would like to know:

1) Is it possible to create a document like in Microsoft Office Word in BBC BASIC rather than the edit window?

2) Is it possible to do spelling checks? Like if you typed a word and you mispelled it and it would underline it. If so, is it possible to do grammar as well?

Thanks in advanced,

Josh smiley
Re: Documents
Post by admin on Jul 15th, 2010, 5:48pm

on Jul 15th, 2010, 3:34pm, JB91 wrote:
Is it possible to create a document like in Microsoft Office Word in BBC BASIC rather than the edit window?

I'm not exactly sure what you mean. If the question is "could you (in principle) write an entire word processor in BBC BASIC rather than using an embedded Edit Control?" then the answer is yes, but it would be a lot of work!

Quote:
Is it possible to do spelling checks? Like if you typed a word and you mispelled it and it would underline it. If so, is it possible to do grammar as well?

As far as I know you'd have to do it yourself by copying the text out of the Edit Control, running the spelling/grammar check on the text, then highlighting the appropriate words/phrases. If you use a Rich Edit control rather than a regular Edit Control you have a range of text attributes available, such as bold, italic, underline, strike-out and colour.

Richard.

Re: Documents
Post by JB91 on Jul 16th, 2010, 3:49pm

Can you tell me the codes for how to do these things?
Re: Documents
Post by admin on Jul 16th, 2010, 7:28pm

on Jul 16th, 2010, 3:49pm, JB91 wrote:
Can you tell me the codes for how to do these things?

Using Rich Edit controls is documented on the Wiki:

http://bb4w.wikispaces.com/Using+Rich+Edit+controls

Richard.