Re: Activating scroll bars

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

Post by Info-Mac » January 10th, 1985, 11:41 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!mhuxj!mhuxn!houxm!vax135!cornell!uw-beaver!info-mac
From: info-mac@uw-beaver (info-mac)
Newsgroups: fa.info-mac
Subject: Re: Activating scroll bars
Message-ID:
Date: Tue, 4-Dec-84 04:03:52 EST
Article-I.D.: uw-beave.2428
Posted: Tue Dec 4 04:03:52 1984
Date-Received: Tue, 4-Dec-84 23:52:08 EST
Sender: daemon@uw-beave
Organization: U of Washington Computer Science
Lines: 19

From: Lawrence You
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
-------
Locked