missing control.layout() code after adding some widgets [message #129060] |
Fri, 21 July 2006 13:08  |
Eclipse User |
|
|
|
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."
|
|
|
Re: missing control.layout() code after adding some widgets [message #129074 is a reply to message #129060] |
Fri, 21 July 2006 15:38  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
It shouldn't be necessary because these are all being added to the main
shell at one time before the shell has been made visible and sized. And
then for the very first time, after everything is added and the shell
size is set, and then made visible. This should then cause a layout to
occur everywhere.
Open a defect.
--
Thanks,
Rich Kulp
|
|
|
Re: missing control.layout() code after adding some widgets [message #613566 is a reply to message #129060] |
Fri, 21 July 2006 15:38  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
It shouldn't be necessary because these are all being added to the main
shell at one time before the shell has been made visible and sized. And
then for the very first time, after everything is added and the shell
size is set, and then made visible. This should then cause a layout to
occur everywhere.
Open a defect.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 1.06597 seconds