"MegaWidget" question
MisterX
b.xavier at internet.lu
Tue Feb 14 12:20:09 EST 2006
there's lots of ways...
easiest would be to use 2 icons, one for the non-hilited state of the button
and one for the hilited state (ON). You set the hilited of the button on and
off and it will show or switch that icon and it's a on-off switch...
set the button's auto-hilite to off with this little script
on mouseup
set the hilite of me to not the hilite of me
end mouseup
very easy!
choice of icons will make the button more dipswitch like...
scanning dipswitches in on and off states is also allowed but icons look
usually better and are easier to find...
Depends how cool you want those icon or switches to look...
cheers
Xavier
http://monsieurx.com
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Len Morgan
> Sent: Tuesday, 14 February, 2006 18:03
> To: use-revolution at lists.runrev.com
> Subject: "MegaWidget" question
>
> I'm wondering anyone has created a "megawidget" (sorry for
> the TCL/TK term - that's my background) that would visually
> simulate a DIP switch?
> I'd like to create a micro-app for a friend that would
> visually show and allow the user to manipulate the switches
> on a multiposition DIP switch and then calculate what those
> switches mean. For example, it is common to use 3 or 4 DIP
> switches to set the baud rate for a modem so I'd like to let
> the user toggle the switches back and forth and display the
> baud rate that would give them. Alternatively, I'd also like
> to provide a drop down box with the possible choices and upon
> selection, "set" the switches on the screen.
>
> This seems like it would need a modified checkbutton (one
> image for switch-on and one for switch-off) and then a way of
> assembling more than one of these into a group with a nice
> box around them that looks like the body of the switch itself.
>
> Is something like this possible? I think if I had the
> images, I could code it and make a generic DIP switch control
> that could make one as big or small as necessary.
>
> Thanks
>
> Len Morgan
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list