Different resizing scenario [message #205586] |
Tue, 17 April 2007 23:42 |
Eclipse User |
|
|
|
Originally posted by: ramapra.gmail.com
For my view based plugin I have implemented a handler for sizing events
like
View code
CreatePartControl( Composite parent)
{
// Create controls
...
parent.GetShell().addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e)
{
// Resize inner components
}
}
}
However , this handler is not called when the view size is changed by
dragging the top line of the container that houses this view .
What type of handler should i implment to get notified of this change ?
Help is appreciated
|
|
|
Re: Different resizing scenario [message #206089 is a reply to message #205586] |
Thu, 19 April 2007 14:08 |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Hi,
Are you resizing the Shell or just the view? The Shell is the outside
window and this code seems to be listening to shell resize events.
Cheers,
ian
mnm wrote:
> For my view based plugin I have implemented a handler for sizing events
> like
> View code
> CreatePartControl( Composite parent)
> {
> // Create controls ...
>
> parent.GetShell().addControlListener(new ControlAdapter() {
>
> public void controlResized(ControlEvent e)
> {
>
> // Resize inner components }
> }
> }
>
>
>
> However , this handler is not called when the view size is changed by
> dragging the top line of the container that houses this view .
>
> What type of handler should i implment to get notified of this change ?
> Help is appreciated
|
|
|
Powered by
FUDForum. Page generated in 0.08531 seconds