[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
text aspect ratio when resizing object windows
- Subject: text aspect ratio when resizing object windows
- From: Brad Gom <b_gom(at)nospam.hotmail.com>
- Date: Tue, 04 Jan 2000 16:17:29 -1000
- Newsgroups: comp.lang.idl-pvwave
- Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany)
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:17891
I wonder if there is an easy way to keep text legible when resizing an
object graphics window. I am using object graphics to display a simple
2-d plot. To handle resizing events from the plot window, I use the
following:
PRO plot_Resize_Event, event
Widget_Control, event.top, Get_UValue=info, /No_Copy
; Resize the draw widget.
info.plotWindow->SetProperty, Dimension=[event.x, event.y]
info.plotWindow->Draw, info.plotView
Widget_Control, event.top, Set_UValue=info, /No_Copy
END
this works fine except for the text, which gets stretched out of
proportion when the aspect ratio of the window is changed too much.
How can I scale the plot properly while maintaining normal-looking text?
Thanks
Brad