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.

Clicking checkbox in treeview

2 posts in Objects Last posting was on 2002-08-02 13:37:21.0Z
Eric Posted on 2002-08-02 03:19:57.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Eric
Date: Thu, 1 Aug 2002 23:19:57 -0400
Subject: Clicking checkbox in treeview
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_D54B29EEA5AC5D9E00124E6585256C09.00124E8085256C09@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:1059
Article PK: 713622

Dear all,

I have created a treeview with check boxes. Is there an event provided by
PowerBuilder 8 such that it will be triggered when the user clicks the
check box?

Actually, I would like to write some update codes to database in such an
event. I would like to see that only such event will be triggered when the
user clicks the check box instead of the Clicked Event.

Thanks.
Eric


Roy Kiesler [TeamSybase] Posted on 2002-08-02 13:37:21.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Clicking checkbox in treeview
Date: Fri, 2 Aug 2002 09:37:21 -0400
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: host131.percussion.com 208.252.62.131
Message-ID: <364_jms66tiOCHA.196@forums.sybase.com>
References: <364_D54B29EEA5AC5D9E00124E6585256C09.00124E8085256C09@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1058
Article PK: 713619

You need to trap the TVM_HITTEST message on the treeview control -- have a
look at http://www.teamsybase.com/roy.kiesler/downloads/optiontree.zip to
see how it's done.

The demo app is written in 6.x, when checkboxes were not yet available on PB
treeviews, but the code still work. Note that the demo app is PFC-based,
however, it is fairly simple to decouple the relevant API calls to native
PB.

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
Sybase Developer Network -- http://sdn.sybase.com

<Eric> wrote in message
news:D54B29EEA5AC5D9E00124E6585256C09.00124E8085256C09@webforums...
> Dear all,
>
> I have created a treeview with check boxes. Is there an event provided by
> PowerBuilder 8 such that it will be triggered when the user clicks the
> check box?
>
> Actually, I would like to write some update codes to database in such an
> event. I would like to see that only such event will be triggered when the
> user clicks the check box instead of the Clicked Event.
>
> Thanks.
> Eric