Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Repainting question
Repainting question [message #454786] Thu, 28 April 2005 17:00 Go to next message
Eclipse UserFriend
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 #454794 is a reply to message #454786] Thu, 28 April 2005 22:13 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Have you tried Composite.layout()?

"Michael Basnight" <mbasnight@swri.org> wrote in message
news:d4r4rj$pil$1@news.eclipse.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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
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.
Previous Topic:JFace TitleAreaDialog
Next Topic:SWT and mySQL - how?
Goto Forum:
  


Current Time: Fri Apr 19 22:07:44 GMT 2024

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

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

Back to the top