I'm looking for the best solution for my problem, since I don't really get the proper usage of wxAnimation or wxAnomationCtrl from the docs. I have a method to get connected to a server and browse its content. Since this takes a while I wanted to add an animation to show the user that the program's still browsing (otherwise the user might think there's something wrong with my program).
What is the best way to realize this? Creating a new frame with a wxAnimationCtrl?
This is how it's supposed to work:
Code: Select all
void ServerData::connect()
{
printf("connect()\n");
/* Animation starts before connecting to Server */
/*********************************************************************
Connect to OPC UA Server
**********************************************************************/
/* Some methods for connecting and browsing are now being called */
/*After connecting and browsing the animation is supposed to stop */
}
Thank you in advance!
Forgot to mention I use wxWidgets 2.8.11 on Ubuntu