I tried the tutorial and it all works ok apart from when I press the OK button it thinks I also pressed the cancel button and aborts.
Having looked at the code it seems to be creating the variables for the buttons with the same code. This is from FF_InitializeVariables();
IDC_FRMLOGON_TXTUSERNAME = 1000
IDC_FRMLOGON_LBLUSERNAME = 1001
IDC_FRMLOGON_LBLPASSWORD = 1002
IDC_FRMLOGON_CMDOK = 1
IDC_FRMLOGON_TXTPASSWORD = 1004
IDC_FRMLOGON_CMDCANCEL = 1
I can't find any way in Firefly to set this so I assume they are generated by the compiler. Is it something I've done to cause this or is it a bug?
Thanks Dave, I'll look into it. I have also modified the first tutorial to use either the regular SDK programming or the new wrapper functions. I think that this may have been an issue that I fixed some time ago but maybe the tutorial did not reflect the changes.
Also, as an aside, in the future I will distributing the tutorials as part of the FireFly package.
I just noticed something while playing with the cancel option after seeing this. Disabling the button that is cancel and closing the form at runtime doesn't beep! Must have been a DDT thing. Now I can change my form back to how it was.