gettingstarted
[Top] [All Lists]

Re: Coding Button

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Coding Button
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Sun, 30 Jan 2005 16:18:30 -0600
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <BAY2-F340853A98CD492FE1D59C4DA7B0 at phx dot gbl>
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>

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