Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Vertical Scroll Bar

2 posts in Objects Last posting was on 2005-10-06 19:53:16.0Z
Alex Castillo Posted on 2005-10-06 19:37:12.0Z
From: "Alex Castillo" <klmAlexCast_SlwMx@HotMail.Com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Vertical Scroll Bar
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 12.173.207.194
Message-ID: <43457c4c$1@forums-2-dub>
X-Original-Trace: 6 Oct 2005 12:34:36 -0700, 12.173.207.194
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Oct 2005 12:34:37 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Oct 2005 12:37:12 -0700
X-Trace: forums-1-dub 1128627432 10.22.108.75 (6 Oct 2005 12:37:12 -0700)
X-Original-Trace: 6 Oct 2005 12:37:12 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!forums-2-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8662
Article PK: 735878

Hello.

In a datawindow control, how can I know, at runtime, if a vertical scroll
bar is actually displayed or not?

I need to know this in order to adjust position and with of some other
controls on my form.

Thank you..!


Brad Wery Posted on 2005-10-06 19:53:16.0Z
From: Brad Wery <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Vertical Scroll Bar
References: <43457c4c$1@forums-2-dub>
In-Reply-To: <43457c4c$1@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ugg10.unitedgrain.ca
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <434580ac$1@forums-1-dub>
Date: 6 Oct 2005 12:53:16 -0700
X-Trace: forums-1-dub 1128628396 165.23.247.49 (6 Oct 2005 12:53:16 -0700)
X-Original-Trace: 6 Oct 2005 12:53:16 -0700, ugg10.unitedgrain.ca
Lines: 24
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8663
Article PK: 735879

Put this code in the datawindow resize event:

IF Integer(THIS.Describe("DataWindow.FirstRowOnPage")) <> 1 OR &
Integer(THIS.Describe("DataWindow.lastRowOnPage")) <> THIS.RowCount() THEN
//Vertical Scroll Bar is most likely visible
ELSE
//Vertical Scroll Bar is NOT visible
END IF


Brad

Alex Castillo wrote:
> Hello.
>
> In a datawindow control, how can I know, at runtime, if a vertical scroll
> bar is actually displayed or not?
>
> I need to know this in order to adjust position and with of some other
> controls on my form.
>
> Thank you..!
>
>