[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Desktop Garbage on ToolItems

Ok, found out the following:

In my ActiveX control I have an OnCreate method which delegates to a java method to initialize SWT. This initialization is done in a separate thread which creates a display and will eventually run the event loop. The effect with the garbled toolbar will not occur when the method spawning the gui thread waits until the display object is created and initialized before returning to the native OnCreate.
Also the problem does not occur on windows 2000, so I guess it has something to do with win xp styles.
I would still appreciate if someone could explain *why* waiting for the display object to be initialized gets rid of the problem.


Elfi