How can I access the event that is triggered when a graph pane is resized?
After each resize, I want to fix the text size on the title and labels so they don’t get huge when the window is maximized.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can subscribe for
ZedGraphControl‘s resize event:But it’s easier to achieve what you want by disabling the automatic font scaling on the GraphPane:
If you have more than one GraphPane on your MasterPane, use:
See also:
http://zedgraph.org/wiki/index.php?title=How_does_the_font_and_chart_element_scaling_logic_work%3F
http://zedgraph.sourceforge.net/documentation/html/P_ZedGraph_PaneBase_IsFontsScaled.htm