Keyboard tagging

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
sdenjupol148
Posts: 151
Joined: Thu Jan 28, 2010 10:27 am
Location: NYC

Keyboard tagging

#1 Post by sdenjupol148 »

Roger,

I have been using the TAGENABLE cluase of DCBROWSE and it works nicely.
I've written a Tag handler routine that allows the user to use keyboard tagging shortcuts.
Can you add this to the TAGENABLE feature of DCBROWSE.
I've included a snippet of the code below to give you an idea of what I mean.

Bobby

Code: Select all

*--------------------------------------
function TagArrayHandler( nEvent, mp1, mp2, oXbp, oDialog, Getlist, aRef )

IF nEvent == xbeP_Keyboard
  IF mp1 = xbeK_CTRL_DOWN
    aRef[2,aRef[1]:cargo[4],aRef[3]] := IIF(aRef[2,aRef[1]:cargo[4],aRef[3]] == "Y", " ", "Y" )
    aRef[1]:refreshCurrent()
    PostAppEvent( xbeP_Keyboard, xbeK_DOWN, nil, oXbp )
  ELSEIF mp1 = xbeK_CTRL_UP
    aRef[2,aRef[1]:cargo[4],aRef[3]] := IIF(aRef[2,aRef[1]:cargo[4],aRef[3]] == "Y", " ", "Y" )
    aRef[1]:refreshCurrent()
    PostAppEvent( xbeP_Keyboard, xbeK_UP, nil, oXbp )
  ELSEIF mp1 == xbeK_SPACE
    aRef[2,aRef[1]:cargo[4],aRef[3]] := IIF(aRef[2,aRef[1]:cargo[4],aRef[3]] == "Y", " ", "Y" )
    aRef[1]:refreshCurrent()
  ENDIF
ENDIF

RETURN DCGUI_NONE

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

Re: Keyboard tagging

#2 Post by rdonnay »

Here's the change you requested.
That was a good idea.

Copy _DCXBROW.PRG to \exp19\source\dclipx and run build19_sl1.bat to rebuild dclipx.dll
Attachments
_dcxbrow.zip
Browsing tagging with keyboard
(20.67 KiB) Downloaded 755 times
The eXpress train is coming - and it has more cars.

User avatar
sdenjupol148
Posts: 151
Joined: Thu Jan 28, 2010 10:27 am
Location: NYC

Re: Keyboard tagging

#3 Post by sdenjupol148 »

Roger,

Thanks!
Works great and fast.
I realize however that there is no way to tag all or untag all.
Instead of writing a lot of right click popup menu code, how about using CTRL_INS for tag all and CTRL_DEL for untag all?

Bobby

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

Re: Keyboard tagging

#4 Post by rdonnay »

Here it is.
Attachments
_dcxbrow.zip
Browse tagging all
(20.79 KiB) Downloaded 753 times
The eXpress train is coming - and it has more cars.

Post Reply