Skip to main content



      Home
Home » Archived » Visual Editor (VE) » missing control.layout() code after adding some widgets
missing control.layout() code after adding some widgets [message #613565] Fri, 21 July 2006 13:08
Eclipse UserFriend
Originally posted by: nicolas.georgemel.laposte.net

Hi,

i found an issue with 2 elements (maybe more) : after adding a group
widget or a section widget (forms toolkit) with VE. All is fine in VE
but at runtime some elements are missing :

- for section widget, the text is not visible
- for group widget, all child widget are not visible

to workaround theses issues i must hand coding layout() method at the
end of control creation code, so after, at runtime, all is fine.

i paste a snippet here for sample :

private void createSection1() {
section1 = getFormToolkit().createSection(compositeInvoiceForm,
ExpandableComposite.TWISTIE | Section.DESCRIPTION |
ExpandableComposite.TITLE_BAR | ExpandableComposite.CLIENT_INDENT);

section1.setExpanded(true);
section1.setText("Dates");
createComposite1();
section1.setClient(composite1);
section1.setBounds(new Rectangle(60, 165, 886, 76));

section1.layout(); //here it's code added by hand
}

i guess VE would added this code automatically but perhaps this code, in
some case, is time or display consuming...i don't know...

Maybe a bug is open, if none please let me know and i'll open one.

My config :
----------

Version: 3.2.0
Build id: M20060629-1905
Using calisto project
Win XP sp2

Nicolas Georgemel.

"Computers are like air conditioners. They don't work when you open
Windows."
Previous Topic:Configuration of palette and override files by fragments
Next Topic:missing control.layout() code after adding some widgets
Goto Forum:
  


Current Time: Wed Jun 18 12:00:27 EDT 2025

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

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

Back to the top