在Response - Powerbuilder中模拟窗口主要

时间:2017-10-28 01:53:49

标签: powerbuilder

窗口响应是否有效时是否可以模拟窗口主?我希望我的代码在window main中运行。

2 个答案:

答案 0 :(得分:1)

You can do this by passing a reference to your main window when you open the response window. See the OpenWithParm function in the help. This is not very good from an object-oriented perspective because in PowerBuilder all of the controls and events in the window are public. It would be best to put the code you want to run in a non-visual object that the window uses and pass a reference to that object.

答案 1 :(得分:0)

听起来你需要一个弹出窗口而不是一个响应窗口。响应窗口是模态的,将停止主窗口中任何代码的执行。