Repainting question [message #454786] |
Thu, 28 April 2005 17:00 |
Eclipse User |
|
|
|
Originally posted by: mbasnight.swri.org
I have a wizard that renders all pages up front (I cannot change this
action). I would like to dynamically change a textbox from editable to
uneditable based on a previous page in the wizard. I cannot do so
because the screen does not and will not repaint for me. I have tried
asking the textbox to repaint and update, shell to repaint and update,
parent to repaint and update, much to no avail. Is it possible to do
this?
|
|
|
|
Re: Repainting question [message #454801 is a reply to message #454794] |
Fri, 29 April 2005 12:21 |
Eclipse User |
|
|
|
Originally posted by: mbasnight.swri.org
Steve Northover wrote:
> ave you tried Composite.layout()?
Steve, thank you for your speedy reply.
That does not seem to work. Here is a snippet of code.
public void assembleGroup(Composite beanContainer) {
group = new Group(beanContainer, SWT.RESIZE);
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
group.setFont(beanContainer.getFont());
group.setLayout(
caipWizardPage.initGridLayout(
new GridLayout(2, false), true));
beanNameLabel = new Label(group, SWT.NONE);
beanNameLabel.setText("&Bean Name ");
....
}
How can I dynamically change the size of the window that displays this
textbox (beanNameLabel)? I extending off existing code within a new
wizard plugin.
I have tried
beanContainer.layout();
group.layout();
beanContainer.getParent().layout().
And I have also tried pack(), which seems to turn into a mess.
thanks again.
|
|
|
Re: Repainting question [message #454803 is a reply to message #454801] |
Fri, 29 April 2005 13:18 |
Steve Northover Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
Michael, can you provide a small stand alone snippet? I can't see much from
the code you provided. Also, if you are using JFAce, you might try
eclipse.platform.
"Michael Basnight" <mbasnight@swri.org> wrote in message
news:d4t8t0$47u$1@news.eclipse.org...
> Steve Northover wrote:
>
> > ave you tried Composite.layout()?
>
> Steve, thank you for your speedy reply.
>
> That does not seem to work. Here is a snippet of code.
> public void assembleGroup(Composite beanContainer) {
>
> group = new Group(beanContainer, SWT.RESIZE);
> group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
> group.setFont(beanContainer.getFont());
> group.setLayout(
> caipWizardPage.initGridLayout(
> new GridLayout(2, false), true));
>
> beanNameLabel = new Label(group, SWT.NONE);
> beanNameLabel.setText("&Bean Name ");
> ...
> }
> How can I dynamically change the size of the window that displays this
> textbox (beanNameLabel)? I extending off existing code within a new
> wizard plugin.
>
> I have tried
> beanContainer.layout();
> group.layout();
> beanContainer.getParent().layout().
>
> And I have also tried pack(), which seems to turn into a mess.
>
> thanks again.
|
|
|
Powered by
FUDForum. Page generated in 0.03022 seconds