Scaling & Zooming Demo

13 posts, 1 answers
  1. Sean
    Sean avatar
    5 posts
    Member since:
    May 2008

    Posted 25 May 2008 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 28 May 2008 Link to this post

    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
  3. Sean
    Sean avatar
    5 posts
    Member since:
    May 2008

    Posted 28 May 2008 Link to this post

    Hi Nikolay

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

    Thanks

    Sean
  4. Answer
    Angel
    Admin
    Angel avatar
    121 posts

    Posted 29 May 2008 Link to this post

    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
  5. Sean
    Sean avatar
    5 posts
    Member since:
    May 2008

    Posted 29 May 2008 Link to this post

    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
  6. kiran
    kiran avatar
    36 posts
    Member since:
    May 2008

    Posted 05 Jun 2008 Link to this post

    Hi Telerik team,

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

    regards,
    kiran

  7. Angel
    Admin
    Angel avatar
    121 posts

    Posted 06 Jun 2008 Link to this post

    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
  8. kiran
    kiran avatar
    36 posts
    Member since:
    May 2008

    Posted 10 Jun 2008 Link to this post

    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

  9. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 13 Jun 2008 Link to this post

    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
  10. tanioskahi
    tanioskahi avatar
    2 posts
    Member since:
    Mar 2007

    Posted 07 Nov 2008 Link to this post

    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,
  11. Mike
    Admin
    Mike avatar
    640 posts

    Posted 10 Nov 2008 Link to this post

    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.
  12. tanioskahi
    tanioskahi avatar
    2 posts
    Member since:
    Mar 2007

    Posted 10 Nov 2008 Link to this post

    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,
  13. Mike
    Admin
    Mike avatar
    640 posts

    Posted 10 Nov 2008 Link to this post

    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.
Back to Top