Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » [Solved] Custom widget rendering
[Solved] Custom widget rendering [message #1693388] Thu, 23 April 2015 17:16 Go to next message
ALex W is currently offline ALex WFriend
Messages: 56
Registered: July 2012
Member
Hello,

I was wondering what part of a custom component will WB render ?
For instance :
- I created a custom FieldEditor. Basically a label with a Text next to it, wrapped inside a composite.
- I added to the palette,

When dragging it to my design view, only the "wrapper" composite is visible. When running the application, my fully customized component is renderer.
What are the dev guidelines for my component to be rendered nicely ?

Thanks

[Updated on: Fri, 08 May 2015 09:54]

Report message to a moderator

Re: Custom widget rendering [message #1693615 is a reply to message #1693388] Sun, 26 April 2015 19:59 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
The widget should render fully when invoked via the default constructor (just like any other widget).
Re: Custom widget rendering [message #1694829 is a reply to message #1693615] Fri, 08 May 2015 09:54 Go to previous messageGo to next message
ALex W is currently offline ALex WFriend
Messages: 56
Registered: July 2012
Member
Ok, I found the issue.

I was simply adding a label in the constructor (which matches with your advice Eric) but I simply forget ot add a label.pack() to compute the size of it Smile
You definitely help me, by showing me it was as simple as I expected

Thanks
Re: Custom widget rendering [message #1695092 is a reply to message #1694829] Tue, 12 May 2015 02:18 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
Yep. That would do it.
Previous Topic:I'm having trouble with alignment in the window builder. controls Wont snap into place.
Next Topic:ClassCastException in WB XWT
Goto Forum:
  


Current Time: Thu Apr 25 05:24:30 GMT 2024

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

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

Back to the top