Hi Everyone,
I hope you have had a good weekend!
In the dim and distant past I thought there was a method for disabling or hiding the “X” in the top right of a user created dialog, but I can’t find anything. There is a AlterMapinfoDialog but I am not sure if it will work on a user dialog and I have to get the ID of the dialog in any case.
Does anyone know if there is a function to do that or will I have to use the API in some way?
Many thanks
Regards
Martin Hodder
Higher Mapping Solutions
www.highermappingsolutions.com
This message originated Externally. Use proper judgement and caution with attachments, links, or responses. |
Hi Peter,
Thanks for replying.
There is something odd when the user uses the “X” in v2021 It seems to execute code after
If CommandInfo (CMD_INFO_DLG_OK) then
‘Code here is executed here even with the above statement’
End if
When the “X” should be cancel. It is really difficult to replicate it but I have had a user that it has happen to twice.
I thought it was easier to disable the “X” like you can on Map and other windows.
I will try a test program on some of the MI versions to see if I can replicate the issue.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/DE7A8D8D-4959-4579-960F-95A80A38B6A1%40precisely.com.