From: Aaron Ballman <aaron at realsoftware dot com>
Reply-To: Getting Started <gettingstarted at lists dot realsoftware dot com>
To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Coding Button
Date: Sun, 30 Jan 2005 16:18:30 -0600
if (Ht.string and me.string) <> 0 then
(BMIPushButton.enabled, BMIPushButton.default, BSAPushButton.enabled
and BSAPushButton.default) = true
else (BMIPushButton.enabled, BMIPushButton.default,
BSAPushButton.enabled and BSAPushButton.default) = false
You cannot set multiple values like that -- you need to separate them out
into individual lines, like this:
BMIPushButton.Enabled = true
BMIPushButton.Default = true
BSAPushButton.Enabled = true
Note that you can only have one default (and one cancel) button per window,
so making both BSAPushbutton and BMIPushButton default will provide you
with unexpected results.
HTH!
~Aaron
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>