• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Participant ,
Mar 23, 2017 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!

TOPICS
Scripting

Views

583

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
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 23, 2017 Mar 23, 2017

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

Votes

Translate

Translate
Community Expert ,
Mar 23, 2017 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

Votes

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
community guidelines
Participant ,
Mar 23, 2017 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

Votes

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
community guidelines
Community Expert ,
Mar 23, 2017 Mar 23, 2017

Copy link to clipboard

Copied

LATEST

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

Re: Trapping "white document window"

Votes

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
community guidelines