Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Button display twice in VE
Button display twice in VE [message #128812] Thu, 13 July 2006 19:35 Go to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
I have this class as following. VE displays the button twice. One is
inside the
Composite, the other one is outside the Composite area. Does anyone have
any idea why that is? Thanks.

public class Test extends Composite {

private Button button = null;

public Test(Composite parent, int style) {
super(parent, style);
initialize();
}

private void initialize() {
setSize(new Point(300, 200));
}

public void render()
{
button = new Button(this, SWT.NONE);
}

}
Re: Button display twice in VE [message #128825 is a reply to message #128812] Thu, 13 July 2006 22:04 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

That is not a style VE understands. You will need to change to:

> public class Test extends Composite {
>
> private Button button = null;
>
> public Test(Composite parent, int style) {
> super(parent, style);
> initialize();
> }
>
> private void initialize() {
button = new Button(this, SWT.NONE);
> setSize(new Point(300, 200));
> }
>
>
> }

Hung Lam wrote:
--
Thanks,
Rich Kulp
Re: Button display twice in VE [message #613547 is a reply to message #128812] Thu, 13 July 2006 22:04 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

That is not a style VE understands. You will need to change to:

> public class Test extends Composite {
>
> private Button button = null;
>
> public Test(Composite parent, int style) {
> super(parent, style);
> initialize();
> }
>
> private void initialize() {
button = new Button(this, SWT.NONE);
> setSize(new Point(300, 200));
> }
>
>
> }

Hung Lam wrote:
--
Thanks,
Rich Kulp
Previous Topic:Button display twice in VE
Next Topic:Configuration of palette and override files by fragments
Goto Forum:
  


Current Time: Fri Apr 26 06:27:46 GMT 2024

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

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

Back to the top