Setup Factor 7.0.3
Just wondering. This code on an Edit Fields screen On Ctrl Message event:
Only shows the first Dialog box. But this codeCode:if (e_CtrlID == CTRL_BUTTON_01) then Dialog.Message("Test", "CTRL_BUTTON_01", MB_OK, MB_ICONEXCLAMATION); if (e_MsgId == MSGID_CLICKED) then Dialog.Message("Test", "MSGID_CLICKED", MB_OK, MB_ICONEXCLAMATION); end end
Shows both dialog boxes. Is this a bug? Or what is the reasoning behind this?Code:if (e_MsgId == MSGID_CLICKED) then Dialog.Message("Test", "MSGID_CLICKED", MB_OK, MB_ICONEXCLAMATION); end if (e_CtrlID == CTRL_BUTTON_01) then Dialog.Message("Test", "CTRL_BUTTON_01", MB_OK, MB_ICONEXCLAMATION); end
This:
Does not show anything. Neither does this:Code:if ((e_CtrlID == CTRL_BUTTON_01) and (e_MsgId == MSGID_CLICKED)) then Dialog.Message("Test", "CTRL_BUTTON_01", MB_OK, MB_ICONEXCLAMATION); Dialog.Message("Test", "MSGID_CLICKED", MB_OK, MB_ICONEXCLAMATION); end
I just don't get itCode:if (e_MsgId == MSGID_CLICKED) then Dialog.Message("Test", "MSGID_CLICKED", MB_OK, MB_ICONEXCLAMATION); if (e_CtrlID == CTRL_BUTTON_01) then Dialog.Message("Test", "CTRL_BUTTON_01", MB_OK, MB_ICONEXCLAMATION); end end
And just to wrap it up:
only shows the first message. That seems pretty weird to meCode:if (e_CtrlID == CTRL_BUTTON_01) then Dialog.Message("Test", "CTRL_BUTTON_01", MB_OK, MB_ICONEXCLAMATION); end if (e_MsgId == MSGID_CLICKED) then Dialog.Message("Test", "MSGID_CLICKED", MB_OK, MB_ICONEXCLAMATION); end
![]()
![]()

).
