home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / database / 1495 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.4 KB  |  62 lines

  1. Newsgroups: comp.sys.mac.databases
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!star.cs.vu.nl!balaena!rgaros
  3. From: rgaros@bio.vu.nl (Rene G.A. Ros)
  4. Subject: Re: Disabling 4D objects (was: Disabling Layout Objects)
  5. Message-ID: <1992Nov23.172237.4653@bio.vu.nl>
  6. Organization: VU Biology, Amsterdam, The Netherlands
  7. References: <Mf35uFO00iV249VLJH@andrew.cmu.edu>
  8. Date: Mon, 23 Nov 1992 17:22:37 GMT
  9. Lines: 51
  10.  
  11. wb1o+@andrew.cmu.edu (William Matthew Beaver) writes:
  12. : Is there a way to disable a layout object such as a thermometer or dial?
  13. :  I want to have a layout in which the user selects a radio button (ex:
  14. : Yes) and the thermometer in the layout is disabled.   If the No button
  15. : is selected, then I want the termometer the be activated again.  Does
  16. : anyone have any ideas on how to do this?  I tried the DISABLE BUTTON
  17. : command but this obviously does not work since the object is not a
  18. : button.
  19.  
  20. You can try to use two pages in the layout. Make them identical except for
  21. the object you want to hide. Use GOTO PAGE() to move to another page base
  22. on that button. You can also use GOTO AREA() to go to the button on the
  23. other page, otherwise the text cursor goes to the first object in the entry
  24. order.
  25. It's not a eligant way but it works. It's up to you.
  26. You should try to keep the number of commands executed in the DURING phase
  27. even more to a minimum.
  28.  
  29. Another way is to set the color to the same color as the background. It
  30. works nice if you want a button not only to be disabled but completely
  31. invisible. I don't know if this works for thermometers.
  32.  
  33. : Also, how do you set the radio button default? In the BEFORE phase of the
  34. : layout?  I want the yes button to be selected automatically (thus
  35. : deactivating the thermometer until the user selects NO).
  36. myButton := 1   sets a button
  37. When comparing you can also use these values (1 and 0)
  38.  
  39. :  
  40. : ANY ideas are welcome.   
  41. :
  42. This idea is the only one I can think of, hope you can use it.
  43.  
  44. :  
  45. : Thanks in advance.
  46. :  
  47. : William Beaver
  48. : Carnegie Mellon University
  49. Your welcome.
  50.  
  51. Rene
  52.  
  53. ************************************************************
  54. Ren'e G.A. Ros                        Amsterdam, Netherlands
  55. rgaros@bio.vu.nl                    rgaros@nikhefk.nikhef.nl
  56. ************************************************************
  57. My English is niet very well en ook nog not so snel,
  58. but that comes later wel.
  59. ************************************************************
  60.