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: Stefan Pantke <seaside dot ki at mac dot com>
Date: Mon, 4 Oct 2004 01:23:59 +0200
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>

Am 4. Okt 2004 um 00:36 schrieb Will Leshner:


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

How do I achieve that? When I first began developing it in a THINK Pascal program a decade ago, I put the check in the idle event. But I don't see an event analogous in RB. Can anyone suggest where to put the check?


I usually use a control's Change event (or the analogous) to do such a check. You'll have to put it in each control's Change event, though.

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.

s

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