Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Parent continues before child is painted
Parent continues before child is painted [message #45352] |
Sun, 01 November 2015 09:42  |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
(debian 64bit)
How can I synchronize updates to a child control so that function calls in my app are guaranteed to happen after the paint-event of the child has completed?
I've tried Sync(), both in the parent and the child but to no avail.
The child's paint-event calculates and sets values in the items that are painted (their x,y-coord's) which I want to use elsewhere. This happens during start-up in the ctor of the parent, but the parent ctor always finishes before the paint-event of the child is called - meaning the x,y's are zeros. I want to ensure that the child's paint-event happens in sequence to the function-calls in the parent-ctor. How can I force this?
|
|
|
Goto Forum:
Current Time: Wed May 14 23:16:08 CEST 2025
Total time taken to generate the page: 0.01093 seconds
|