发布于 2005-09-19 12:59:18
0楼
论坛上有一个关于buttonup不工作的问题:
"Button up" doesn't work after calling a standard function.
QUESTION:
Why is the first mouse click ignored when I execute one of the functions listed below via a button?
ANSWER:
If you execute one of the functions listed below via a button, then a box opens. When you close the box again, the button is displayed as being pressed as soon as you position the mouse pointer on it. The first mouse you use to close the box is ignored and thus ensures that the button behaves "normally" again.
This effect happens with the following standard functions:
OnBtnComment
OnBtnEmergAckn
OnBtnInfo
OnBtnLock
OnBtnSelect
TlgTableWindowPressOpenArchiveVariableSelectionDlgButton
TlgTableWindowPressOpenDlgButton
TlgTableWindowPressOpenItemSelectDlgButton
TlgTableWindowPressOpenTimeSelectDlgButton
TlgTrendWindowPressHelpButton
TlgTrendWindowPressOpenArchiveVariableSelectionDlgButton
TlgTrendWindowPressOpenDlgButton
TlgTrendWindowPressOpenItemSelectDlgButton
TlgTrendWindowPressOpenTimeSelectDlgButton
When a dialog box opens, the dialog box manager takes the OnButtonUp message out of the processing loop, which is why the button remains pressed.
Remedy:
Use the mouse click event for window commands and not "press left" or "press right".
Entry ID:715336 Date:01/18/1999
不知道你的程序是否是这种情况。