Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 11 AUG 2008 05:02:07PM Bertil Strom wrote:

We use a graphic server OLE control in a form and it works well but after an OIPI preview it needs to be redrawn. Is there a way to detect when the user close a preview window ?


At 11 AUG 2008 05:55PM Sean FitzSimons wrote:

Bertil,

The Print Preview window is VSPRINTER. If you check for the HANDLE property on the window you could tell whether it has been closed.

Sean


At 11 AUG 2008 06:05PM [email protected]'s Don Bakke wrote:

Bertil,

If you have a promoted CLOSE event then you can also check to see if @WINDOW is equal to VSPRINTER.

[email protected]

SRP Computer Solutions, Inc.


At 12 AUG 2008 04:51AM Colin Rule wrote:

You should be able to use the Activated event on the main screen to call a refresh of the graphics. Also, probably needed on the Size event too.

Colin


At 13 AUG 2008 05:08PM Bertil Strom wrote:

Thanks, I'm not familiar with promoted events, any examples of available


At 13 AUG 2008 06:11PM [email protected]'s Don Bakke wrote:

Bertil,

I'm not sure I can easily give you an example but I can point you to some references for your own study.

First, you can find documentation in the Programmer's Reference Manual, Chapter 10, Promoted Events section.

There are also a couple of third-party resources that I believe will be useful to you:

The X Events - by Sprezz

Promoted Events - by SRP

The above references were written before OpenInsight was updated to provide a toolkit for creating and managing promoted events. Therefore, if you are running 8.x you will definitely want to take advantage of the Generate Promoted Code button on the Event Designer form.

[email protected]

SRP Computer Solutions, Inc.


At 15 AUG 2008 05:02AM Bertil Strom wrote:

Thanks, detecting 'Activated' did the trick

/Bertil


At 15 AUG 2008 08:48AM [email protected]'s Don Bakke wrote:

Thanks, detecting 'Activated' did the trick

Hmmm…but will the form with the graphic server *always* be activated when the OIPI Preview window is closed? What if you launched a window in between? Then when the OIPI Preview window is closed, the second window window will be activated but the graphic server will still appear as if it needs to be redrawn.

[email protected]

SRP Computer Solutions, Inc.


At 17 AUG 2008 03:08PM Bertil Strom wrote:

You are right, I'll check the promoted event

/Bertil

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/010c91472f818732852574a200738d3f.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1