GET and XBROWSE Control's Navigation Problem

GET and XBROWSE Control's Navigation Problem

Postby shri_fwh » Sun Nov 04, 2012 1:21 pm

Hi ,

I am using MDI Child Window in that there are 5 GETs ,2 XBROWSEs and 2 Buttons controls defined. The navigation sequence is given below and the expected navigation is when control moves from 5 GET (g5) the next control XBROWSE object should get focused. But the Button Control is getting focus. Please guide me to solve this issue. Thanks in advance..!

@10,10 get aoGET[1] var g1
@30,10 get aoGET[2] var g2
@50,10 get aoGET[3] var g3
@70,10 get aoGET[4] var g4
@90,10 get aoGET[5] var g5 --> Control is moving to "Save" Button but it should move to Browse oBrw1 Control.

@120,10 XBROWSE oBrw1
@220,10 XBROWSE oBrw2

@410,10 BUTTONBMP aoGET[ 11 ] PROMPT "&Save"
@410,150 BUTTONBMP aoGET[ 12 ] PROMPT "&Quit"

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: GET and XBROWSE Control's Navigation Problem

Postby shri_fwh » Sun Nov 04, 2012 2:27 pm

Hi ,

I tried so many things but without success. Could you please let me know how can handle this problem ?

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: GET and XBROWSE Control's Navigation Problem

Postby kok joek hoa » Sun Nov 04, 2012 2:39 pm

Hi Shri,

Try :


@10,10 get aoGET[1] var g1
@30,10 get aoGET[2] var g2
@50,10 get aoGET[3] var g3
@70,10 get aoGET[4] var g4
@90,10 get aoGET[5] var g5 --> Control is moving to "Save" Button but it should move to Browse oBrw1 Control.

aoGET[5]:blostfocus :={|| aoGET[5]:ojump := obrw1 , obrw1:setfocus() ,obrw1:refresh() }

@120,10 XBROWSE oBrw1
@220,10 XBROWSE oBrw2

@410,10 BUTTONBMP aoGET[ 11 ] PROMPT "&Save"
@410,150 BUTTONBMP aoGET[ 12 ] PROMPT "&Quit"

regards,
kok
kok joek hoa
 
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm

Re: GET and XBROWSE Control's Navigation Problem

Postby shri_fwh » Sun Nov 04, 2012 3:54 pm

Hi Kok ,

I tried this and Its working. :D But for backward navigation it does not work. Currently I am using this code. Thanks a lot..!

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 128 guests