Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not select text at setfocus()
Message
From
07/10/2003 07:48:55
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
 
 
To
07/10/2003 07:26:54
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00835686
Message ID:
00835698
Views:
9
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform