TorbenKoch
08-25-2005, 02:56 AM
Setup Factor 7.0.3
Just wondering. This code on an Edit Fields screen On Ctrl Message event:
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
Only shows the first Dialog box. But 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
Shows both dialog boxes. Is this a bug? Or what is the reasoning behind this?
This:
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
Does not show anything. Neither does this:
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
I just don't get it :huh
And just to wrap it up:
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
only shows the first message. That seems pretty weird to me
:huh :huh
Just wondering. This code on an Edit Fields screen On Ctrl Message event:
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
Only shows the first Dialog box. But 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
Shows both dialog boxes. Is this a bug? Or what is the reasoning behind this?
This:
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
Does not show anything. Neither does this:
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
I just don't get it :huh
And just to wrap it up:
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
only shows the first message. That seems pretty weird to me
:huh :huh