🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.databases
2 messages
2 total messages Started by William Matthew Beaver Fri, 20 Nov 1992 03:42
Disabling 4D objects (was: Disabling Layout Objects)
#552
Author: William Matthew Beaver
Date: Fri, 20 Nov 1992 03:42
19 lines
1196 bytes
Is there a way to disable a layout object such as a thermometer or dial?
 I want to have a layout in which the user selects a radio button (ex:
Yes) and the thermometer in the layout is disabled.   If the No button
is selected, then I want the termometer the be activated again.  Does
anyone have any ideas on how to do this?  I tried the DISABLE BUTTON
command but this obviously does not work since the object is not a
button.
 
Also, how do you set the radio button default? In the BEFORE phase of the
layout?  I want the yes button to be selected automatically (thus
deactivating the thermometer until the user selects NO).
 
ANY ideas are welcome.   
 
Thanks in advance.
 
William Beaver
Carnegie Mellon University
Re: Disabling 4D objects (was: Disabling Layout Objects)
#565
Author: Rene G.A. Ros
Date: Mon, 23 Nov 1992 17:22
51 lines
2529 bytes
wb1o+@andrew.cmu.edu (William Matthew Beaver) writes:
: 
: Is there a way to disable a layout object such as a thermometer or dial?
:  I want to have a layout in which the user selects a radio button (ex:
: Yes) and the thermometer in the layout is disabled.   If the No button
: is selected, then I want the termometer the be activated again.  Does
: anyone have any ideas on how to do this?  I tried the DISABLE BUTTON
: command but this obviously does not work since the object is not a
: button.

You can try to use two pages in the layout. Make them identical except for
the object you want to hide. Use GOTO PAGE() to move to another page base
on that button. You can also use GOTO AREA() to go to the button on the
other page, otherwise the text cursor goes to the first object in the entry
order.
It's not a eligant way but it works. It's up to you.
You should try to keep the number of commands executed in the DURING phase
even more to a minimum.

Another way is to set the color to the same color as the background. It
works nice if you want a button not only to be disabled but completely
invisible. I don't know if this works for thermometers.

: Also, how do you set the radio button default? In the BEFORE phase of the
: layout?  I want the yes button to be selected automatically (thus
: deactivating the thermometer until the user selects NO).
myButton := 1   sets a button
When comparing you can also use these values (1 and 0)

:  
: ANY ideas are welcome.   
:
This idea is the only one I can think of, hope you can use it.

:  
: Thanks in advance.
:  
: William Beaver
: Carnegie Mellon University
: 
Your welcome.

Rene

************************************************************
Ren'e G.A. Ros                        Amsterdam, Netherlands
rgaros@bio.vu.nl                    rgaros@nikhefk.nikhef.nl
************************************************************
My English is niet very well en ook nog not so snel,
but that comes later wel.
************************************************************
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads