Page 1 of 1

draggable controls within transparent application

Posted: Fri Aug 07, 2009 6:37 pm
by killfile
Good afternoon,

Using the transparency sample (#4), if I insert a custom swf with draggable panels, I'm unable to drag them relative to the swf. I can only drag/move the whole swf window itself.

Is this supported and if so, how would I go about doing that?

Thanks a lot.

Posted: Sat Aug 08, 2009 7:42 am
by Softanics
Thank you for your question.

This sample uses the following code:

Code: Select all

      protected override void OnMouseDown(MouseEventArgs e)
      {
         m_nX = Left + e.X;
         m_nY = Top + e.Y;

         m_nLeft = Left;
         m_nTop = Top;

         Capture = true;

         base.OnMouseDown(e);
      }


In your case, you should detect which part of the window is draggable and which is not.

Thank you.