XBROWSER aList TITLE "Double-Click to Open" SETUP()
Posted: Fri Jul 21, 2023 6:54 am
hi,
how can i use Keyboard ENTER instead of "DblClick"
how can i use Keyboard ENTER instead of "DblClick"
www.FiveTechSoft.com
https://fivetechsupport.com/forums/
https://fivetechsupport.com/forums/viewtopic.php?f=3&t=43492
SETUP ( oBrw:bKeyDown := { |k| If( k == 13, ( msginfo( "action" ) ), 0 ), nil)}
i think there is a ",0)" to much, ornageswaragunupudi wrote:
- Code: Select all Expand view
SETUP ( oBrw:bKeyDown := { |k| If( k == 13, ( msginfo( "action" ) ), 0 ), nil)}
SETUP( oBrw:bKeyDown := { |k| If( k == 13, (msginfo("action") ), nil ) } )
XBROWSER aList TITLE "Double-Click to Open" SETUP ( ;
oBrw:cHeaders := { "TABLE" }, ;
oBrw:aCols[ 1 ]:bLDClickData := { |r,c,f,o| ShowTable( o:Value ) } ,;
oBrw:bKeyDown := {|k| If( k == 13, (msginfo("action") ), nil ) }
cnavarro wrote:use clause SELECT ( look .\include\xbrowse.ch )
MEMVAR oValue
PRIVATE oValue
XBROWSER aList TITLE "Double-Click to Open" ;
SETUP( oBrw:lCanPaste := .t., ;
oBrw:cHeaders := { "TABLE" }, ;
oBrw:aCols[ 1 ] :bLDClickData := { | r, c, f, o | oPGU:UseTable( o:Value ) } ,;
oValue := oBrw ,;
oBrw:bKeyDown := { |k, nFlag| If( k == 13, ;
( xValue := oValue:aCols[ 1 ]:Value ,;
SELECT ( oPGU:UseTable(xValue) ) ) ,;
NIL) } )
XBROWSER aList TITLE "Tables" ;
SETUP ( oBrw:cHeaders := { "TABLE" } ) ;
SELECT oPgu:UseTable( oCol:Value )
nageswaragunupudi wrote:This is what Mr. Cristobal advises: