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.

problem with HTrackBar object Control

3 posts in Objects Last posting was on 2003-05-20 06:55:18.0Z
Alessandro Posted on 2003-05-14 13:21:53.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Alessandro" <A.Portale@ads.it>
Subject: problem with HTrackBar object Control
Date: Wed, 14 May 2003 18:51:53 +0530
Lines: 21
Organization: NIIT
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: 203.192.202.223
Message-ID: <364_OgeIvyhGDHA.316@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7393
Article PK: 734678

Hello All,

I am facing one problem with HTrackBar object Control.
I am trying to make one Trackbar for changing brightness of image,

what I need is when user move the scroll bar toward's any side, when user
stop the scrolling that time i will fire my script.

here in move it is fireing every time , but i want that if use stop
scrolling then that is his final value that time what event will fire i
don't know.

so please tell me what event will fire at that time.

for reference just see MS Photo Editor , in that at menu go to balance ,
here you can change brightness of image, same like i want to make.


Do replay.


Philip_Salgannik Posted on 2003-05-14 16:31:30.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Wed, 14 May 2003 12:31:30 -0400
Subject: Re: problem with HTrackBar object Control
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_BD5E69545800A5C1005AC64985256D26.00519E0785256D26@webforums>
References: <364_OgeIvyhGDHA.316@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7394
Article PK: 734680

Alessandro, when you are dragging the slider, the trackbar control is
capturing the mouse. When you are done dragging it, the control is sending
NM_RELEASEDCAPTURE to it's parent window.

So you'll need to map pbm_parentnotify on the window hosting the control
and do some non-trivial stuff, see this page for some info:

http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/trackbar/notifications/nm_releasedcapture_trackbar.asp


Yang Posted on 2003-05-20 06:55:18.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Yang" <song@mail.tpe.wownet.net>
Subject: Re: problem with HTrackBar object Control
Date: Tue, 20 May 2003 12:25:18 +0530
Lines: 21
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: 203.192.210.25
Message-ID: <364_uGBsv8pHDHA.331@forums-2-dub>
References: <364_OgeIvyhGDHA.316@forums-1-dub> <364_BD5E69545800A5C1005AC64985256D26.00519E0785256D26@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7404
Article PK: 734695

Can you tell us , with example , how we can do this ?
in PB.

Please do replay!

<Philip_Salgannik> wrote in message
news:BD5E69545800A5C1005AC64985256D26.00519E0785256D26@webforums...
> Alessandro, when you are dragging the slider, the trackbar control is
> capturing the mouse. When you are done dragging it, the control is sending
> NM_RELEASEDCAPTURE to it's parent window.
>
> So you'll need to map pbm_parentnotify on the window hosting the control
> and do some non-trivial stuff, see this page for some info:
>
>

http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/trackbar/n
otifications/nm_releasedcapture_trackbar.asp