ComboBox GetKeyChar() Method

ComboBox GetKeyChar() Method

Postby fraxzi » 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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: ComboBox GetKeyChar() Method

Postby fraxzi » Wed Sep 26, 2018 1: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..

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

Re: ComboBox GetKeyChar() Method

Postby fraxzi » Wed Sep 26, 2018 1:47 am

Much better ...

Code: Select all  Expand view

...
            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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests