Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Parent continues before child is painted
Re: Parent continues before child is painted [message #45357 is a reply to message #45352] |
Sun, 01 November 2015 15:25  |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
Okay! I did not know about NilDraw, and it went way easier than I expected
Implemented it something like this:
...
NilDraw nd;
myctrl.paint_helper(nd, vmydata); //paint_helper() extracted from Paint() for computations
//and the only thing Paint(Draw &w) does is to call paint_helper(w, vmydata);
...
myctrl.ensure_visible(vmydata[idx]);
...
and it works!
This NilDraw-call is once only at start-up so the double calculation is OK, don't know if it would be efficient if it's to be done for every paint
Thx mirek
|
|
|
Goto Forum:
Current Time: Tue Sep 02 14:53:10 CEST 2025
Total time taken to generate the page: 0.07013 seconds
|