deactivating scroll bars

Info-Mac discussion from 1984 - 2002.
Locked
User avatar
Info-Mac
Administrator
Posts:13716
Joined:December 21st, 1988, 11:00 am
deactivating scroll bars

Post by Info-Mac » January 10th, 1985, 11:24 pm

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:
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: [email protected]
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, 0);
}
else {
active = FALSE;
HiliteControl(periodScroll, 255);
for (i=0; i<8; i++) HiliteControl(maskButton, 255);
}
}
Locked