Hello Everyone,
I just had about a 3 hour spat with MS 12. Let me say first that there may be more to this than I am currently aware of. And for the record.....
I LOVE MACRO SCHEDULER 12!!!
As far as I know the Dialog Property "ModalResult" is for backward compatability. I don't even bother with this property because I use Adddialoghandler. ModalResult is usually set to zero. It tells you what will happen if you change this property in the help.
There is also a property "Kind". I only know of this to be a property for buttons. And I don't believe this to be a backward compatability command. Yes, in a sense it could be, but not so much.
Well the property "Kind" allows you to create a type of button that is displayed with graphics. It gives a dialog a professional look and feel.
I use this mostly for the cancel button more than any other.
Ok. So I used it for my OK button. I was showing MS to someone. My dialog kept on exiting. I couldn't figure it out. I thought I must have forgot how to program in MS. My dialog was modal. So unless I specify for it to exit, it should remain in control and not close. But it was closing.
Alright here is why. The property "Kind" when you select type of button to be "OK" it changes the "ModalResult" to 1. Hence, because I am not using the old method of programming, my dialog exits.
Edit: The Following is not true. Read other posts for more.
I just discovered that the "Cancel" button does NOT change the "ModalResult" to 2. In fact, it doesn't change it at all. It stays set to zero. Which leads me to believe it is in-error that the "OK" type button changes the "ModalResult" to 1.
But if you have used this property or start using it, I thought this might be usefull information for all. As I am now bald.
