Author |
Topic: Chalk Board (Read 313 times) |
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
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
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
KenDown
Full Member
member is offline


Posts: 181
|
 |
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?
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
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 
Regards Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
sbracken
New Member
member is offline


Posts: 19
|
 |
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: 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 » |
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
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
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
KenDown
Full Member
member is offline


Posts: 181
|
 |
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.
|
|
Logged
|
|
|
|
DDRM
Administrator
member is offline


Gender: 
Posts: 321
|
 |
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
|
|
Logged
|
|
|
|
|