Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:28 pm
by Patwos >> Thu, 18 Dec 2003 8:05:34 GMT
The following statement from the "Performance Recommendations" section of the white paper answers your question:
"Define as much as possible in the painter. The form definition is cached on the Presentation Client after the first create of that form and does not need to be resent for future creates. The more controls created or changed at run time the larger the number of requests passed to the Presentation Client and the more chance that additional messages will result."
If you really want to know the impact of programmatically setting the colours in the create method, try using the thin client tracing to see how many additional messages are required to be sent to handle the programmatic setting of the colours versus setting them to the desired colour in the painter. It would also be worth checking how much overhead this causes on a connection that matches your expected production Network connection speed and latency.
You may also want to consider using the JADE Skins feature to help enhance your GUI without writing any code.
Hope that helps,
Pat.