gettingstarted
[Top] [All Lists]

Re: Coding Button

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: Coding Button
From: "Lennox Jacob" <lenpartico at hotmail dot com>
Date: Sun, 30 Jan 2005 22:21:07 +0000
Delivered-to: gettingstarted at lists dot realsoftware dot com
Thanks Aaron,
I will work on it.
Thanks again.
Lennox.

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>

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>