ComboBox GetKeyChar() Method

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

ComboBox GetKeyChar() Method

Post by fraxzi »

Hi All,

I noticed that TComboBox:nAt is not updated when GetKeyChar() hit a match ...
It would be handy though ...

So when user press char in oCbx:oGet and hit a match, we can retrieve other info relative to oCbx:nAt from another array...
Like 'name' in oCbx:aItem to var1 and aAddr[ oCbx:nAt ] to var2 and so on ...

Any thoughts :?:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: ComboBox GetKeyChar() Method

Post by fraxzi »

I added and tested this lines which serves the purpose..
i dunno if I made it right or any other ways so I can avoid modifying the original ComboBox source if any? ... I mean, I tried several ways as well..

Image

Anyone with better idea :idea: :?:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: ComboBox GetKeyChar() Method

Post by fraxzi »

Much better ...

Code: Select all

...
            If ::bChange <> NIL 
               ::Select( nAt ) 
               Eval( ::bChange, Self, ::VarGet() )
            End
...
 
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Post Reply