Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > General Discussions > Scaling & Zooming Demo

Answered Scaling & Zooming Demo

Feed from this thread
  • Sean avatar

    Posted on May 25, 2008 (permalink)

    Hi

    In the scaling and zooming demo the controls display a popup.  How would I make something similar but which allows editing?  I'm after something like the toolbar in Word2007 that appears semi-transparent but then goes solid and allows interaction when I move my mouse over it.

    Thanks

    Sean

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on May 28, 2008 (permalink)

    Hi Sean,

    The approach used in the Item Scaling demo for RadComboBox is appropriate just for this example and is meant to show the capabilities of RadComboBox. However, I am afraid this approach is not applicable to your scenario.

    If you have additional questions, do not hesitate to contact me.

    Regards,
    Nikolay
    the Telerik team

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

    Reply

  • Sean avatar

    Posted on May 28, 2008 (permalink)

    Hi Nikolay

    Could you suggest one of your controls that would do the job then, please?

    Thanks

    Sean

    Reply

  • Answer Angel Angel admin's avatar

    Posted on May 29, 2008 (permalink)

    Hello Sean,

    In order to have richer examples, we have created a specific popup control - ZoomPopup (used in the "Business Cards" integration example as well as in the RadComboBox "Item Scaling" example). Unfortunately, ZoomPopup can be used for zooming popups only.

    If you need to animate opacity instead of zooming, you will have to make it on your own. We will consider adding such a popup in the future.

    The easiest way to achieve a popup that has opacity animation is by inheriting MS Form and using its Opacity property. Set the form FormBorderStyle property to None, StartPosition property to Manual and Bounds property to the rectangle of the popup. Then animate the Opacity from 0 to 1.

    You will have to use a mouse hook or a message filter to detect conditions for closing the popup (such as moving the mouse out of the area of the popup or receiving WM_ACTIVATEAPP).

    Since Form is a top-level window, special care should be taken for the window activation (and the WM_NCACTIVATE message).

    For more information on how to make a form to be a popup window - please consult the article below:
    http://www.vbaccelerator.com/home/net/Code/Controls/Popup_Windows/Popup_Windows/article.asp

    Greetings,
    Angel
    the Telerik team

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

    Reply

  • Sean avatar

    Posted on May 29, 2008 (permalink)

    Hi Angel

    Thanks for the response.  It's a shame that your controls do not (yet) do what I would like, but I really appreciate your clear response.  I will look into what you mention.

    Regards

    Sean

    Reply

  • kiran avatar

    Posted on Jun 5, 2008 (permalink)

    Hi Telerik team,

    Do we have zoom feature in Q1 2008 version? If so can you please provide some sample application?

    regards,
    kiran

    Reply

  • Angel Angel admin's avatar

    Posted on Jun 6, 2008 (permalink)

    Hi kiran,

    We have two zoom features, which can be seen in the examples that come with the installation:
    1. Zoomable elements (this is available from the first version of RadControls for WinForms - Q4 2006) - the elements inside a control are zoomed according to their ScaleTransform property.
      In Q1 2008 examples, this feature is presented in:
      "RadControls Integration" -> "Bubble Bar" and
      "RadControls Integration" -> "Magnifier".
      In "RadControls Integration" -> "Photo Album" both scaling and rotation are shown.
       
    2. Zoomable popup (available since Q1 2007) - a popup control is shown with zooming animation.
      In Q1 2008 examples, this feature is presented in:
      "RadControls Integration" -> "Business Cards" and
      "Editors" -> "RadCombox" -> "Item Scaling".

    I hope this helps. If you have any further questions, please contact me.

    Sincerely yours,
    Angel
    the Telerik team

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

    Reply

  • kiran avatar

    Posted on Jun 10, 2008 (permalink)

    Hi Angel,

    this is not what i m expecting. I have a line chart. i want to zoom and zoom out selected part from the graph with magnifier button and i need to show in another window below the chart.

    is this feature available in Q1 2008? If so please share some sample application.

    Thanks in advance.

    Regards,
    kiran

    Reply

  • Dwight Dwight admin's avatar

    Posted on Jun 13, 2008 (permalink)

    Hi kiran,

    Thank you for getting back to us.

    At this time, the WinForms chart does not support the functionality you are looking for. We are also not planning to implement it. Interestingly, you are the first customer to request such a feature. If more customers express interest, we will consider implementing this feature.

    Contact us again if you have further questions.

    Regards,
    Evtim
    the Telerik team

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

    Reply

  • Posted on Nov 7, 2008 (permalink)

    Hello,

    I have been trying to animate the Opacity property of a RadGridView, but I am unable to do it. Here is the Code I'm using:
            Dim ve As VisualElement = Me.RadGridView1.RootElement
            Dim animateOpacity As AnimatedPropertySetting = _
            New AnimatedPropertySetting(VisualElement.OpacityProperty, _
                                        0.0F, _
                                        1.0F, _
                                        10, 30)
            animateOpacity .RemoveAfterApply = True
            animateOpacity .ApplyValue(re)

    Thank you,

    Reply

  • Mike Mike admin's avatar

    Posted on Nov 10, 2008 (permalink)

    Hi tanioskahi,

    Here is the code to toggle the opacity of RadGridView with animation

    Dim re As VisualElement = Me.RadGridView1.RootElement 
            Dim animateOpacity As AnimatedPropertySetting = Nothing 
            If Me.RadGridView1.RootElement.Opacity = 1D Then 
                animateOpacity = New AnimatedPropertySetting(VisualElement.OpacityProperty, CDbl(1), CDbl(0), 10, 30) 
            ElseIf Me.RadGridView1.RootElement.Opacity = 0D Then 
                animateOpacity = New AnimatedPropertySetting(VisualElement.OpacityProperty, CDbl(0), CDbl(1), 10, 30) 
            End If 
     
            If Not animateOpacity Is Nothing Then 
                animateOpacity.RemoveAfterApply = True 
                animateOpacity.ApplyValue(re) 
            End If 

    Let me know if this does not work for you.

    Sincerely yours,
    Mike
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • Posted on Nov 10, 2008 (permalink)

    Hello Mike,
    The opacity animation looks fine, nevertheless, when animated, the component hides all elements that are behind it and show only the form solid background.
    Thank you,

    Reply

  • Mike Mike admin's avatar

    Posted on Nov 10, 2008 (permalink)

    Hi Tanioskahi,

    This is the expected behavior for all controls in Windows Forms. The opacity implementation is limited to the parent control. According to this MS article, There is a way though to implement a control that is completely transparent though painting the parent control and all its children on its background. I modified the sample code to fix some problems and fit it in our scenario. Please find the project attached.


    Regards,
    Mike
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > General Discussions > Scaling & Zooming Demo
Related resources for "Scaling & Zooming Demo"

Features  |  Demos  |  Documentation  |  Telerik TV  |  Knowledge Base  |  Code Library  |  Step-by-step Tutorial  |  Blogs   |  Self-Paced Trainer  ]