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.

Is it possible to know the visibility status of vertical scroll bar of a Treeview

2 posts in Objects Last posting was on 2005-06-17 21:16:43.0Z
ANAND Posted on 2005-06-17 06:21:18.0Z
Sender: 33ca.42b0fe98.1804289383@sybase.com
From: Anand
Newsgroups: sybase.public.powerbuilder.objects
Subject: Is it possible to know the visibility status of vertical scroll bar of a Treeview
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42b26bda.4dd1.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 16 Jun 2005 23:21:14 -0700, 10.22.241.42
Lines: 18
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Jun 2005 23:21:15 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Jun 2005 23:21:18 -0700
X-Trace: forums-1-dub 1118989278 10.22.108.75 (16 Jun 2005 23:21:18 -0700)
X-Original-Trace: 16 Jun 2005 23:21:18 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8475
Article PK: 735698

Hi All
I am posting this second time,pls help

> > Is it possible to know thru code whether the vertical
> > scrollbar for a
> > Treeview is visible/available or not.

I am using PB6.5 with XP.When I use mouse wheel when there
is
no vertical scrollbar all the items in the tree view
disappears,bcos
Pb 6.5 is not supported by XP.If I know whether the vertical
scroll
bar is avilable or not , based on that I can use SetRedraw
function
to avoid the disappearence.I already received a solution
from the
Newsgroup that I may use SetRedraw function.So if I know the
visibility status , it would be easy for me,Please help


Brad Wery Posted on 2005-06-17 21:16:43.0Z
From: Brad Wery <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Is it possible to know the visibility status of vertical scroll bar of a Treeview
References: <42b26bda.4dd1.1681692777@sybase.com>
In-Reply-To: <42b26bda.4dd1.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <42b33db6$1@forums-2-dub>
X-Original-Trace: 17 Jun 2005 14:16:38 -0700, ugg10.unitedgrain.ca
Lines: 30
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Jun 2005 14:16:41 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 17 Jun 2005 14:16:43 -0700
X-Trace: forums-1-dub 1119043003 10.22.108.75 (17 Jun 2005 14:16:43 -0700)
X-Original-Trace: 17 Jun 2005 14:16:43 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8476
Article PK: 735699

I don't know of a sure way to do it. Maybe the GetScrollInfo API
function will help. See if you can get it to work.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/getscrollinfo.asp

Good Luck,

Brad

Anand wrote:
> Hi All
> I am posting this second time,pls help
>
>>>Is it possible to know thru code whether the vertical
>>>scrollbar for a
>>>Treeview is visible/available or not.
>
>
> I am using PB6.5 with XP.When I use mouse wheel when there
> is
> no vertical scrollbar all the items in the tree view
> disappears,bcos
> Pb 6.5 is not supported by XP.If I know whether the vertical
> scroll
> bar is avilable or not , based on that I can use SetRedraw
> function
> to avoid the disappearence.I already received a solution
> from the
> Newsgroup that I may use SetRedraw function.So if I know the
> visibility status , it would be easy for me,Please help