PDA

View Full Version : showWindow UI problem.


Sausage
01-21-2003, 12:24 PM
Can anyone help me with this annoying problem?

I am showing 2 progress bars in a window and the text above each progress bar is some text to describe it. However, I am finding that the text doesn't draw until the whole progress has finished. The progress bars work fine as they are refreshing regularly. The text, however, doesn't draw and refresh until the window progress bars have finished.

Basically, is there any quick way to refresh a window via mel, so that any text labels etc definitely show?

A snippet of the mel script is below. Where am I going wrong? I'm am pretty useless with Maya UI mel stuff. Bear in mind, it's not tabulated properly because of the text entry on this forum.

After I do the showWindow command, the mel script goes on to do some processor intensive stuff. I've tried the resfresh command and pause command already.

Help would be most gratefully recieved.

waitCursor -state on;
string $pWin,$progressControl;
string $vertprogressControl;
string $version = `about -v`;
string $release = `substring $version 1 1`;
if ( float( $release ) > 3 ) // only version 4...
{
$pWin = `window -s 0 -tb 1 -widthHeight 320 120
"BlendsTransporter" `;
columnLayout -adjustableColumn 1 -rowSpacing 2;
text -label "Blendmesh being matched.";
separator -style "single";


$progressControl = `progressBar -maxValue
$numofBlends -width 300 -height 24`;
setParent;

text -label "Calculating vert offsets";
separator -style "single";


$vertprogressControl = `progressBar -maxValue
$numofverts -width 300 -height 24`;
setParent..;

setParent;

showWindow $pWin;


}

:)

Sausage
01-21-2003, 12:55 PM
It's okay, I found a solution.

I still think the text should have shown anyway, but the way to overcome my problem was to use the "text -e" command to edit the text label after the "showWindow" command. This forced the text to show.

One to remember, I guess.:)

CGTalk Moderation
01-14-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.