<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
<br/>
Hans-Peter Diettrich <DrDiettrich1@aol.com> hat am 7. Oktober 2011 um 13:33 geschrieben:
<br/>
<br/>
> Mattias Gaertner schrieb:
<br/>
>
<br/>
> > ClientRect Left,Top is 0,0, so Right=ClientWidth and Bottom=ClientHeight.
<br/>
>
<br/>
> What about the determination of the ScrollOffset:
<br/>
>
<br/>
> function TScrollingWinControl.GetClientScrollOffset: TPoint;
<br/>
> begin
<br/>
> if (HorzScrollBar <> nil) and (VertScrollBar <> nil) then
<br/>
> begin
<br/>
> Result.X := HorzScrollBar.Position;
<br/>
> Result.Y := VertScrollBar.Position;
<br/>
> end else
<br/>
> begin
<br/>
> Result.X := 0;
<br/>
> Result.Y := 0;
<br/>
> end;
<br/>
> end;
<br/>
>
<br/>
> Does a scrolling control really *always* have two or zero scrollbars?
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Yes.</p>
<p style="margin: 0px;">During Creation and Destruction they may have less than two. </p>
<p style="margin: 0px;">They have a Visible property. </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
> If so, a check of only one scrollbar would be sufficient,
<br/>
> otherwise every scrollbar must be checked individually!
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body>
</html>