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: Will Leshner <leshner at ljug dot com>
Date: Sun, 3 Oct 2004 16:57:44 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <p06110400bd8624ed231b at [131 dot 158 dot 15 dot 85]> <A0481E1A-158C-11D9-B199-000A95983FBE at ljug dot com> <4E095868-1593-11D9-9E16-000A9585ABA2 at mac dot com>

On Oct 3, 2004, at 4:23 PM, Stefan Pantke wrote:

This works most of the time, but if you preset fields
from preferences e.g., the Change() event fires too.
And this might to odd situations from time to time, e.g.
if you do more than just enabling fields.

Therefore, another class/module/window local variable might
be required to stop actions in this case.


Usually I have a method that validates the OK button and enables or disables it accordingly. It doesn't usually matter if I'm messing with the values of controls because either the OK button is ready to be enabled or it isn't.

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com

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