Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Overflow on /dev/null, please empty the bit bucket.


programming / comp.lang.smalltalk.dolphin / Controlling button state in a form

SubjectAuthor
* Controlling button state in a formVince Refiti
`* Re: Controlling button state in a formklausk
 `* Re: Controlling button state in a formVince Refiti
  `- Re: Controlling button state in a formjohn c

1
Subject: Controlling button state in a form
From: Vince Refiti
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 7 May 2020 01:09 UTC
X-Received: by 2002:a05:6214:a0f:: with SMTP id dw15mr11103091qvb.236.1588813769013;
Wed, 06 May 2020 18:09:29 -0700 (PDT)
X-Received: by 2002:a25:8281:: with SMTP id r1mr17007563ybk.28.1588813768569;
Wed, 06 May 2020 18:09:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Wed, 6 May 2020 18:09:28 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=59.167.168.68; posting-account=5_w1_goAAAB1Y5P4_YBwBlB76XHrI38U
NNTP-Posting-Host: 59.167.168.68
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f2c7d6eb-395a-4ae0-9c5b-a4a7f873b902@googlegroups.com>
Subject: Controlling button state in a form
From: vin...@gmail.com (Vince Refiti)
Injection-Date: Thu, 07 May 2020 01:09:29 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
Hi

What is the easiest way to control the enabled/disabled (or any other attribute) of a button according the state of one or more other components in a form? Basically I want to disable a button unless some other input is valid.

How do I refer to a button from the #createComponents or #model: methods?

Thanks in advance, Vince


Subject: Re: Controlling button state in a form
From: klausk
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 7 May 2020 06:02 UTC
References: 1
X-Received: by 2002:ac8:128a:: with SMTP id y10mr11318592qti.221.1588831331294;
Wed, 06 May 2020 23:02:11 -0700 (PDT)
X-Received: by 2002:a25:8092:: with SMTP id n18mr18828774ybk.99.1588831331121;
Wed, 06 May 2020 23:02:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Wed, 6 May 2020 23:02:10 -0700 (PDT)
In-Reply-To: <f2c7d6eb-395a-4ae0-9c5b-a4a7f873b902@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=130.180.75.154; posting-account=eeVE7woAAAA17wjkt77cEPyKNctBN3jP
NNTP-Posting-Host: 130.180.75.154
References: <f2c7d6eb-395a-4ae0-9c5b-a4a7f873b902@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f6b96c3f-d76b-4d29-b093-4781959a6843@googlegroups.com>
Subject: Re: Controlling button state in a form
From: inf...@kirchhoff-edv.de (klausk)
Injection-Date: Thu, 07 May 2020 06:02:11 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
Am Donnerstag, 7. Mai 2020 03:09:29 UTC+2 schrieb Vince Refiti:
Hi

What is the easiest way to control the enabled/disabled (or any other attribute) of a button according the state of one or more other components in a form? Basically I want to disable a button unless some other input is valid.

How do I refer to a button from the #createComponents or #model: methods?

Thanks in advance, Vince

Same question here: https://groups.google.com/forum/#!topic/comp.lang.smalltalk.dolphin/Pj9Flq3i3yM


Subject: Re: Controlling button state in a form
From: Vince Refiti
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 7 May 2020 08:30 UTC
References: 1 2
X-Received: by 2002:ae9:edd7:: with SMTP id c206mr290987qkg.157.1588840246546;
Thu, 07 May 2020 01:30:46 -0700 (PDT)
X-Received: by 2002:a25:8281:: with SMTP id r1mr19153315ybk.28.1588840246156;
Thu, 07 May 2020 01:30:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 7 May 2020 01:30:45 -0700 (PDT)
In-Reply-To: <f6b96c3f-d76b-4d29-b093-4781959a6843@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=59.167.168.68; posting-account=5_w1_goAAAB1Y5P4_YBwBlB76XHrI38U
NNTP-Posting-Host: 59.167.168.68
References: <f2c7d6eb-395a-4ae0-9c5b-a4a7f873b902@googlegroups.com> <f6b96c3f-d76b-4d29-b093-4781959a6843@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b783cb50-3735-469d-ac57-b1287b3e70e7@googlegroups.com>
Subject: Re: Controlling button state in a form
From: vin...@gmail.com (Vince Refiti)
Injection-Date: Thu, 07 May 2020 08:30:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
Let me see if I got this straight:

A polling loop calls #queryCommand: on a collection of items in a Presenter.. So #queryCommand: should be overridden in my particular Presenter subclass so that for an item of interest (a button in my case) I will implement code to check some state and to enable or disable it accordingly.

Thanks Klaus


Subject: Re: Controlling button state in a form
From: john c
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 7 May 2020 12:15 UTC
References: 1 2 3
X-Received: by 2002:ae9:f009:: with SMTP id l9mr14595740qkg.370.1588853728583;
Thu, 07 May 2020 05:15:28 -0700 (PDT)
X-Received: by 2002:a25:c04c:: with SMTP id c73mr21238230ybf.407.1588853728224;
Thu, 07 May 2020 05:15:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 7 May 2020 05:15:27 -0700 (PDT)
In-Reply-To: <b783cb50-3735-469d-ac57-b1287b3e70e7@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=71.234.62.46; posting-account=FxwEXgoAAADcSnrOjqy8Iwckyp5OTz8K
NNTP-Posting-Host: 71.234.62.46
References: <f2c7d6eb-395a-4ae0-9c5b-a4a7f873b902@googlegroups.com>
<f6b96c3f-d76b-4d29-b093-4781959a6843@googlegroups.com> <b783cb50-3735-469d-ac57-b1287b3e70e7@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <551bf563-0f52-4acd-9303-39e6677fee91@googlegroups.com>
Subject: Re: Controlling button state in a form
From: jndbusin...@gmail.com (john c)
Injection-Date: Thu, 07 May 2020 12:15:28 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1502
X-Received-Body-CRC: 2442723107
View all headers
hi,

i have had luck using a boolean. the boolean value is set by your input editting. in queryCommand you enable or disable the method associated with the button based on that boolean.

john


1
rocksolid light 0.7.2
clearneti2ptor