realbasic-nug
[Top] [All Lists]

Re: Enabling the OK Button on the Fly

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Enabling the OK Button on the Fly
From: CV <atauqua at hit dot net>
Date: Sun, 3 Oct 2004 17:22:39 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <p06110400bd8624ed231b at [131 dot 158 dot 15 dot 85]>
The Timer object would work for this requirement. You would put code in the timer's Action event which checks the status of your interface elements and enables your OK button or not depending on the results. Set the timer mode to 2(the default) and run some trials starting with a period of 10, perhaps, and adjust to get the response that you want.

Jack

On Oct 3, 2004, at 5:11 PM, Charles Kelley wrote:

Hi, all!

I have designed a very long form in a dialog box for a membership database I'm developing. It consists of editfields for first name, middle name, last name, street address, city, state, ZIP (postal) code; various roles in the organization and various means of contact; popup menus for age group and affiliation type.*

The OK button should be disabled when all of the editfields are empty, all of the checkboxes are unchecked, and all of the popup menus are UNKNOWN; that is, when the form is blank, in layman's terms. That's easy when the form first appears: nothing is filled in, so the OK button begins disabled.

But a problem arises when the form is filled in because a field could be filled in and then cleared a short time later. The OK button ought to be disabled or enabled accordingly. In short, I'm trying to do this [in pseudocode]

                

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