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.

Treeview Horizontal Scroll

2 posts in Objects Last posting was on 2003-01-21 07:53:02.0Z
Steve Posted on 2002-12-13 17:58:28.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Steve" <stevet@customcall.com>
Subject: Treeview Horizontal Scroll
Date: Fri, 13 Dec 2002 11:58:28 -0600
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: mawi49-4.dsl.tds.net 208.171.49.4
Message-ID: <364_V33yfOtoCHA.303@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:694
Article PK: 713264

Hi,

I have a treeview that uses a horizontal scroll (allows the user to scroll
about a mile and a half) that is not necessary. This only happens when the
treeview checkboxes item is selected. No horizontal scrollbar appears when
checkboxes is not selected. Any way to turn this off?

Any suggestions are greatly appreciated!

Thanks,

Steve

PB Version 7.0.3 Build 10135


Alexander Isaev Posted on 2003-01-21 07:53:02.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Alexander Isaev" <isaev@scil.ru>
Subject: Re: Treeview Horizontal Scroll
Date: Tue, 21 Jan 2003 10:53:02 +0300
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 195.209.149.22
Message-ID: <364_winYrTSwCHA.199@forums.sybase.com>
References: <364_V33yfOtoCHA.303@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:169
Article PK: 712751

Hi Steve!

To show/hide scrollbars you have to use API function ShowScrollBar

declare it as local/global external function:

function boolean ShowScrollBar(long hwnd, int fnBar, boolean fShow) library
"user32.dll"

call it after adding items to treeview(!):

constant int SB_BOTH = 3
constant int SB_HORZ = 0
constant int SB_VERT = 1

tv_1.InsertItemLast(0, "Item", 1)

ShowScrollBar(Handle(tv_1), SB_BOTH, False)

enjoy!

"Steve" <stevet@customcall.com> wrote in message
news:V33yfOtoCHA.303@forums.sybase.com...
> Hi,
>
> I have a treeview that uses a horizontal scroll (allows the user to scroll
> about a mile and a half) that is not necessary. This only happens when
the
> treeview checkboxes item is selected. No horizontal scrollbar appears
when
> checkboxes is not selected. Any way to turn this off?
>
> Any suggestions are greatly appreciated!
>
> Thanks,
>
> Steve
>
> PB Version 7.0.3 Build 10135
>
>