I have a Panel
of size {850, 400} as myPanel
with a Pane
of size {450, 400} and four images assigned to forwardPicture
, backwardPicture
, picture1
and picture2
.
forwardPicture=
backwardPicture=
picture1=
picture2=
Both picture1
and picture2
are of size {400, 400},
myPanel = Panel[Row[{picture1, picture2}], ImageSize -> {850, 400}];
Row[{
MouseAppearance[EventHandler[
Framed[backwardPicture,
FrameStyle -> None], {"MouseClicked" :> ""}], "LinkHand"],
Pane[myPanel, ImageSize -> {450, 400}, Scrollbars -> None],
MouseAppearance[EventHandler[
Framed[forwardPicture,
FrameStyle -> None], {"MouseClicked" :> ""}], "LinkHand"]
}]
After evaluation, I get this:
I want to move the images from right to left within the Pane
whenever forwardPicture
is pressed, and move them from left to right whenever backwardPicture
is pressed. I don't want any scrollbars in the Pane
. I don't want to move the images at one click: I want to move them a little bit for every click, until the full image is displayed. Can anybody help me?
panel
. why because,at the starting timePanel
displayed with some certain dimensions(min:0,max:50),and then next dimensions increased like (min:10,max=60) wheneverforwardPicture
is pressed...I think like that ,so I mentioned "dimension". $\endgroup$