We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge 8 - Drag n Drop
#1
Make a Drag and Drop feature using the Mouse buttons to position a GraphicsWindow shape (Rectangle).

Extend it to rotate the shape when Shift key is down.
[-] The following 2 users Like litdev's post:
  • AbsoluteBeginner, z-s
Reply
#2
BZTW39.000

JR
[-] The following 2 users Like jrmrhrb00's post:
  • AbsoluteBeginner, litdev
Reply
#3
Nice solution JR,
but it has a funny side effect.

If I press the Shift key 5 times, the lock function is activated and the rectangle doesn't stop rotating.  Smile

   

Avoiding this would be the next challenge
[-] The following 3 users Like Scout's post:
  • AbsoluteBeginner, litdev, z-s
Reply
#4
Scout,

Goto start and type in sticky keys. It will bring up the sticky keys window that shows a group of buttons. Turn off the top button.

JR
[-] The following 2 users Like jrmrhrb00's post:
  • Scout, z-s
Reply
#5
KCHP538.000
[-] The following 2 users Like litdev's post:
  • AbsoluteBeginner, z-s
Reply
#6
LitDev,

How about an explanation of how this is supposed to work. I did get it to rotate., but with a touchpad it's difficult. Hold the left button down, while moving it and hold the shift key down, Wow! Maybe with a mouse it works better. You put the blocks on top of each other then what? I don't get it!

JR
Reply
#7
JR,

This was just a solution to the challenge, nothing more, yes it would work better with a mouse.
[-] The following 1 user Likes litdev's post:
  • jrmrhrb00
Reply
#8
LitDev.

I was thinking there is more that you could do with the rectangles. Yeah, it was hard to get them to rotate with a touchpad. I did like the grid. I hadn't seen that before. I'm still playing around with it. Your programs are always so interesting. Always a lot to learn.

JR
[-] The following 1 user Likes jrmrhrb00's post:
  • AbsoluteBeginner
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)