FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ComboBox GetKeyChar() Method
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
ComboBox GetKeyChar() Method
Posted: Wed Sep 26, 2018 12:22 AM

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
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: ComboBox GetKeyChar() Method
Posted: Wed Sep 26, 2018 01:34 AM
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..



Anyone with better 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
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: ComboBox GetKeyChar() Method
Posted: Wed Sep 26, 2018 01:47 AM
Much better ...

Code (fw): Select all Collapse
...
            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

Continue the discussion