Conversion from xharbour

142 views
Skip to first unread message

pcordonet

unread,
Jun 20, 2024, 6:04:57 AM (13 days ago) Jun 20
to Harbour Users
Hi, 
I'm moving from xharbour.

In xharbour i have HB_EXT_INKEY defined.

for example, key code of K_CTRL_E return 517,  but in harbour return 5

How to change this value?

Thank you.
Pere.



Francesco Perillo

unread,
Jun 20, 2024, 6:16:42 AM (13 days ago) Jun 20
to harbou...@googlegroups.com
If you alwasy use K_CTRL_E in your code, you should not have any problem...

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/b6b257b6-6bd8-4631-8737-c2f5881d6f4cn%40googlegroups.com.

pcordonet

unread,
Jun 20, 2024, 6:28:01 AM (13 days ago) Jun 20
to Harbour Users
Hi Francesco,
The problem is K_RIGHT and K_CTRL_E have the same value  5 

On xharbour K_RIGHT value is 5 and K_CTRL_E 517

How to diference this keys ?

Thanks for reply.
Pere

El dia dijous, 20 de juny del 2024 a les 12:16:42 UTC+2, Francesco Perillo va escriure:

Steve Litt

unread,
Jun 20, 2024, 8:08:34 AM (13 days ago) Jun 20
to harbou...@googlegroups.com
pcordonet said on Thu, 20 Jun 2024 03:04:56 -0700 (PDT)

>Hi,
>I'm moving from xharbour.

I'm just curious, what was your motivation to transition from xharbour
to harbour? I'm trying to decide which way to go, in light of the fact
that I'd like some of my applications to be GUI.

Thanks,

SteveT

Steve Litt

http://444domains.com

AL67

unread,
Jun 21, 2024, 1:56:24 AM (12 days ago) Jun 21
to Harbour Users
Change function INKEY() to  XHB_INKEY()   from   xhb.lib.
and add  #include   xhbinkey.ch   from  Harbour source:   core\contrib\xhb   ( #define  XHB_K_CTRL_E   517 )

Adam
Reply all
Reply to author
Forward
0 new messages