mhwlng
August 4th, 2005, 09:43 AM
see picture
never mind the fantastic graphics...
you can drag the frame 'X' between two targets 'T1' and 'T2'
if you let go of the mouse, the movement is animated exactly like the cards in the solitaire card game that comes with windows....
(I see a lot of potential for games here...)
so if the mouse is let go and the 'X' frame touches any part of target 'T1' or 'T2' then it is moved to that target, otherwise it is moved back to the original target. all animated...
the drag/drop uses a new function in the marcelutils plugin to get the mouse position.
http://www.promixis.com/phpBB2/viewtopic.php?t=8605&highlight=
(the sample is also included with the plugin : dragdrop.ccf)
native support for this in a future NR would be easier and could probably support PPC (now it's WIN32 only)
dragging a button doesn't work, only frames... Don't know why yet...
and the example (that comes with above mentioned plugin) uses the new
NetRemote.SetElementPosition
NetRemote.GetElementPosition
NetRemote.GetElementSize
NetRemote.SetTimer
etc.
in NR >= 1.1.0.41
Marcel
never mind the fantastic graphics...
you can drag the frame 'X' between two targets 'T1' and 'T2'
if you let go of the mouse, the movement is animated exactly like the cards in the solitaire card game that comes with windows....
(I see a lot of potential for games here...)
so if the mouse is let go and the 'X' frame touches any part of target 'T1' or 'T2' then it is moved to that target, otherwise it is moved back to the original target. all animated...
the drag/drop uses a new function in the marcelutils plugin to get the mouse position.
http://www.promixis.com/phpBB2/viewtopic.php?t=8605&highlight=
(the sample is also included with the plugin : dragdrop.ccf)
native support for this in a future NR would be easier and could probably support PPC (now it's WIN32 only)
dragging a button doesn't work, only frames... Don't know why yet...
and the example (that comes with above mentioned plugin) uses the new
NetRemote.SetElementPosition
NetRemote.GetElementPosition
NetRemote.GetElementSize
NetRemote.SetTimer
etc.
in NR >= 1.1.0.41
Marcel