DESIGN HOTKEY in dc_GetOptDefaults
Posted: Wed Feb 07, 2018 5:55 am
A long time ago I asked about an error we were having in our application when the key Alt-D was pressed.
I never got around to getting a microphone / headphones combo to do a TeamViewer session with Roger, so this problem remained.
I received a request today to look into this again (I guess more users are using hotkeys these days...) as the Alt-D is also a menu shortcut and using it causes the issue to occur.
What seems to happen is that, even if I do not specify a DESIGN HOTKEY clause in our system, there is a default one set in the dc_GetOptDefaults array and because of that the DCREAD handler intercepts it and tries to call dc_designhandler. This works the first time Alt-D is pressed but pressing Alt-D again causes an error for some reason.
But I didn't want the design handler to be available at all.
Has anyone seen this problem? Or has it been fixed in a later eXpress++ version and I've missed it?
I fixed it by setting the nGETOPT_DESIGNKEY array element to 0 (I could not set it to NIL) in the array returned by dc_GetOptDefaults() at the start of our application.
I never got around to getting a microphone / headphones combo to do a TeamViewer session with Roger, so this problem remained.
I received a request today to look into this again (I guess more users are using hotkeys these days...) as the Alt-D is also a menu shortcut and using it causes the issue to occur.
What seems to happen is that, even if I do not specify a DESIGN HOTKEY clause in our system, there is a default one set in the dc_GetOptDefaults array and because of that the DCREAD handler intercepts it and tries to call dc_designhandler. This works the first time Alt-D is pressed but pressing Alt-D again causes an error for some reason.
But I didn't want the design handler to be available at all.
Has anyone seen this problem? Or has it been fixed in a later eXpress++ version and I've missed it?
I fixed it by setting the nGETOPT_DESIGNKEY array element to 0 (I could not set it to NIL) in the array returned by dc_GetOptDefaults() at the start of our application.