Information générale
Catégorie:
Codage, syntaxe et commandes
No effect.Just double the event fired but nothing.
There is a diference of events fired between TAB and setfocus() behaviour.
The events for setfocus() are: (with this.setfocus in getfocus)
53434.426, frmjurnalecb.pageframe1.page1.txtnrdocument.When()
53434.426, frmjurnalecb.pageframe1.page1.txtnrdocument.RangeLow()
53434.426, frmjurnalecb.pageframe1.page1.txtnrdocument.RangeHigh()
53434.426, frmjurnalecb.pageframe1.page1.txtnrdocument.Valid()
53434.426, frmjurnalecb.pageframe1.page1.txtnrdocument.GotFocus()
53434.436, frmjurnalecb.pageframe1.page1.txtnrdocument.Message()
53434.436, frmjurnalecb.pageframe1.page1.txtnrdocument.When()
53434.456, frmjurnalecb.pageframe1.page1.txtnrdocument.RangeLow()
53434.466, frmjurnalecb.pageframe1.page1.txtnrdocument.RangeHigh()
53434.486, frmjurnalecb.pageframe1.page1.txtnrdocument.Valid()
53434.496, frmjurnalecb.pageframe1.page1.txtnrdocument.GotFocus()
53434.526, frmjurnalecb.pageframe1.page1.txtnrdocument.Message()
and for TAB there are missing RangeLow, RangeHigh and Valid. Anyway in this events there are no custom code.
>Hi
>
>Try this.SetFocus() in GotFocus() event code
>
>>Hi,
>>
>>I have textbox with SelectOnEntry=.t.
>>When TAB to it gets entire text selected -> ok.
>>When Click to it it's selected ->ok.
>>When issue in code setfocus() the text is not selected; Why?
>>I try to put in gotfocus() selstart=0 and sellenght=len('text') and no change.
>>I put selstart=0 and sellenght=len('text') in code after setfocus and no efect.
>>What I am missing here?
>>
>>Thanks.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement