W dniu 2011-12-04 14:05, Greg Brown pisze:
The size is 0 because the window has not been laid out yet. Can you perform your logic based on the preferred size of the window? That is generally the size it will be given when layout occurs.
Some of the windows don't have their preferred size set - the size depends on their contents. Can I trust getPreferredWidth will always return the width that will be given to the window in such cases?
Regards, Piotr -- Piotr Kołaczkowski senior consultant Sages Sp. z o.o. ul. Wąwozowa 11 02-796 Warszawa t: +48 22 2035600 f: +48 22 2035601 m: +48 609618449
