[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How would I implement zoom-in-region for a canvas?

Tracker is the easiest way to enable a user to do this.  There are some
example Tracker snippets at http://www.eclipse.org/swt/snippets#tracker .

Grant


"Adam Preble" <adam.preble@xxxxxxxxx> wrote in message
news:13f241ba1bfa09cccbf58e369f1b01ce$1@xxxxxxxxxxxxxxxxxx
> I have been trying to display financial information using SWT because I
> got fed up with the limitations of the spreadsheet and charting software I
> have.  So far, I have been able to open a window with a title, axes, key,
> and drawing region set up relative to each other using a FlowLayout.  It
> looks ok, but I can't zoom in yet.
>
> I want to implement the ability to drag click across part of the chart,
> and have it box in the drag area into which the chart would zoom.  I can
> manage the code for only drawing that partial region, but I wanted to
> figure out how to add the whole drag-click support to the GUI.  Could
> somebody suggest some things I should look into?
>