#1 2013-08-18 10:09:14

Zorglub
Member
Registered: 2010-12-17
Posts: 3

Gif animé en thread

J'utilise devexpress pour mes composants visuels, et j'essaye d'afficher un gif animé (pour une "wait form") pendant un traitement lourd.
Le pb est que devexpress s'execute dans le thread principal et qu'il peut faire des modifications visuelles (mettre à jour une grid par exemple).
Or si j'execute ma form avec le gif animé dans un autre thread, il y a un conflit d'affichage entre mon thread et devexpress ; devexpress n'utilisant pas Synchronize.
Y a t il un moyen de "resynchroniser" les messages windows d'affichage entre ces 2 traitements ?
je sais, ce n'est pas très clair.

Offline

#2 2013-08-18 10:59:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,232
Website

Re: Gif animé en thread

Hello, please use English on this forum, as stated by the Rules - http://synopse.info/forum/misc.php?action=rules

Honestly, this forum is not the right place to post such general-level question.

Please try on http://stackoverflow.com - you will probably find much better help here.

For your problem, I suppose you should not use a dedicated thread to animate the gif, but a standard timer with a message process method.
So it should within the main thread, in conjunction with other UI components.

Offline

Board footer

Powered by FluxBB