dcget mouse only

This forum is for eXpress++ general support.
Post Reply
Message
Author
bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

dcget mouse only

#1 Post by bwolfsohn »

I have a dcget checkbox in the middle of a getlist. How do i restrict access to this get to the mouse only.. i.e. enter, tab, up and down arrows should skip this get...

TIA
Brian
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

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

Re: dcget mouse only

#2 Post by rdonnay »

I'll see if I can find a workaround for you and write a sample.
The eXpress train is coming - and it has more cars.

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

Re: dcget mouse only

#3 Post by rdonnay »

The best way to handle this is to add a new feature to eXpress++.
All eXpress++ GUI classes inherit from DC_XbaseParts(). This class now includes a new iVar: isNoEditNavKey

Assigning a .T. to this iVar will give you the behavior you want.
Changes were required to _DCGETBX.PRG and _DCCLASS.PRG (attached)

Code: Select all

#INCLUDE "dcdialog.CH"
#INCLUDE "appevent.CH"

FUNCTION Main()

LOCAL GetList[0], cGet, lGet, GetOptions

cGet := Space(10)
lGet := .f.

@ 0,0 DCGET cGet

@ 1,0 DCGET cGet

@ 2,0 DCGET lGet EVAL {|o|o:isNoEditNavKey := .t.}

@ 3,0 DCGET cGet

@ 4,0 DCGET cGet

DCGETOPTIONS CHECKGET

DCREAD GUI FIT TITLE 'Navigation Test' OPTIONS GetOptions ;

RETURN nil

* ---------

PROC appsys ; return
Attachments
NoEditNavKey.zip
(121.74 KiB) Downloaded 597 times
The eXpress train is coming - and it has more cars.

Post Reply