Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to avoid scrollbars
How to avoid scrollbars [message #229981] Wed, 13 May 2009 07:04 Go to next message
Eclipse UserFriend
Hello again,
I need a fixed editor panel w/o possibility to scroll or resize.
In which class i have to do mofications ?

Greets
Patrick
Re: How to avoid scrollbars [message #230148 is a reply to message #229981] Wed, 13 May 2009 11:06 Go to previous message
Eclipse UserFriend
I found a way to remove the srollbar of the EditorPart in a refreshBounds
method of a node edit part:

Object xx = getParent();
if (xx instanceof SystemEditPart)
{
SystemEditPart pa = (SystemEditPart) xx;
EditPart ep = pa.getParent();
FigureCanvas c = (FigureCanvas) ep.getRoot().getViewer().getControl();
c.setScrollBarVisibility(org.eclipse.draw2d.FigureCanvas.NEV ER);
}

But probaly i should insert the code at a better place ;)


Patrick Schmitt wrote:

> Hello again,
> I need a fixed editor panel w/o possibility to scroll or resize.
> In which class i have to do mofications ?

> Greets
> Patrick
Previous Topic:is it possible to make label invisible?
Next Topic:Customizing diagram menus & perspectives
Goto Forum:
  


Current Time: Tue May 13 18:05:32 EDT 2025

Powered by FUDForum. Page generated in 0.02602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top