| Scrollbar [message #990434] |
Wed, 12 December 2012 08:43  |
Lars Schulte Messages: 4 Registered: December 2012 |
Junior Member |
|
|
I'm pretty new to Graphiti so maybe there's an easy solution to my problem which I just haven't found yet but after some searching without finding anything on this topic I choose to open this topic.
What I'm looking for is the possibility to add a scrollbar to a Pictogram Element. As a easy example remember the EClass thats provided in the tutorial. You use the top space as a Caption and let's assume we want to use the lower space for a description. As such a description can be pretty long but we don't want the shapes to get ridiculous big it would be nice to have a horizontal and/or vertical scrollbar.
Thanks for helping
Lars
|
|
|
|
| Re: Scrollbar [message #990725 is a reply to message #990434] |
Thu, 13 December 2012 15:38   |
Andreas Graf Messages: 129 Registered: July 2009 |
Senior Member |
|
|
Hi Lars,
I see no support out of the box. My idea, if I really wanted to implement this:
Add a scrollbar to the diagram at the correct position and do the relative positioning of the text shape to the container shape your self.
This is how I add a button to the diagram:
FigureCanvas fcvs = (FigureCanvas) graphicalViewer.getControl();
Composite composite = new Composite(fcvs, SWT.NONE);
if(logger.isDebugEnabled()) {
logger.error(parent);
}
composite.setBounds(30, 10, 80, 40);
composite.setLayout(new FillLayout(SWT.HORIZONTAL));
Button button = new Button(composite, SWT.NONE);
composite.layout();
[Updated on: Thu, 13 December 2012 15:39] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01483 seconds