hi,
how can i use Keyboard ENTER instead of "DblClick"
XBROWSER aList TITLE "Double-Click to Open" SETUP()
- nageswaragunupudi
- Posts: 10701
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 3 times
- Contact:
Re: XBROWSER aList TITLE "Double-Click to Open" SETUP()
Code: Select all | Expand
SETUP ( oBrw:bKeyDown := { |k| If( k == 13, ( msginfo( "action" ) ), 0 ), nil)}
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: XBROWSER aList TITLE "Double-Click to Open" SETUP()
hi
thx for Answer
i want to use it for Sample c:\fwh\samples\testpgre.prg
how do i get "select" line with "Tablename" ( o:Value )
thx for Answer
i think there is a ",0)" to much, ornageswaragunupudi wrote:Code: Select all | Expand
SETUP ( oBrw:bKeyDown := { |k| If( k == 13, ( msginfo( "action" ) ), 0 ), nil)}
Code: Select all | Expand
SETUP( oBrw:bKeyDown := { |k| If( k == 13, (msginfo("action") ), nil ) } )
Code: Select all | Expand
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 ) }
greeting,
Jimmy
Jimmy
Re: XBROWSER aList TITLE "Double-Click to Open" SETUP()
Dear Jimmy, use clause SELECT ( look .\include\xbrowse.ch )
https://forums.fivetechsupport.com/view ... 299#p63528
https://forums.fivetechsupport.com/view ... 299#p63528
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Re: XBROWSER aList TITLE "Double-Click to Open" SETUP()
hi,
thx for Answaer
but i need a PRIVATE to get it work ... is there a better Solution
thx for Answaer
as i "just" want it when ENTER i have made this CODEcnavarro wrote:use clause SELECT ( look .\include\xbrowse.ch )
Code: Select all | Expand
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) } )
greeting,
Jimmy
Jimmy
- nageswaragunupudi
- Posts: 10701
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 3 times
- Contact:
Re: XBROWSER aList TITLE "Double-Click to Open" SETUP()
This is what Mr. Cristobal advises:
Code: Select all | Expand
XBROWSER aList TITLE "Tables" ;
SETUP ( oBrw:cHeaders := { "TABLE" } ) ;
SELECT oPgu:UseTable( oCol:Value )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: XBROWSER aList TITLE "Double-Click to Open" SETUP()
hi,
thx for Answer
thx for Answer
ok, that Syntax worknageswaragunupudi wrote:This is what Mr. Cristobal advises:
greeting,
Jimmy
Jimmy