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.

Moveable UserObject in window

4 posts in Objects Last posting was on 2003-04-11 20:12:45.0Z
Jason Lipman Posted on 2003-04-11 14:43:04.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Jason Lipman" <Jason.Lipman@state.sd.us>
Subject: Moveable UserObject in window
Date: Fri, 11 Apr 2003 09:43:04 -0500
Lines: 8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 164.154.48.177
Message-ID: <364_OAfvIkDADHA.221@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:7318
Article PK: 734608

PB 8.0.3

Is there a way to make a visual UserObject moveable in a window... similar
to how a datawindow with a Titlebar is moveable?

Jason


Philip_Salgannik Posted on 2003-04-11 17:40:04.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Fri, 11 Apr 2003 13:40:04 -0400
Subject: Re: Moveable UserObject in window
Lines: 2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_B6CAF301D98E72A500610D5A85256D05.00576B6E85256D05@webforums>
References: <364_OAfvIkDADHA.221@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:7320
Article PK: 734611

How would the user know that the object is movable (without the caption
bar)? Are you going to provide a visual indicator?


Jason Lipman Posted on 2003-04-11 18:01:55.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Jason Lipman" <Jason.Lipman@state.sd.us>
Subject: Re: Moveable UserObject in window
Date: Fri, 11 Apr 2003 13:01:55 -0500
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 164.154.48.177
Message-ID: <364_#oCjiUFADHA.232@forums-2-dub>
References: <364_OAfvIkDADHA.221@forums-1-dub> <364_B6CAF301D98E72A500610D5A85256D05.00576B6E85256D05@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:7321
Article PK: 734612

I mimicked a Blue "Active Bar" in the UO using a static text, and it has
Title data in it.

<Philip_Salgannik> wrote in message
news:B6CAF301D98E72A500610D5A85256D05.00576B6E85256D05@webforums...
> How would the user know that the object is movable (without the caption
> bar)? Are you going to provide a visual indicator?


Philip_Salgannik Posted on 2003-04-11 20:12:45.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Fri, 11 Apr 2003 16:12:45 -0400
Subject: Re: Moveable UserObject in window
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_95F7B3C77F395894006F07E785256D05.00675A6085256D05@webforums>
References: <364_OAfvIkDADHA.221@forums-1-dub> <364_B6CAF301D98E72A500610D5A85256D05.00576B6E85256D05@webforums> <364_#oCjiUFADHA.232@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7322
Article PK: 734610

Well, this will get kinda involved, but essentially you'll to map
pbm_lbuttondown event on the object that represents your "caption bar"
(static text I guess), in it make some coordinate transformations on the
xpos, ypos arguments of the event and then post WM_NCLBUTTONDOWN button
message to the user object that hosts this "caption bar", like so:

Post( Handle( parentuserobject ), WM_NCLBUTTONDOWN, HTCAPTION, Long(
resultofcoordinatetrnasform_xpos, resultofcoordinatetrnasform_ypos ) )

CONSTANT uint HTCAPTION = 2
CONSTANT uint WM_NCLBUTTONDOWN = 161