Popup() Function Not Working (OpenInsight Specific)
At 26 FEB 1998 02:21:35PM Bryan Feddish wrote:
I have a stored procedure that calls the Popup() function. This SP is called from 2 different windows but in the exact same way. From the first window the Popup function works fine but on the second, calling Popup does nothing. Nothing apears, if I step through the debugger it just steps right over the fuction. I've even tried hard coding the parameters to be sure and it still does not pop up. Any suggestions?
Thanks,
Bryan
At 26 FEB 1998 02:32PM Dave Pociu wrote:
I had something similar happen (although I cannot remember if it was popup or msg) .
Basically, it was the status flag that was getting set by a routine call that returned an error a few lines above. As soon as I force-cleared it with set_status, everything worked normally again.
Maybe you're seeing the same thing. Just a thought…
At 26 FEB 1998 05:39PM Don Bakke wrote:
Bryan,
Depending on the version of OI, the problem may have to do with one of your windows being an MDI child. Dialog boxes require the MDI Frame to be the parent. If this is the case you need to get the MDIFRAME property of @Window and pass that into your popup function call.
At 26 FEB 1998 10:11PM Mike Ruane wrote:
Bryan-
Check the Parent parameter in both. Something is different, and it's probably a missing or incorrect parent.
Hope it helps-
Mike
At 26 FEB 1998 11:33PM Skip Tinnell wrote:
I too have had something similar happen. I looked at the source code and found that if PS_Set_Property returned a Handle for Popup, the function immediiately returns. Checking OBJECTLIST with Utility showed that there was a POPUP object still in the list, although the popup had been closed normally. Using Utility to DESTROY POPUP enabled the call to Popup in my program to work. However, I can't consistently reproduce the situation that led to the POPUP object persisting, although this has occurred a couple of times..