THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/02/2011 at 08:59, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R9+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Howdy,
I'm having a little trouble getting the status bar to spin while walking the hierarchy in a recursive function.
Basically what I'm doing is something similar to this:
void WalkTheHierarchy(BaseObject *op)
{
while(op)
{
StatusSetSpin();
// do something with op....
WalkTheHierarchy(op->GetDown());
op = op->GetNext();
}
}
... and that's being called with something similar to this:
StatusSetText("walking the hierarchy");
WalkTheHierarchy(doc->GetFirstObject());
... but for some reason the status bar doesn't want to spin. It shows the dashed bar, but it doesn't move, and instead I get the spinning curser until it's done.
Is the example code above the correct way to handle it? Or is branching out of the function causing it to start over every time?
Adios,
Cactus Dan