Thread: Size and Position
-
October 12th, 2023, 09:50 #1
Size and Position
Is there an event that I can use to know when a control has finished drawing itself?
Using createControl the setPosition and setSize functions return 0, even after setAnchor, setAnchoredHeight, and setAnchoredWidth
-
October 12th, 2023, 16:10 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
You can use onFirstLayout to get an event after the first layout of the parent window. Anything else I've played with generates too many recursive issues, so that's the solution. I design to avoid that issue in 99% of the cases, and use the onFirstLayout event if absolutely needed.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks