It's just a handler in the card script. It's there so the script that
sets the target object's properties using the dialog button/field
states is in the same place as the script that sets the button/field
states based on the object's properties (this just makes maintenance
of the dialog scripts easier).
You can edit it if you want, but there's not much point unless you're
adding new controls to the dialog.
> I need to make some very specifically shaped buttons
> and I would prefer if I can do it in a way such that they resize
> themselves with the length of their name rather than just making
> the button invisible and painting the outline I want.
Sounds like a good thing to put into the "Utilities" stack. The
script would be something like:
set the width of the selobj to the formattedWidth of the selobj + 8
If you need to do this dynamically because you need to change the
names of the buttons, you'll need to write a little geometry
management routine, perhaps in the same handler that you set the
button names in:
set the width of button 1 to the formattedWidth of button 1 + 8
repeat with i = 2 to the number of buttons
set the width of button i to the formattedWidth of button i + 8
set the left of button i to the right of button (i - 1) + 8
end repeat
>
> Kara |\ _,,,---,,_
> ZZZzz /,`.-'`' -. ;-;;,_
> |,4- ) )-,_. ,\ ( `'-'
> '---''(_/--' `-'\_) fL
-- *********************************************************************** * Scott Raney 303-447-3936 Remember: the better you look, * * raney@metacard.com the more you'll see -- Lidia * ***********************************************************************