|FigureCanvas and automatic Scrollbars [message #238192]
||Fri, 31 August 2007 00:15
Originally posted by: jpr48.cornell.edu|
I am developing an Eclipse plugin for the language that my employer publishes (DB/C, aka
Databus, aka PL/B). I am using the GEF to make a gui painter. I am having a little difficulty
with the automatic scrollbars of the FigureCanvas.
I want to use these scrollbars because they work beautifully with rulers.
My extension of org.eclipse.gef.ui.parts.GraphicalEditor and its associated FigureCanvas is
embedded in a org.eclipse.swt.widgets.Canvas. The Canvas has a fixed size which is set by the
user. The Canvas in turn is embedded in a org.eclipse.swt.widgets.Composite which is part of a
The amount of screen real estate can change at the user's whim. When the available space is less
than the fixed size of the Canvas I want scroll bars to appear.
I have this partially working. I listen for Control events from the enclosing Composite and I
tell the FigureCanvas to change its size. This seems to work, but not exactly the way that I
want it to. The scroll bars appear when any embedded IFigure is obscured, which makes sense. But
I would like them to appear when any part of the Canvas is obscured, regardless if any IFigures
I have tried to put an invisible IFigure at the lower right to see if it forces the scrollbars,
but I am getting inconsistent results.
Can anyone offer me advice?
Powered by FUDForum
. Page generated in 0.11750 seconds