BBC BASIC for Windows
« Chalk Board »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:18pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Chalk Board  (Read 313 times)
Ric
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 136
xx Chalk Board
« Thread started on: Apr 23rd, 2017, 8:23pm »

Just thought I would share this with you all.

My son wanted to draw some pictures on the laptop, but when I showed I'm MS Paint he was completely bemused and asked for something simpler. Rather than look up some app I decided to make one.

It works far more intuitively with a touch screen but feel free to use it if you have small kids.

The second icon up on the right was going to be used to save/load pictures but it turned out it was more fun if the pictures could not be saved.

https://1drv.ms/u/s!AqibHqCkE1VQkGkxYRqiIHgopJPz

Happy playing

Ric
User IP Logged

It's always possible, but not necessarily how you first thought. Chin up and try again.
KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: Chalk Board
« Reply #1 on: Apr 26th, 2017, 1:31pm »

Very nice.

How about some rubber banding - not sure how you'd implement it without a keyboard, possibly a double click?
User IP Logged

Ric
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 136
xx Re: Chalk Board
« Reply #2 on: Apr 26th, 2017, 2:43pm »

Sorry Ken, unfortunately the project has finished as my son was really happy with it. The next bit is down to you grin

Regards Ric
User IP Logged

It's always possible, but not necessarily how you first thought. Chin up and try again.
sbracken
New Member
Image


member is offline

Avatar




PM


Posts: 19
xx Re: Chalk Board
« Reply #3 on: Apr 28th, 2017, 08:25am »

Hi Ric,

Fun program, but the code has a small mistake at the end of PROCsetupleft

Code:
   *      ENDPROC 

which causes a small system window to open and close very rapidly when the program starts or a new canvas is created.

Also, is there a reason for the code relating to the creation of the DIB at the start? Apologies if I am missing the obvious, but that sort of stuff is way above my head, and the program runs perfectly happily if you delete it...

Simon
« Last Edit: Apr 28th, 2017, 08:25am by sbracken » User IP Logged

Ric
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 136
xx Re: Chalk Board
« Reply #4 on: Apr 28th, 2017, 12:38pm »

Thanks Simon,

The creation of the DIBSection is only there because it is part of the base program I use, which usually involves accessing the screen directly rather than using DRAW PLOT etc. In this case you are right it is redundant.

The * was probably introduced by my 1 Year old, who likes attacking my laptop at any given moment😉

Regards Ric
User IP Logged

It's always possible, but not necessarily how you first thought. Chin up and try again.
KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: Chalk Board
« Reply #5 on: Apr 28th, 2017, 12:46pm »

Thanks, mate. I've already written a simple graphics program that includes rubber banding. I simply suggested it as I find the process a) useful and b) interesting and thought your sone might think the same.
User IP Logged

DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx Re: Chalk Board
« Reply #6 on: Apr 29th, 2017, 08:35am »

Hi Ric,

It's nice, and a good reminder that sometimes simple is better than fancy! I haven't tried it on a tablet yet, but it works fine on a desktop.

Best wishes,

D
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls