info-mac@uw-beaver (info-mac) (12/01/84)
From: kato.sv@XEROX.ARPA Try ShowControl to activate and HideControl to deactivate. I haven't experimented but from reading IM TE has nothing to do with controls. The control data structure is put on a list attached to the window and managed by the Control Manager routines. For an example, see page 11 of the listing of FILE.TEXT, procedure MyActivate. Viel Gluck! Kato.sv@Xerox.arpa
info-mac@uw-beaver (info-mac) (12/04/84)
From: Lawrence You <Y.YOU@LOTS-B> After getting the control from the resource, the scroll bar's maximum and minimum values may be the same, causing the effective control range to be zero. If, in fact, these values are the same, then the scroll bar will be white. To test/set the scroll bar's maximum and minimum, use something like this: scrollMax := GetCtlMax(myScrollBar); scrollMin := GetCtlMin(myScrollBar); (set the min. to 0, set the max to 99:) SetCtlMax(myScrollBar, 99); SetCtlMin(myScrollBar, 0); Personally, I use "HideControl" and "ShowControl" to make the scroll bar go white when the window is deactivated. --Lawrence -------
info-mac@uw-beaver (12/07/84)
From: Daniel Richard Helman <SPIKE@MIT-MC> I asked my user group your question about using scroll bars without text edit. Their answer is that text edit does nothing with scroll bars, and you have to do everything yourself. Call HiliteControl with 0 to activate the entire control, or with 255 to deactivate it. One person said that all of her controls default to activated, but that you may be having problems because you are getting it out of a resource file. By the way, you may want to attend our meetings at MIT. Call me at 253-6170. Take care, Dan Helman
info-mac@uw-beaver (12/10/84)
From: olson@harvard.ARPA (Eric Olson) It turns out that the scroll bars are deactivated if the CtlMax and CtlMin values are set equal (as they were in my Resource definition). I shall indeed call you; what user's group do you refer to (an MIT specific one?) I'm actually an MIT student (OLSON@XX) but prefer using this machine because it is connected directly to usenet and arpanet and its a VAX BSD 4.2 Unix. Eric.