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.
Subject: Moving a Picture.
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Date: 6 Oct 2005 07:39:58 -0700
X-Trace: forums-1-dub 1128609598 18.104.22.168 (6 Oct 2005 07:39:58 -0700)
X-Original-Trace: 6 Oct 2005 07:39:58 -0700, 22.214.171.124
Xref: forums-1-dub sybase.public.powerbuilder.objects:8660
Article PK: 735877
Subject: Re: Moving a Picture.
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Date: 6 Oct 2005 12:28:04 -0700
X-Trace: forums-1-dub 1128626884 126.96.36.199 (6 Oct 2005 12:28:04 -0700)
X-Original-Trace: 6 Oct 2005 12:28:04 -0700, mail.dhltd.com
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