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.

Moving a Picture.

2 posts in Objects Last posting was on 2005-10-06 19:28:04.0Z
Alex Castillo Posted on 2005-10-06 14:39:58.0Z
From: "Alex Castillo" <klmAlexCast_SlwMx@HotMail.Com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Moving a Picture.
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 12.173.207.194
X-Original-NNTP-Posting-Host: 12.173.207.194
Message-ID: <4345373e@forums-1-dub>
Date: 6 Oct 2005 07:39:58 -0700
X-Trace: forums-1-dub 1128609598 12.173.207.194 (6 Oct 2005 07:39:58 -0700)
X-Original-Trace: 6 Oct 2005 07:39:58 -0700, 12.173.207.194
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8660
Article PK: 735877

Hi..

I have a window, on that window I have a datawindow, and over that
datawindow I have a picture control I want the user to be able to move (by
draging it) and reposition (by droping it) somewhere over the same
datawindow (but not outside the datawindow).

How can I do that?

What I don't know how to do, is

(1) how to get the new .X and .Y values for the Picture control, after the
user finish the drag and drop operation.
(2) how to limit the user so (s)he can not drop the Picture control outside
the data window.

Thank you..!


Michael Chernin Posted on 2005-10-06 19:28:04.0Z
From: "Michael Chernin" <please_remove_that_mchernin@verax.ca>
Newsgroups: sybase.public.powerbuilder.objects
References: <4345373e@forums-1-dub>
Subject: Re: Moving a Picture.
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: mail.dhltd.com
X-Original-NNTP-Posting-Host: mail.dhltd.com
Message-ID: <43457ac4$1@forums-1-dub>
Date: 6 Oct 2005 12:28:04 -0700
X-Trace: forums-1-dub 1128626884 204.191.252.130 (6 Oct 2005 12:28:04 -0700)
X-Original-Trace: 6 Oct 2005 12:28:04 -0700, mail.dhltd.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8661
Article PK: 735876

It's not very clear what is the purpose of that, but from what I can
understand looks like you may consider putting the picture INSIDE datawindow
as a column and make it moveable and/or event resizable. User naturally will
not be able to take the pic out of dw boundaries - you will not have to code
anything.

"Alex Castillo" <klmAlexCast_SlwMx@HotMail.Com> wrote in message
news:4345373e@forums-1-dub...
> Hi..
>
> I have a window, on that window I have a datawindow, and over that
> datawindow I have a picture control I want the user to be able to move (by
> draging it) and reposition (by droping it) somewhere over the same
> datawindow (but not outside the datawindow).
>
> How can I do that?
>
> What I don't know how to do, is
>
> (1) how to get the new .X and .Y values for the Picture control, after the
> user finish the drag and drop operation.
> (2) how to limit the user so (s)he can not drop the Picture control
> outside
> the data window.
>
> Thank you..!
>
>