Page 1 of 1

TGet problems

Posted: Tue Mar 06, 2007 2:07 pm
by Gilbert
Hi all,

Starnge things are happening with some METHOD in TGet.

1. GetSel() always returns ``

2. GetSelPos() Always return nHi = 10, nLo = 10
so trying to use Copy(), Cut() and Paste() methods results in no results.

3. Application crashes with NO EXP. METHOD TGET:GETFOCUS
this method is used in at least two methods. Should`nt it be GotFocus()

4. Is using ::TControl:... result the same as Super:...

Regards,

Gilbert

Posted: Tue Mar 06, 2007 2:09 pm
by Antonio Linares
Gilbert,

Could you please provide a small sample to reproduce it ?

Posted: Tue Mar 06, 2007 2:30 pm
by Gilbert
Hi Antonio,


Found out that ::GetFocus() is not a valid method instead I used ::oGet:HasFocus() and worked OK

I will try to supply a code sample, this will be hard because my TGet is quite different than your`s.

Regards

Gilbert