FORM-Focus difference
Posted: Mon Apr 24, 2017 8:49 pm
Hi
Please tell me about focus.
The condition of Evtroutine is push button and F10.
The same processing content, but the result is different.
Please tell me the reason why it is not the same.
* **************************************************
*
* COMPONENT: STD_FORM
*
* **************************************************
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientwidth(484) Clientheight(302) Left(794) Top(269) Formposition(ScreenCenter) Height(341)
Define_Com Class(#FLDA.Visual) Name(#FLDA) Componentversion(1) Displayposition(1) Height(23) Left(40) Parent(#COM_OWNER) Tabposition(1) Top(16) Usepicklist(False) Width(343) Caption('FLDA') Labeltype(Caption)
Define_Com Class(#FLDB.Visual) Name(#FLDB) Componentversion(1) Displayposition(2) Height(23) Left(40) Parent(#COM_OWNER) Tabposition(2) Top(48) Usepicklist(False) Width(343) Caption('FLDB') Labeltype(Caption)
Define_Com Class(#PRIM_PHBN) Name(#PHBN_2) Displayposition(3) Left(16) Parent(#COM_OWNER) Tabposition(3) Top(120) Caption('1.Set_Error For_Field(#FLDA #FLDB) 2.#FLDA.setfocus F10Key') Width(449)
Define_Com Class(#PRIM_STPG) Name(#STPG_2) Parent(#COM_OWNER) Shortcut(F10)
Evtroutine Handling(#com_owner.Initialize)
Set Com(#com_owner) Caption(*component_desc)
Endroutine
Evtroutine Handling(#PHBN_2.Click #STPG_2.Pressed)
Begincheck
Set_Error For_Field(#FLDA #FLDB)
#FLDA.setfocus
Endcheck
Endroutine
End_Com
I appreciate your kind advice.
Best Regards,
Shumpei
Please tell me about focus.
The condition of Evtroutine is push button and F10.
The same processing content, but the result is different.
Please tell me the reason why it is not the same.
* **************************************************
*
* COMPONENT: STD_FORM
*
* **************************************************
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientwidth(484) Clientheight(302) Left(794) Top(269) Formposition(ScreenCenter) Height(341)
Define_Com Class(#FLDA.Visual) Name(#FLDA) Componentversion(1) Displayposition(1) Height(23) Left(40) Parent(#COM_OWNER) Tabposition(1) Top(16) Usepicklist(False) Width(343) Caption('FLDA') Labeltype(Caption)
Define_Com Class(#FLDB.Visual) Name(#FLDB) Componentversion(1) Displayposition(2) Height(23) Left(40) Parent(#COM_OWNER) Tabposition(2) Top(48) Usepicklist(False) Width(343) Caption('FLDB') Labeltype(Caption)
Define_Com Class(#PRIM_PHBN) Name(#PHBN_2) Displayposition(3) Left(16) Parent(#COM_OWNER) Tabposition(3) Top(120) Caption('1.Set_Error For_Field(#FLDA #FLDB) 2.#FLDA.setfocus F10Key') Width(449)
Define_Com Class(#PRIM_STPG) Name(#STPG_2) Parent(#COM_OWNER) Shortcut(F10)
Evtroutine Handling(#com_owner.Initialize)
Set Com(#com_owner) Caption(*component_desc)
Endroutine
Evtroutine Handling(#PHBN_2.Click #STPG_2.Pressed)
Begincheck
Set_Error For_Field(#FLDA #FLDB)
#FLDA.setfocus
Endcheck
Endroutine
End_Com
I appreciate your kind advice.
Best Regards,
Shumpei