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.

How to move different objects at the same time??

10 posts in Objects Last posting was on 2004-04-08 20:08:47.0Z
Mano Bill Posted on 2004-03-31 13:18:42.0Z
From: "Mano Bill" <manobill@peganing.com.br>
Newsgroups: sybase.public.powerbuilder.objects
Subject: How to move different objects at the same time??
Lines: 13
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
X-Original-NNTP-Posting-Host: 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <406ac52e@forums-2-dub>
X-Original-Trace: 31 Mar 2004 05:18:38 -0800, 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2004 05:18:40 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2004 05:18:42 -0800
X-Trace: forums-1-dub 1080739122 10.22.108.75 (31 Mar 2004 05:18:42 -0800)
X-Original-Trace: 31 Mar 2004 05:18:42 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7853
Article PK: 735125

Hi all,

I have a problem, and I really don't know how to solve it. I have two
"floating" dw's under a window. I'd like to show them always aligned on the
screen, but I don't know how to move the second dw when I'm moving the first
one. Anyone have an idea about it?

TIA,
Mano Bill

I'm using PB9 - Build #7066


John Raghanti Posted on 2004-03-31 21:39:24.0Z
From: "John Raghanti" <johnr@microsys-computing.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <406ac52e@forums-2-dub>
Subject: Re: How to move different objects at the same time??
Lines: 28
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
X-Original-NNTP-Posting-Host: mail.microsys-computing.com
Message-ID: <406b3a86$1@forums-2-dub>
X-Original-Trace: 31 Mar 2004 13:39:18 -0800, mail.microsys-computing.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2004 13:39:21 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2004 13:39:24 -0800
X-Trace: forums-1-dub 1080769164 10.22.108.75 (31 Mar 2004 13:39:24 -0800)
X-Original-Trace: 31 Mar 2004 13:39:24 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7856
Article PK: 735133

Will this work:

dw_2.SetReDraw(False)
... code to move dw_1

dw_2.X = dw_1.X
dw_2.SetReDraw(True)

"Mano Bill" <manobill@peganing.com.br> wrote in message
news:406ac52e@forums-2-dub...
> Hi all,
>
> I have a problem, and I really don't know how to solve it. I have two
> "floating" dw's under a window. I'd like to show them always aligned on
the
> screen, but I don't know how to move the second dw when I'm moving the
first
> one. Anyone have an idea about it?
>
> TIA,
> Mano Bill
>
> I'm using PB9 - Build #7066
>
>


Mano Bill Posted on 2004-04-01 16:59:41.0Z
From: "Mano Bill" <manobill@peganing.com.br>
Newsgroups: sybase.public.powerbuilder.objects
References: <406ac52e@forums-2-dub> <406b3a86$1@forums-2-dub>
Subject: Re: How to move different objects at the same time??
Lines: 40
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: 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <406c4a7d@forums-1-dub>
Date: 1 Apr 2004 08:59:41 -0800
X-Trace: forums-1-dub 1080838781 200.203.50.236 (1 Apr 2004 08:59:41 -0800)
X-Original-Trace: 1 Apr 2004 08:59:41 -0800, 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7857
Article PK: 735132

Thanks a lot John!! But actually I was searching for a solution that can
allow me to do it at runtime, when I'm moving the object with the mouse (so
both objects can be moved together)... Anyone knows if exists some event
related with moving objects in the screen??

Thanks,
Mano Bill

"John Raghanti" <johnr@microsys-computing.com> wrote in message
news:406b3a86$1@forums-2-dub...
> Will this work:
>
> dw_2.SetReDraw(False)
> ... code to move dw_1
>
> dw_2.X = dw_1.X
> dw_2.SetReDraw(True)
>
>
> "Mano Bill" <manobill@peganing.com.br> wrote in message
> news:406ac52e@forums-2-dub...
> > Hi all,
> >
> > I have a problem, and I really don't know how to solve it. I have two
> > "floating" dw's under a window. I'd like to show them always aligned on
> the
> > screen, but I don't know how to move the second dw when I'm moving the
> first
> > one. Anyone have an idea about it?
> >
> > TIA,
> > Mano Bill
> >
> > I'm using PB9 - Build #7066
> >
> >
>
>


"Tim Wallace" <reply Posted on 2004-04-01 17:24:24.0Z
From: "Tim Wallace" <reply@this_group.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <406ac52e@forums-2-dub> <406b3a86$1@forums-2-dub> <406c4a7d@forums-1-dub>
Subject: Re: How to move different objects at the same time??
Lines: 51
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: pcp01730859pcs.lpaxtn01.pa.comcast.net
X-Original-NNTP-Posting-Host: pcp01730859pcs.lpaxtn01.pa.comcast.net
Message-ID: <406c5048$1@forums-1-dub>
Date: 1 Apr 2004 09:24:24 -0800
X-Trace: forums-1-dub 1080840264 68.83.110.23 (1 Apr 2004 09:24:24 -0800)
X-Original-Trace: 1 Apr 2004 09:24:24 -0800, pcp01730859pcs.lpaxtn01.pa.comcast.net
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7858
Article PK: 735129

I haven't checked this out, but can you just issue a dw_2.X = dw_1.X in an
event mapped to pbm_mousemove i dw_1?

Tim Wallace

"Mano Bill" <manobill@peganing.com.br> wrote in message
news:406c4a7d@forums-1-dub...
> Thanks a lot John!! But actually I was searching for a solution that can
> allow me to do it at runtime, when I'm moving the object with the mouse
(so
> both objects can be moved together)... Anyone knows if exists some event
> related with moving objects in the screen??
>
> Thanks,
> Mano Bill
>
> "John Raghanti" <johnr@microsys-computing.com> wrote in message
> news:406b3a86$1@forums-2-dub...
> > Will this work:
> >
> > dw_2.SetReDraw(False)
> > ... code to move dw_1
> >
> > dw_2.X = dw_1.X
> > dw_2.SetReDraw(True)
> >
> >
> > "Mano Bill" <manobill@peganing.com.br> wrote in message
> > news:406ac52e@forums-2-dub...
> > > Hi all,
> > >
> > > I have a problem, and I really don't know how to solve it. I have two
> > > "floating" dw's under a window. I'd like to show them always aligned
on
> > the
> > > screen, but I don't know how to move the second dw when I'm moving the
> > first
> > > one. Anyone have an idea about it?
> > >
> > > TIA,
> > > Mano Bill
> > >
> > > I'm using PB9 - Build #7066
> > >
> > >
> >
> >
>
>


Mano Bill Posted on 2004-04-01 18:06:42.0Z
From: "Mano Bill" <manobill@peganing.com.br>
Newsgroups: sybase.public.powerbuilder.objects
References: <406ac52e@forums-2-dub> <406b3a86$1@forums-2-dub> <406c4a7d@forums-1-dub> <406c5048$1@forums-1-dub>
Subject: Re: How to move different objects at the same time??
Lines: 64
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
X-Original-NNTP-Posting-Host: 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <406c5a2f@forums-2-dub>
X-Original-Trace: 1 Apr 2004 10:06:39 -0800, 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Apr 2004 10:06:41 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Apr 2004 10:06:42 -0800
X-Trace: forums-1-dub 1080842802 10.22.108.75 (1 Apr 2004 10:06:42 -0800)
X-Original-Trace: 1 Apr 2004 10:06:42 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7859
Article PK: 735131

Unfortunately no Tim... If you implement pbm_mousemove or pbm_dwnmousemove
in a dw, system will trigger it only when the mouse buttons are not
pressed... When pressed, system disregard this event... :-(

Mano Bill

"Tim Wallace" <reply@this_group.com> wrote in message
news:406c5048$1@forums-1-dub...
> I haven't checked this out, but can you just issue a dw_2.X = dw_1.X in an
> event mapped to pbm_mousemove i dw_1?
>
> Tim Wallace
>
> "Mano Bill" <manobill@peganing.com.br> wrote in message
> news:406c4a7d@forums-1-dub...
> > Thanks a lot John!! But actually I was searching for a solution that can
> > allow me to do it at runtime, when I'm moving the object with the mouse
> (so
> > both objects can be moved together)... Anyone knows if exists some event
> > related with moving objects in the screen??
> >
> > Thanks,
> > Mano Bill
> >
> > "John Raghanti" <johnr@microsys-computing.com> wrote in message
> > news:406b3a86$1@forums-2-dub...
> > > Will this work:
> > >
> > > dw_2.SetReDraw(False)
> > > ... code to move dw_1
> > >
> > > dw_2.X = dw_1.X
> > > dw_2.SetReDraw(True)
> > >
> > >
> > > "Mano Bill" <manobill@peganing.com.br> wrote in message
> > > news:406ac52e@forums-2-dub...
> > > > Hi all,
> > > >
> > > > I have a problem, and I really don't know how to solve it. I have
two
> > > > "floating" dw's under a window. I'd like to show them always aligned
> on
> > > the
> > > > screen, but I don't know how to move the second dw when I'm moving
the
> > > first
> > > > one. Anyone have an idea about it?
> > > >
> > > > TIA,
> > > > Mano Bill
> > > >
> > > > I'm using PB9 - Build #7066
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Philip Salgannik Posted on 2004-04-01 19:04:50.0Z
Sender: 1d83.406c6790.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to move different objects at the same time??
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <406c67ce.1d8d.846930886@sybase.com>
References: <406ac52e@forums-2-dub> <406b3a86$1@forums-2-dub> <406c4a7d@forums-1-dub> <406c5048$1@forums-1-dub><406c5a2f@forums-2-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 1 Apr 2004 11:04:46 -0800, 10.22.241.42
Lines: 68
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Apr 2004 11:04:47 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Apr 2004 11:04:50 -0800
X-Trace: forums-1-dub 1080846290 10.22.108.75 (1 Apr 2004 11:04:50 -0800)
X-Original-Trace: 1 Apr 2004 11:04:50 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7860
Article PK: 735134

Just map pbm_move on the anchor dw and set the coordinates
of the subordinate one in it.

> Unfortunately no Tim... If you implement pbm_mousemove or
> pbm_dwnmousemove in a dw, system will trigger it only when
> the mouse buttons are not pressed... When pressed, system
> disregard this event... :-(
>
> Mano Bill
>
>
> "Tim Wallace" <reply@this_group.com> wrote in message
> news:406c5048$1@forums-1-dub...
> > I haven't checked this out, but can you just issue a
> > dw_2.X = dw_1.X in an event mapped to pbm_mousemove i
> dw_1? >
> > Tim Wallace
> >
> > "Mano Bill" <manobill@peganing.com.br> wrote in message
> > news:406c4a7d@forums-1-dub...
> > > Thanks a lot John!! But actually I was searching for a
> > > solution that can allow me to do it at runtime, when
> > I'm moving the object with the mouse (so
> > > both objects can be moved together)... Anyone knows if
> > > exists some event related with moving objects in the
> > screen?? >
> > > Thanks,
> > > Mano Bill
> > >
> > > "John Raghanti" <johnr@microsys-computing.com> wrote
> > > in message news:406b3a86$1@forums-2-dub...
> > > > Will this work:
> > > >
> > > > dw_2.SetReDraw(False)
> > > > ... code to move dw_1
> > > >
> > > > dw_2.X = dw_1.X
> > > > dw_2.SetReDraw(True)
> > > >
> > > >
> > > > "Mano Bill" <manobill@peganing.com.br> wrote in
> > > > message news:406ac52e@forums-2-dub...
> > > > > Hi all,
> > > > >
> > > > > I have a problem, and I really don't know how to
> solve it. I have two
> > > > > "floating" dw's under a window. I'd like to show
> > them always aligned on
> > > > the
> > > > > screen, but I don't know how to move the second dw
> when I'm moving the
> > > > first
> > > > > one. Anyone have an idea about it?
> > > > >
> > > > > TIA,
> > > > > Mano Bill
> > > > >
> > > > > I'm using PB9 - Build #7066
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Mano Bill Posted on 2004-04-02 14:23:51.0Z
From: "Mano Bill" <manobill@peganing.com.br>
Newsgroups: sybase.public.powerbuilder.objects
References: <406ac52e@forums-2-dub> <406b3a86$1@forums-2-dub> <406c4a7d@forums-1-dub> <406c5048$1@forums-1-dub><406c5a2f@forums-2-dub> <406c67ce.1d8d.846930886@sybase.com>
Subject: Re: How to move different objects at the same time??
Lines: 74
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
X-Original-NNTP-Posting-Host: 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <406d7773$1@forums-2-dub>
X-Original-Trace: 2 Apr 2004 06:23:47 -0800, 200-203-050-236.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Apr 2004 06:23:48 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Apr 2004 06:23:51 -0800
X-Trace: forums-1-dub 1080915831 10.22.108.75 (2 Apr 2004 06:23:51 -0800)
X-Original-Trace: 2 Apr 2004 06:23:51 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7861
Article PK: 735130

Yes, It works!! Thanks a lot Phillip!!!

<Philip Salgannik> wrote in message
news:406c67ce.1d8d.846930886@sybase.com...
> Just map pbm_move on the anchor dw and set the coordinates
> of the subordinate one in it.
>
> > Unfortunately no Tim... If you implement pbm_mousemove or
> > pbm_dwnmousemove in a dw, system will trigger it only when
> > the mouse buttons are not pressed... When pressed, system
> > disregard this event... :-(
> >
> > Mano Bill
> >
> >
> > "Tim Wallace" <reply@this_group.com> wrote in message
> > news:406c5048$1@forums-1-dub...
> > > I haven't checked this out, but can you just issue a
> > > dw_2.X = dw_1.X in an event mapped to pbm_mousemove i
> > dw_1? >
> > > Tim Wallace
> > >
> > > "Mano Bill" <manobill@peganing.com.br> wrote in message
> > > news:406c4a7d@forums-1-dub...
> > > > Thanks a lot John!! But actually I was searching for a
> > > > solution that can allow me to do it at runtime, when
> > > I'm moving the object with the mouse (so
> > > > both objects can be moved together)... Anyone knows if
> > > > exists some event related with moving objects in the
> > > screen?? >
> > > > Thanks,
> > > > Mano Bill
> > > >
> > > > "John Raghanti" <johnr@microsys-computing.com> wrote
> > > > in message news:406b3a86$1@forums-2-dub...
> > > > > Will this work:
> > > > >
> > > > > dw_2.SetReDraw(False)
> > > > > ... code to move dw_1
> > > > >
> > > > > dw_2.X = dw_1.X
> > > > > dw_2.SetReDraw(True)
> > > > >
> > > > >
> > > > > "Mano Bill" <manobill@peganing.com.br> wrote in
> > > > > message news:406ac52e@forums-2-dub...
> > > > > > Hi all,
> > > > > >
> > > > > > I have a problem, and I really don't know how to
> > solve it. I have two
> > > > > > "floating" dw's under a window. I'd like to show
> > > them always aligned on
> > > > > the
> > > > > > screen, but I don't know how to move the second dw
> > when I'm moving the
> > > > > first
> > > > > > one. Anyone have an idea about it?
> > > > > >
> > > > > > TIA,
> > > > > > Mano Bill
> > > > > >
> > > > > > I'm using PB9 - Build #7066
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >


Steve Katz [TeamSybase] Posted on 2004-04-02 19:10:34.0Z
Sender: 2c84.406db9fd.1804289383@sybase.com
From: Steve Katz [TeamSybase]
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to move different objects at the same time??
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <406dbaa6.2c92.846930886@sybase.com>
References: <406ac52e@forums-2-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 2 Apr 2004 11:10:30 -0800, 10.22.241.42
Lines: 63
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Apr 2004 11:10:31 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Apr 2004 11:10:34 -0800
X-Trace: forums-1-dub 1080933034 10.22.108.75 (2 Apr 2004 11:10:34 -0800)
X-Original-Trace: 2 Apr 2004 11:10:34 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7862
Article PK: 735135

If you want live syncronized tracking you can do the
following in the other event of the "source" dw (there is
some code cleanup you can do also, but it is easier to show
if all (well, most of) the code is in one place.

steve
[TeamSybase]


integer xPosDelta
integer yPosDelta
integer xPos
integer yPos
Point lPoint
Point lPointParent
Rect lRect
long hWnd

if Message.Number = 534 then
RtlMoveMemory (lRect, lParam, 16)

// the parent stuff could be done in the parent move
event...
lPointParent.x = Parent.x
lPointParent.y = Parent.y

ClientToScreen (handle(Parent), lPointParent)

lPoint.x = lRect.left - lPointParent.x
lPoint.y = lRect.top - lPointParent.y

xPos = Integer(lPoint.x)
yPos = Integer(lPoint.y)
xPos = PixelsToUnits (xPos, XPixelsToUnits!)
yPos = PixelsToUnits (yPos, YPixelsToUnits!)

xPosDelta = xPos - xPos1
yPosDelta = yPos - yPos1

xPos1 = xPos
yPos1 = yPos

xPos2 += xPosDelta
yPos2 += yPosDelta

dw_float2.Move (xPos2, yPos2)
return 0
end if

> Hi all,
>
> I have a problem, and I really don't know how to solve it.
> I have two "floating" dw's under a window. I'd like to
> show them always aligned on the screen, but I don't know
> how to move the second dw when I'm moving the first one.
> Anyone have an idea about it?
>
> TIA,
> Mano Bill
>
> I'm using PB9 - Build #7066
>
>


Philip Salgannik Posted on 2004-04-03 00:58:56.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <406ac52e@forums-2-dub> <406dbaa6.2c92.846930886@sybase.com>
Subject: Re: How to move different objects at the same time??
Lines: 73
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.1106
X-Original-NNTP-Posting-Host: h005018067b6f.ne.client2.attbi.com
Message-ID: <406e0c4d$1@forums-2-dub>
X-Original-Trace: 2 Apr 2004 16:58:53 -0800, h005018067b6f.ne.client2.attbi.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Apr 2004 16:58:55 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Apr 2004 16:58:56 -0800
X-Trace: forums-1-dub 1080953936 10.22.108.75 (2 Apr 2004 16:58:56 -0800)
X-Original-Trace: 2 Apr 2004 16:58:56 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7863
Article PK: 735136

Why so complicated?


pbm_thisusuallydoesnothelp:-))
Philip Salgannik

<Steve Katz [TeamSybase]> wrote in message
news:406dbaa6.2c92.846930886@sybase.com...
> If you want live syncronized tracking you can do the
> following in the other event of the "source" dw (there is
> some code cleanup you can do also, but it is easier to show
> if all (well, most of) the code is in one place.
>
> steve
> [TeamSybase]
>
>
> integer xPosDelta
> integer yPosDelta
> integer xPos
> integer yPos
> Point lPoint
> Point lPointParent
> Rect lRect
> long hWnd
>
> if Message.Number = 534 then
> RtlMoveMemory (lRect, lParam, 16)
>
> // the parent stuff could be done in the parent move
> event...
> lPointParent.x = Parent.x
> lPointParent.y = Parent.y
>
> ClientToScreen (handle(Parent), lPointParent)
>
> lPoint.x = lRect.left - lPointParent.x
> lPoint.y = lRect.top - lPointParent.y
>
> xPos = Integer(lPoint.x)
> yPos = Integer(lPoint.y)
> xPos = PixelsToUnits (xPos, XPixelsToUnits!)
> yPos = PixelsToUnits (yPos, YPixelsToUnits!)
>
> xPosDelta = xPos - xPos1
> yPosDelta = yPos - yPos1
>
> xPos1 = xPos
> yPos1 = yPos
>
> xPos2 += xPosDelta
> yPos2 += yPosDelta
>
> dw_float2.Move (xPos2, yPos2)
> return 0
> end if
>
> > Hi all,
> >
> > I have a problem, and I really don't know how to solve it.
> > I have two "floating" dw's under a window. I'd like to
> > show them always aligned on the screen, but I don't know
> > how to move the second dw when I'm moving the first one.
> > Anyone have an idea about it?
> >
> > TIA,
> > Mano Bill
> >
> > I'm using PB9 - Build #7066
> >
> >


Steve Katz [TeamSybase] Posted on 2004-04-08 20:08:47.0Z
Sender: 4302.4075a2ec.1804289383@sybase.com
From: Steve Katz [TeamSybase]
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to move different objects at the same time??
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <4075a33f.4304.846930886@sybase.com>
References: <406ac52e@forums-2-dub> <406dbaa6.2c92.846930886@sybase.com><406e0c4d$1@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 8 Apr 2004 12:08:47 -0800
X-Trace: forums-1-dub 1081451327 10.22.241.41 (8 Apr 2004 12:08:47 -0800)
X-Original-Trace: 8 Apr 2004 12:08:47 -0800, 10.22.241.41
Lines: 82
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7870
Article PK: 735141

Cuz that's what it took to get it to work just right.

What's so complicated about it anyway?

Regards,

steve
[TeamSybase]

> Why so complicated?
>
>
> pbm_thisusuallydoesnothelp:-))
> Philip Salgannik
>
> <Steve Katz [TeamSybase]> wrote in message
> news:406dbaa6.2c92.846930886@sybase.com...
> > If you want live syncronized tracking you can do the
> > following in the other event of the "source" dw (there
> > is some code cleanup you can do also, but it is easier
> > to show if all (well, most of) the code is in one place.
> >
> > steve
> > [TeamSybase]
> >
> >
> > integer xPosDelta
> > integer yPosDelta
> > integer xPos
> > integer yPos
> > Point lPoint
> > Point lPointParent
> > Rect lRect
> > long hWnd
> >
> > if Message.Number = 534 then
> > RtlMoveMemory (lRect, lParam, 16)
> >
> > // the parent stuff could be done in the parent move
> > event...
> > lPointParent.x = Parent.x
> > lPointParent.y = Parent.y
> >
> > ClientToScreen (handle(Parent), lPointParent)
> >
> > lPoint.x = lRect.left - lPointParent.x
> > lPoint.y = lRect.top - lPointParent.y
> >
> > xPos = Integer(lPoint.x)
> > yPos = Integer(lPoint.y)
> > xPos = PixelsToUnits (xPos, XPixelsToUnits!)
> > yPos = PixelsToUnits (yPos, YPixelsToUnits!)
> >
> > xPosDelta = xPos - xPos1
> > yPosDelta = yPos - yPos1
> >
> > xPos1 = xPos
> > yPos1 = yPos
> >
> > xPos2 += xPosDelta
> > yPos2 += yPosDelta
> >
> > dw_float2.Move (xPos2, yPos2)
> > return 0
> > end if
> >
> > > Hi all,
> > >
> > > I have a problem, and I really don't know how to solve
> > > it. I have two "floating" dw's under a window. I'd
> > > like to show them always aligned on the screen, but I
> > > don't know how to move the second dw when I'm moving
> > > the first one. Anyone have an idea about it?
> > >
> > > TIA,
> > > Mano Bill
> > >
> > > I'm using PB9 - Build #7066
> > >
> > >
>
>