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 31 MAR 2006 06:15:49PM Harley Teague wrote:

With OI7.2.1 is it possible programatically to know when/if the user has closed the OIPI Print Preview window?


At 31 MAR 2006 07:10PM Harley Teague wrote:

I was looking for an error code on Set_printer, have just discovered Get_printer('CANCEL') does exactly what I need according to the documentation.

However only if the user clicks the cancel / close button - does not work if the window is closed via the "X"


At 01 APR 2006 01:53AM dbakke@srpcs.com's Don Bakke wrote:

Harley,

You might need to scan for the HANDLE property of the Preview window:

hWnd=Get_Property("VSPRINTER", "HANDLE")

If the Preview window is closed then hWnd will be null.

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 01 APR 2006 10:29AM Gerald Lovel wrote:

Harley,

There is a help document, "Procedure to disable window close button," which describes disabling the "X" box on collector windows. Possibly this technique could be applied to the preview window, so that the user would be forced to use OK/Cancel buttons. (I disable the "X" on essentially all my MDIChild collector windows.)


At 02 APR 2006 03:06PM dsig _at_ sigafoos.org wrote:

Have you ever noticed that the mid child starts with the X appearing active (red and white) but when you try to click it it does nothing (cool) and if you click the frame .. it changes color to disabled


At 02 APR 2006 11:16PM Gerald Lovel wrote:

DSig,

No, I never noticed that. Are you speaking with respect to my ATLAS framework? The "X" appears disabled there to start with on my system. But then, my create event disables the "X" before the window is made visible… This might be kinda hard to achieve with the Print Preview window…

Gerald

View this thread on the Works forum...

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