Highlighted

Framescript: Displaying set to 1 but the file is not displayed

Participant ,
Mar 23, 2017

Copy link to clipboard

Copied

Hello fellows,

Before I run a certain part of my script, set Displaying to 0.

When done, I return Displaying to 1. The script has finished running (I can scroll through the open file, switch between files) but the file is not displayed (sort of blank page). Only when I try to close the file, its contents appears on the screen.

Any idea what could be the cause of this problem?

Thank you in advance!

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

Hi Roman,

// Turn off document display.

If Displaying = 1

  Set Displaying = 0;

EndIf

//...

// Restore the document display and refresh the screen.

If Displaying = 0

  Set Displaying = 1;

  Update DocObject(oDoc) Redisplay;

EndIf

The key line is 11, where you "refresh" the screen. It is like pressing Control+L.

-Rick

TOPICS
Scripting

Views

482

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Framescript: Displaying set to 1 but the file is not displayed

Participant ,
Mar 23, 2017

Copy link to clipboard

Copied

Hello fellows,

Before I run a certain part of my script, set Displaying to 0.

When done, I return Displaying to 1. The script has finished running (I can scroll through the open file, switch between files) but the file is not displayed (sort of blank page). Only when I try to close the file, its contents appears on the screen.

Any idea what could be the cause of this problem?

Thank you in advance!

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

Hi Roman,

// Turn off document display.

If Displaying = 1

  Set Displaying = 0;

EndIf

//...

// Restore the document display and refresh the screen.

If Displaying = 0

  Set Displaying = 1;

  Update DocObject(oDoc) Redisplay;

EndIf

The key line is 11, where you "refresh" the screen. It is like pressing Control+L.

-Rick

TOPICS
Scripting

Views

483

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 23, 2017 0
Adobe Community Professional ,
Mar 23, 2017

Copy link to clipboard

Copied

Hi Roman,

// Turn off document display.

If Displaying = 1

  Set Displaying = 0;

EndIf

//...

// Restore the document display and refresh the screen.

If Displaying = 0

  Set Displaying = 1;

  Update DocObject(oDoc) Redisplay;

EndIf

The key line is 11, where you "refresh" the screen. It is like pressing Control+L.

-Rick

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 23, 2017 0
Participant ,
Mar 23, 2017

Copy link to clipboard

Copied

Hi Rick,

Thank you for your response! I didn't realize there is a need to test for the Displaying setting. I just used to set it to either 0 or 1.

The If statement made the difference.

Thank you again!

Best Regards,

Roman

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 23, 2017 0
Adobe Community Professional ,
Mar 23, 2017

Copy link to clipboard

Copied

For more background information on the Displaying property, see reply 8 of this thread:

Re: Trapping "white document window"

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 23, 2017 0