🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.databases
Article #330

Re: 4th Dimension -- Disable Button

#330
From: ST25370
Date: Fri, 09 Oct 1992 21:14
34 lines
1601 bytes
In article <MATSJ.92Oct6150054@ios.CMD.UU.SE>
matsj@ios.CMD.UU.SE (Mats Johnson) writes:
 
>
>
>I've tried disabling buttons from the startup script (since I didn't
>find a way to set the button disabled by default). That didn't work
>however, it seems that the layout must be displayed before the buttons
>can be disabled. I don't think it should matter what kind of procedure
>is doing the disabling, but then, you never know with 4D...
>
>A related question, I guess there is no way to disable a popup menu?
>--
>Mats Johnson, CMD, Uppsala University, Laegerhyddsvaegen 18, S-752 37 UPPSALA
>Mats.Johnson@CMD.UU.SE
 
The earliest point available for disabling a button is during the 'before'
state of the layout execution cycle.  You can test for this using 'IF (BEFORE)'
of placing ':(BEFORE)' in a case of.  'BEFORE' is a function that returns
true during the before part of the execution cycle and false otherwise.
 
Example:
 
if (before)
 
  disable button (<button name>)
 
end if
 
 
 
Bill Jamison
rwj@engr.latech.edu
st25370@vm.cc.latech.edu
Technical Details
Message-ID: <1687BD665.ST25370@VM.CC.LATECH.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!newshost.latech.edu!VM.CC.LATECH.EDU!ST25370
References: <genPA6q00iUzA1VVBc@andrew.cmu.edu> <MATSJ.92Oct6150054@ios.CMD.UU.SE>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.databases
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!newshost.latech.edu!VM.CC.LATECH.EDU!ST25370
From: ST25370@VM.CC.LATECH.EDU
Subject: Re: 4th Dimension -- Disable Button
Message-ID: <1687BD665.ST25370@VM.CC.LATECH.EDU>
Sender: usenet@engr.latech.edu
Nntp-Posting-Host: vm.cc.latech.edu
Organization: LOUISIANA TECH UNIVERSITY
References: <genPA6q00iUzA1VVBc@andrew.cmu.edu> <MATSJ.92Oct6150054@ios.CMD.UU.SE>
Date: Fri, 09 Oct 92 15:14:41 CST
Lines: 34