GET ACTION SetFocus() question?

GET ACTION SetFocus() question?

Postby dutch » Wed Mar 04, 2009 7:23 pm

Dear Antonio,

Code: Select all  Expand view
METHOD CreateButton() CLASS TGet
   local oThis := Self
   if ValType( ::bAction ) == "B" .and. Upper( ::ClassName() ) == "TGET"
      if Empty( ::cBmpName )
         @ 0, ::nWidth - ::nHeight BUTTONBMP ::oBtn OF Self ;
         ACTION ( Eval( oThis:bAction, oThis ) ) ;        //, oThis:SetFocus() ) ;
 


I've modified ACTION line by remove oThis:SetFocus(). Because :
I need to set another function to be effect after first function. Because oThis:SetFocus() will ignore second function after first function such as
Code: Select all  Expand view

@ 1, 10 GET oGet[1] VAR cVar[1] ACTION (Func(), oGet[2]:SetFocus())
@ 2, 10 GET oGet[2] VAR cVar[2]
 


but when I remove oThis:SetFocus(). If oGet[1] has only one function, the BUTTON at oGet[1] will be focus. I don't need to focus at BUTTON.

Code: Select all  Expand view

@ 1, 10 GET oGet[1] VAR cVar[1] ACTION (Func())
@ 2, 10 GET oGet[2] VAR cVar[2]
 


How can I cancel TABSTOP at BUTTON in TGET:CreateButton() by without oThis:SetFocus().

PS. It work fine if I :SetFocus() after first function.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / 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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: GET ACTION SetFocus() question?

Postby Antonio Linares » Sun Mar 08, 2009 9:21 am

Dutch,

Please use:

oGet[1]:oJump := oGet[2]
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests