Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5862 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I am using:

TextColor ( blah::woof ; RGB ( 0 ; 500 ; 0 ) )

Refresh Window []

... which works, but when I add a loop later in the script -- setting a global variable to the CurrentTime, loop, exit loop if the variable + 1 < Get (CurrentTime) -- the formatting doesn't show up except for a flash, as if the loop is executing before the color is drawn to screen from the earlier step.

I have a TextFormatRemove ( blah::woof ) as the last script step, which works.

Ken

Edited by Guest
I edited out the (pure) RGB (...) reference, which was incorrect.
Posted

Set Field [ blah::woof; RGB ( 500 ; 0 ; 0 ) ]

Shouldn't this be

Set Field [ blah::woof; textcolor( blah::woof ; RGB ( 500 ; 0 ; 0 ) ) ]

Posted

Daniele, 'pause' works perfectly, thank you for pointing out what should have been obvious to me.

OTOH, I'm still curious why the screen wasn't painted before the loop executed. I'm familiar with this phenomenon, going back to the HyperTalk and Lingo days.

Thanks, Ken

Posted

I've seen cases where even a Pause(0 sec) did the trick.

This topic is 5862 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.