If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Dragging a big image in a smaller "canvas"
12 posts
• Page 1 of 2 • 1, 2
Dragging a big image in a smaller "canvas"
Hi,
My question is about a very simple feature you'll probably find in the android\web world.
Lets say we've determined an image "canvas" in FS with a size of 200X200 pxls. Now, we are loading in to it a 400X400 pxls image. I need a mouse feature that allows me to drag to the left\right\down\up to see the hidden parts of the image. Does anyone knows how to do it?
Thnaks
My question is about a very simple feature you'll probably find in the android\web world.
Lets say we've determined an image "canvas" in FS with a size of 200X200 pxls. Now, we are loading in to it a 400X400 pxls image. I need a mouse feature that allows me to drag to the left\right\down\up to see the hidden parts of the image. Does anyone knows how to do it?
Thnaks
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
Re: Dragging a big image in a smaller "canvas"
I have done this before in a piano roll.
I think you will best start by hooking it up to sliders-
imo start there mate,
and then you can use the mouse over on the image itself
I can up the piano roll if you like, actually- here 'tis->
I think this is for 3081
The view scroll is the slider on the left of grid
I think you will best start by hooking it up to sliders-
imo start there mate,
and then you can use the mouse over on the image itself
I can up the piano roll if you like, actually- here 'tis->
I think this is for 3081
The view scroll is the slider on the left of grid
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
Re: Dragging a big image in a smaller "canvas"
here is a zoom and scroll bitmap window i did a while ago..
- Attachments
-
- zoom sxroll.fsm
- (586.65 KiB) Downloaded 932 times
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Dragging a big image in a smaller "canvas"
Thanks guys, those are great examples and a great starting points, but I ment scrolling without extra sliders. Only with mouse cursor. I mean like every time you point the image and push the cursor+left button pressed, the whole image moves to the dragged direction.
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
Re: Dragging a big image in a smaller "canvas"
Here is a very basic hand tool. No boundary checking etc., just plain click&drag. Can you take it from there?
- Attachments
-
- MovableBitmapDisplay.fsm
- (4.05 KiB) Downloaded 888 times
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Dragging a big image in a smaller "canvas"
martinvicanek wrote:Here is a very basic hand tool. No boundary checking etc., just plain click&drag. Can you take it from there?
That's great martin Thanks.
No success with determining the bounderies. Can you please explain how?
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
Re: Dragging a big image in a smaller "canvas"
Wow, Martin! You've evolved a lot since the early days. Keep it going!martinvicanek wrote:Here is a very basic hand tool. No boundary checking etc., just plain click&drag. Can you take it from there?
I corrected a few bits, used syntax and style according to the style guide and added boundary checks. Now some people in the past have reacted strangely, so if you don't want me to correct your code, just say so. It will spare me the work, and I won't mind it.
- Attachments
-
- MovableBitmapDisplay[Martin, tulamide].fsm
- (11.9 KiB) Downloaded 967 times
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Dragging a big image in a smaller "canvas"
Works real nice Tulamide.
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Dragging a big image in a smaller "canvas"
RJHollins wrote:Works real nice Tulamide.
Thanks! But I've only added the boudary checks, the rest is Martin's work!
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Dragging a big image in a smaller "canvas"
Thanks tulamide, it works perfectely
Why should anyone refuse to such a possitive tribute? If someone already decided to shares something, what's the point in refusing to customizing it or even improving it? that's one of the forum's best benefits
Please guys, don't push us into that dirrection.
Thanks!!!
tulamide wrote:I corrected a few bits, used syntax and style according to the style guide and added boundary checks. Now some people in the past have reacted strangely, so if you don't want me to correct your code, just say so. It will spare me the work, and I won't mind it.
Why should anyone refuse to such a possitive tribute? If someone already decided to shares something, what's the point in refusing to customizing it or even improving it? that's one of the forum's best benefits
Please guys, don't push us into that dirrection.
Thanks!!!
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
12 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 35 guests