Not move cursor from get

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Not move cursor from get

#1 Post by digitsoft »

Hi Roger
As I can make the cursor up and down do not move from the get
Nolberto Paulino
Regards

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

Re: Not move cursor from get

#2 Post by rdonnay »

This is the default behavior because it was inherited from ReadModal() in Clipper.

You can override this behavior with a custom handler.

Code: Select all

DCREAD GUI .. HANDLER myHandler


STATIC FUNCTION myHandler( nEvent, oXbp, mp1, mp2 )

IF nEvent == xbeP_Keyboard .AND. oXbp:isDerivedFrom('DC_XbpGet') .AND. mp1 $ { xbeK_UP, xbeK_DOWN }
  RETURN DCGUI_IGNORE
ENDIF

RETURN DCGUI_NONE 
If you want this to be the new default for all windows, Use the function DC_ReadGuiHandler().
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Not move cursor from get

#3 Post by digitsoft »

Hi Roger
No work

@ 0.00,00.3 DCSAY ""
@ 0.5,00.3 DCSAY "Buscar:" GET cSeekData PICT "@!k" ;
GETPOS IIF(!EMPT(aRutaBitMap),0.4,0.4),06.2 ;
GETSIZE nAncho-IIF(!EMPT(aRutaBitMap),17,06) ;
GETOBJECT oSeekData ;
KEYBLOCK {|a,b,o|Pop_BrowseKeySeek(GetList, a,b,o, @oDataBase, @oPop_Browse, cDataBase, cFields, cOrderBy, cWhere ), IIF(EMPT(cSeekData ),SetAppFocus( oSeekData ),NIL) }

@ 2.0,00.3 DCSAY "Ordenado Por:" FONT "09.Arial Bold"
@ 1.8,13.0 DCCOMBOBOX cOrderBy LIST aOrderBy TYPE XBPCOMBO_DROPDOWNLIST SIZE 25.0,10.0 COLOR GRA_CLR_BLUE,GRA_CLR_WHITE ;
ITEMSELECTED {|| SQLSort( GetList, oDataBase, oPop_Browse, ALLTRIM(RIGHT(cOrderBy,15))) }

DCREAD GUI FIT MODAL TITLE cTitulo OPTIONS GetOptions SETAPPWINDOW TO lOk PARENT @__oDlg ;
eval {|o| IIF(VALTYPE(oBitMapMarco) = "O", DC_BitMapDraw( oBitMapObject, eval(RutaBitMap( oDataBase, aFields[1][1], aRutaBitMap )) ), ),;
SetAppFocus( oSeekData ) } ;
HANDLERBLOCK {|a,b,c,d,e| myHandler(a,b,c,d,e) }
Nolberto Paulino
Regards

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

Re: Not move cursor from get

#4 Post by rdonnay »

IF nEvent == xbeP_Keyboard .AND. (oXbp:isDerivedFrom('DC_XbpGet') .OR. oXbp:isDerivedFrom('DC_XbpComboBox')) .AND. mp1 $ { xbeK_UP, xbeK_DOWN }
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Not move cursor from get

#5 Post by digitsoft »

Hola Roger
I look at the Error
Attachments
Error.jpg
Error.jpg (317.52 KiB) Viewed 9090 times
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Not move cursor from get

#6 Post by digitsoft »

thanks roger
I solved the problem and the parameters are incorrect
STATIC FUNCTION myHandler (nEvent, mp1, mp2, oXbp, oDlg)
Nolberto Paulino
Regards

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

Re: Not move cursor from get

#7 Post by rdonnay »

I solved the problem and the parameters are incorrect
Sorry. I forgot the order of the parameters.
The eXpress train is coming - and it has more cars.

Post Reply