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.
DESIGN HOTKEY in dc_GetOptDefaults
DESIGN HOTKEY in dc_GetOptDefaults
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: DESIGN HOTKEY in dc_GetOptDefaults
Hi Regan,
I think your need DC_DotHotKey(0).
I think your need DC_DotHotKey(0).
Re: DESIGN HOTKEY in dc_GetOptDefaults
That has been at the top of my application for ages and it makes no difference.skiman wrote:Hi Regan,
I think your need DC_DotHotKey(0).
Only the fix I have mentioned works.
I'm just not entirely sure if it's the right thing to do to set the hotkey to ZERO.
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: DESIGN HOTKEY in dc_GetOptDefaults
Regan -
What build of eXpress++ are you using?
I don't understand how the DESIGN system can come up if you don't set DESIGN mode in DCGETOPTIONS.
We should have a Teamviewer session on this.
What build of eXpress++ are you using?
I don't understand how the DESIGN system can come up if you don't set DESIGN mode in DCGETOPTIONS.
We should have a Teamviewer session on this.
The eXpress train is coming - and it has more cars.
Re: DESIGN HOTKEY in dc_GetOptDefaults
I am using eXPress++ (c) Version 2.0 Build 262. I had problems using Build 265 so had to go back and haven't had a chance to sort it out yet.rdonnay wrote:Regan -
What build of eXpress++ are you using?
I don't understand how the DESIGN system can come up if you don't set DESIGN mode in DCGETOPTIONS.
We should have a Teamviewer session on this.
But before we go down the TeamViewer road, here's a small test program.
Could you run it and see what happens on your system? I have attached the 2 screens I see when I press Alt-D in the test program.
- Attachments
-
- Error shown on 2nd press of Alt-D.PNG (10.25 KiB) Viewed 11728 times
-
- Popup shown on 1st press of Alt-D.PNG (5.53 KiB) Viewed 11728 times
-
- Alt-D-Test.zip
- (956 Bytes) Downloaded 839 times
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: DESIGN HOTKEY in dc_GetOptDefaults
Your sample works exactly as it should.
Alt-D only invokes DC_Dot() window.
I'm afraid that we will need to connect via Teamviewer so I can see why this is happening for you but not for anyone else.
Alt-D only invokes DC_Dot() window.
I'm afraid that we will need to connect via Teamviewer so I can see why this is happening for you but not for anyone else.
The eXpress train is coming - and it has more cars.