Page 1 of 4

Mouse selection with picture

Posted: Mon Feb 10, 2014 10:49 pm
by rustyou
Hello,


i would like a image who change when i clik with my mouse. For to have a second picture after the clik.

How shall we do it?

Thank you,

Re: Mouse selection with picture

Posted: Mon Feb 10, 2014 11:14 pm
by Xtinct
Toggle switch loads images for on / off

Re: Mouse selection with picture

Posted: Tue Feb 11, 2014 10:09 pm
by rustyou
Hi,

Yes, but i want cliked on the picture for to see a second picture..... ?

without seeing switch... (only picture)

Re: Mouse selection with picture

Posted: Tue Feb 11, 2014 10:23 pm
by RJHollins
rustyou wrote:Hi,

Yes, but i want cliked on the picture for to see a second picture..... ?

without seeing switch... (only picture)

It's a neat trick, but what you can do is place a switch in with the picture ... expand the 'mouse area' to include the full pix if you like ... then, the trick ... HIDE the switch or remove the switch graphics.

Re: Mouse selection with picture

Posted: Tue Feb 11, 2014 10:36 pm
by rustyou
Ok,

Possible to have an exemple.. ?

Thank you,

Re: Mouse selection with picture

Posted: Wed Feb 12, 2014 3:43 am
by Jay
here you go! load your images with the modules properties panel

2pic.fsm
(167.43 KiB) Downloaded 1026 times


regards

Re: Mouse selection with picture

Posted: Wed Feb 12, 2014 7:13 pm
by rustyou
Hi :)

Yes it's good, but it's possible to charge different size for the picture ?

The first small... with a size define and the second big with a other size define ??



Thank you,

Re: Mouse selection with picture

Posted: Wed Feb 12, 2014 10:42 pm
by billv
Yeh..you got it...just define the bitmap size.
Invisible switch.fsm
(5.95 KiB) Downloaded 985 times

Re: Mouse selection with picture

Posted: Thu Feb 13, 2014 12:17 am
by RJHollins
some good examples guys ...

billv ... your example is maintaining the same mouse 'active' area, rathing than changing with the bitmap size.

Re: Mouse selection with picture

Posted: Thu Feb 13, 2014 3:33 am
by billv
RJHollins wrote:billv ... your example is maintaining the same mouse 'active' area, rathing than changing with the bitmap size.

Good point..... ;) ...he might prefer it like that..
If that behaviour is required, he can just make another switch, re-size it, then switch it
same time as the the bitmaps.
Invisible switch_alt.fsm
(6 KiB) Downloaded 1001 times