Not showing a Shaped form contents while dragging

4 posts, 0 answers
  1. Scott Gross
    Scott Gross  avatar
    15 posts
    Member since:
    Feb 2009

    Posted 21 May 2007 Link to this post

    I am using a shaped form for a multimedia application where I do not want to show the window's content while dragging.  Is there a way to do this?  I have it turned off in the desktop properties and only a form with RadControls will still show its contents while I'm dragging the form around the desktop.  Also is there an event in the form or .NET it self to detect when the form has finished moving, like "onMoved".

    Please let me know how to turn "Show window contents while draging" off.

    Thank you
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 22 May 2007 Link to this post

    Hi Scott,

    Thank you for your question.

    The problem most probably comes from the fact that you are using RadTitleBar which uses some custom methods to control the form. To use the default windows methods, it needs the form to be of specific kind, but in this case the RadTitleBar would break our form. We will attempt to fix that problem for the next release.

    In the current version we do not have an event like OnMoved. We will discuss the idea and will post our thoughts in the Forums.
     

    Sincerely yours,
    Evtim
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Scott Gross
    Scott Gross  avatar
    15 posts
    Member since:
    Feb 2009

    Posted 22 May 2007 Link to this post

    Is there there any possible way for me to use the RadTitleBar in my application in this mannor?  Do I need to override the WinProc function? I am currently doing this to resize and it works correctly (not showing contents while resizing). I have been trying to find the correct value of the messege recieved from the WinProc message.

    Thank you.
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 23 May 2007 Link to this post

    Hello Scott,

    Unfortunately there is no simple solution for this problem. Overriding the WndProc will not work. The problem is that RadTitleBar moves its owner form trough Form.Location property. This behavior can't be changed in our current version. We will correct this in the next service pack.

    Kind regards,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top