When a window "opens", that does not necessary mean that it is
visible yet. Maybe your resize code has a dependency on information
that has not been initialized or isn't available at that point yet.
You could check if the code is actually executed (ie. the Open event
gets called), and then try to find out _why_ it doesn't work. Just
moving the code to a different event by trial-and-error isn't solving
the problem, it's circumventing it.
Cheers,
Frank+++
Am 09.11.2006 um 01:37 schrieb Lucila Rios:
Hi,
I have a canvas class that resizes itself after it draws a string
to show the whole string. I assign the initial properties from
code in the open event of the window. But when the window opens
the canvas doesn't resize itself; however, it does work if I put
the code on a push button action event. How could I do it so that
it would resize after the window opens?
Luci
--
Günter Schmidt & Co. oHG
Frank Bitterlich eMail: [EMAIL PROTECTED]
Ben-Gurion-Ring 21 WWW: http://www.gsco.de/
D-60437 Frankfurt Tel.: 069 / 156809-29
GERMANY Fax: 069 / 156809-28
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>