DESIGN HOTKEY in dc_GetOptDefaults

This forum is for eXpress++ general support.
Post Reply
Message
Author
reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

DESIGN HOTKEY in dc_GetOptDefaults

#1 Post by reganc »

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.
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: DESIGN HOTKEY in dc_GetOptDefaults

#2 Post by skiman »

Hi Regan,

I think your need DC_DotHotKey(0).
Best regards,

Chris.
www.aboservice.be

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: DESIGN HOTKEY in dc_GetOptDefaults

#3 Post by reganc »

skiman wrote:Hi Regan,

I think your need DC_DotHotKey(0).
That has been at the top of my application for ages and it makes no difference.
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

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DESIGN HOTKEY in dc_GetOptDefaults

#4 Post by rdonnay »

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.
The eXpress train is coming - and it has more cars.

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: DESIGN HOTKEY in dc_GetOptDefaults

#5 Post by reganc »

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.
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.

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
Error shown on 2nd press of Alt-D.PNG (10.25 KiB) Viewed 10542 times
Popup shown on 1st press of Alt-D.PNG
Popup shown on 1st press of Alt-D.PNG (5.53 KiB) Viewed 10542 times
Alt-D-Test.zip
(956 Bytes) Downloaded 703 times
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DESIGN HOTKEY in dc_GetOptDefaults

#6 Post by rdonnay »

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.
The eXpress train is coming - and it has more cars.

Post Reply