Page 1 of 1

DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Thu Feb 06, 2020 1:08 pm
by PedroAlex
Roger,

The new DcPushButtonXP DelayAction Reacts by pressing Enter Key.
This is not correct.

Run the sample click in any button and than Press de keyboard Key Enter.
You will see That happen the delayaction be activated.
it is possible to avoid this?

The correct is :
When press the Enter Key the action of the button in focus must be activated and not the delayaction!

Many thanks..

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 7:50 am
by rdonnay
I do not have this problem.

When I run ..\samples\buttonxp\buttondelay.exe, everything works as expected.

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 8:06 am
by PedroAlex
Roger,

Do this :

click on button Test 4.
The action 1 is activated.
Click Ok on the action 1 box.
The box is closed and the focus stay on button test 4.
thain press Enter on the Keyboard, the action 2 is activated.

eXpress 267 and xbase 2.0.1176 / win 10 1909.

can you confirm this behavior ? or not?

Thanks.

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 8:09 am
by rdonnay
Ok, I see now.
I thought that you said there was a delay after hitting enter.

Fix is attached.

Copy _DCXBUTT.PRG to ..\source\dclipx
Run BUILD20.BAT to rebuild DCLIPX.DLL.

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 11:09 am
by PedroAlex
Roger,

Now it is ok.

Thanks..

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 11:51 am
by PedroAlex
Roger,

Sorry, but now when click on DcPushButtonXP 'Test1' a DEbug screen pops up.

Something you forgot to disable!
can you tell me where and what?

thanks..

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 11:58 am
by PedroAlex
Roger,
Forget.


I think I found

_Dcxbutt.prg
Line 150

//wtf ::actionStart2

Correct?

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Fri Feb 07, 2020 1:26 pm
by rdonnay
Oops. I forgot about that.
I took it out of my source file.

Re: DcPushButtonXP .. DelayAction Reacts by pressing Enter

Posted: Sat Feb 08, 2020 1:26 pm
by hz_scotty
Line 1560 in _dcxbutt.prg not 150 :clap: