Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Button display twice in VE
Button display twice in VE [message #128812] Thu, 13 July 2006 15:35 Go to next message
Eclipse UserFriend
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 18: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 18: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: Mon Jun 23 21:58:03 EDT 2025

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

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

Back to the top