FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GET ACTION does not response :SetFocus()
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
GET ACTION does not response :SetFocus()
Posted: Fri Jan 16, 2009 09:35 PM
Dear Antonio,

   REDEFINE GET oGet[2] VAR dEXPIRE     ID 102 OF oDlg ;  // BTNGET
            VALID  (dEXPIRE>date().or.empty(dEXPIRE)) ;
            ACTION (MsgDate2( oGet[2], dEXPIRE ), oGet[3]:SetFocus())


oGet[3]:SetFocus() is not excute. The focus is still on oGet[2].

Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: GET ACTION does not response :SetFocus()
Posted: Fri Jan 16, 2009 10:03 PM
Dear Dutch,

This part of source corresponding to your expectations

This remove the valid of button action:
::oBtn:lCancel = .T. // so the GET VALID is not fired when the button is focused

and this "oThis:SetFocus()" automatically set the focus to the parent control, in this case is the get object!
ACTION ( Eval( oThis:bAction, oThis ), oThis:SetFocus() ) ;
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: GET ACTION does not response :SetFocus()
Posted: Sat Jan 17, 2009 05:30 PM

Dear JC,

Thanks, it works as my response now.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion