Where are button contents?
Ken Ray
kray at sonsothunder.com
Wed Feb 12 15:50:01 EST 2003
Ken,
You can do just as you describe. Buttons have contents (usually used for
drop down or popup menus or tabbed buttons). Button contents are
different than custom props -- they're a "real" property of buttons. If
you have Rev 1.1.1, you can create a button, open the Properties palette
and click the last tab (the one that looks like a button). Choose one of
the menu styles of buttons and the area marked "Create Button Menu With
Contents" will enable... here's where you specify the contents of
buttons. You can also do it by script:
on FillButtonContents
put "One" & cr & "Two" & cr & "Three" into button 1
end FillButtonContents
Button contents are just like in HC - you can get the selection, the
selectedLine, etc. of buttons...
Hope this helps,
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
----- Original Message -----
From: "Ken Norris (dialup)" <pixelbird at interisland.net>
To: <use-revolution at lists.runrev.com>
Sent: Wednesday, February 12, 2003 11:37 AM
Subject: Where are button contents?
> Hi list,
>
> I want to do something like in HC:
>
> put line 2 of target into field "MainField"
>
> Where are button contents?
>
> Do button contents have something to do with Custom Properties? How do
I set
> such a thing?
>
> Ken N.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list