Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 UW 5/3/83; site uw-beaver Path: utzoo!watmath!clyde!burl!ulysses!cbosgd!cbdkc1!desoto!packard!hoxna!houxm!vax135!cornell!uw-beaver!info-mac From: info-mac@uw-beaver (info-mac) Newsgroups: fa.info-mac Subject: deactivating scroll bars Message-ID: <2408@uw-beaver> Date: Mon, 3-Dec-84 00:33:28 EST Article-I.D.: uw-beave.2408 Posted: Mon Dec 3 00:33:28 1984 Date-Received: Tue, 4-Dec-84 07:56:26 EST Sender: daemon@uw-beave Organization: U of Washington Computer Science Lines: 25 From: David.Anderson@CMU-CS-K.ARPA HideControl actually makes the control disappear from the screen, and that probably isn't what you want to do in order to make a control appear inactive. To get a scroll bar to look inactive (thumb gone, scroll bar area white, etc) use HiliteControl with a value of 255. I want my scroll bars to be inactive when (1) the window isn't active, or (2) when there isn't enough data to scroll (everything is currently visable). My code looks like this: activateEvent(how) int how; { register i; if (how & activeFlag) { active = TRUE; HiliteControl(periodScroll, 0); for (i=0; i<8; i++) HiliteControl(maskButton[i], 0); } else { active = FALSE; HiliteControl(periodScroll, 255); for (i=0; i<8; i++) HiliteControl(maskButton[i], 255); } }