home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.databases
- Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!star.cs.vu.nl!balaena!rgaros
- From: rgaros@bio.vu.nl (Rene G.A. Ros)
- Subject: Re: Disabling 4D objects (was: Disabling Layout Objects)
- Message-ID: <1992Nov23.172237.4653@bio.vu.nl>
- Organization: VU Biology, Amsterdam, The Netherlands
- References: <Mf35uFO00iV249VLJH@andrew.cmu.edu>
- Date: Mon, 23 Nov 1992 17:22:37 GMT
- Lines: 51
-
- 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.
- ************************************************************
-