Try this:
1. Declare a shared variable in the window, initialized to zero.
2. In the pfc_preopen event, increment the variable.
3. In the pfc_preopen, after the increment, check if the value
is greater than one. If so, post the pfc_close() event.
4. In the pfc_postopen, if the value is greater than 1, return without
doing anything.
5. In the close event, decrement the variable.
The window will appear, then disappear, but there will be only one of it.
--dang
-----Original Message-----
From: Rendra Yap [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 21, 1999 21:27
To: PBPFC Mailing List (E-mail); PFC mailing list (E-mail)
Subject: PFCSIG How to open only a window with of_message()
I''ve a problem with opening window from menu. I want to open only one the
same window.
That why I can't use the of_message() function. If I use of_message()
function, I can open the same window several times. but in the fact I only
want to open that window once.
Can you help me to solve this problem ? maybe with changing at of_message()
function, I think.
And I already tried with Opensheet(), and the menu for first window and
second window exactly same, If I disable m_file menu at first window, and I
went to second window that menu disable too. And I think that menu only has
one instance.
Regards,
Rendra Yap
Bussiness Development System
PT. Surabaya Agung Industri Pulp & Kertas
E-mail : [EMAIL PROTECTED]
ICQ # 37557798
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]