draggable controls within transparent application

.NET Edition of the F-IN-BOX
killfile
Posts: 1
Joined: Fri Aug 07, 2009 6:30 pm

draggable controls within transparent application

Postby killfile » Fri Aug 07, 2009 6:37 pm

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sat Aug 08, 2009 7:42 am

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.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests