|  | Cannot get exact height of radio or checkbox |  | |
| | | adrianTNT |  |
| Posted: Mon Jun 30, 2008 11:04 am Post subject: Cannot get exact height of radio or checkbox |  |
Hello, I am trying to find the correct height of MX 2004 radio buttons in order to align them vertically.
By default (without changing font size) it returns 5 for the "instance_name.height" and 22 for "instance_name._height". Both are not the real height in pixels which should be 12-13 by default.
Is there another code to accurately return the height (in pixels) of the radio button? Thank you. - Adrian. |
| |
| | | kglad |  |
| Posted: Mon Jun 30, 2008 1:57 pm Post subject: Re: Cannot get exact height of radio or checkbox |  |
| you must delay accessing the size of some components. 1 ms after instantiation is sufficient, i believe |
| |
|
|