Problem when move object

32 views
Skip to first unread message

nvd...@gmail.com

unread,
Jun 2, 2020, 11:51:49 PM6/2/20
to GLG Toolkit Community Edition
Hi Genlogic team !

When I using Glg toolkit I have a problem as my attack video in this.

Please help me to setting or choose option to avoid it.

Tks you!
Glg-Moving-Problem.mp4

glg_support

unread,
Jun 3, 2020, 2:36:48 PM6/3/20
to GLG Toolkit Community Edition
The artifacts you observe are related to the way paint events are propagated on Windows when a window is obscured by another window and then exposed. GLG menu widgets, as well as buttons inside the menu, are GLG viewports. A GLG viewportis an encapsulation of a native Windows window, so if your drawing contains several menus each with multiple buttons, the drawing contains many windows. Therefore, a large number of paint events is generated when you move a menu on top of other menus, making the menus obscured and then exposed.

This is normal and it is not a problem, as everything is properly redrawn when you finish the movement.

You may observe that this effect does not happen when a separate top-level window is moved over the GLG Builder's window, because this is handled by Windows differently compared to a child window over a sibling child window.

If you change menus and buttons to use windowless viewports (light viewports), it will also avoid these artifacts when menu widgets are moved around.
Reply all
Reply to author
Forward
0 new messages