On Tue, 28 May 2013, Lorenzo Fiorini wrote:
Hi,
> In this last test I used the actual git plus some local changes:
> - #define HB_PP_MULTILINE_STRINGS in ppcore.c
> - #define HB_EXT_INKEY in
inkey.ch to fix things K_CTRL_C vs PgDn
This is not necessary in current GT code.
You can use new extended inkey codes which give much more power
flexibility then the old ones.
In this patch:
2013-04-22 15:38 UTC+0200 Przemyslaw Czerpak (druzus/at/
poczta.onet.pl)
I updated most important core GT drivers to work with new keyboard and
mouse code (in some spare time I'll update yet GTWIN, GTDOS and GTOS2).
Unlike the previous solution now all translations are done dynamically
and can be enabled by users which need extended key codes at runtime
so it's not necessary to create separate build for it.
If you enable HB_INKEY_EXT inkey mask (in 2-nd INKEY() parameter or by
_SET_EVENTMASK then you wil receive extended inkey code which contains
keycode part (HB_KX_*) and modifiers (shift, ctrl, alt, keypad, HB_KF_*)
You can translate such extended key code to standard Clipper ones by:
hb_keyStd( nExtKey ) -> nClipKey
to character value (unicode and multibyte characters are fully supported):
hb_keyChar( nExtKey ) -> cStr
to extended xHarbour keycode (xhb.lib):
xhb_KeyTrans( nExtKey ) -> nXhbExtKey
or you can extract extended key (HB_KX_*) or character value by:
hb_keyVal( nExtKey ) -> nKeyCharVal
and modifiers bitfield (HB_KF_*) by:
hb_keyVal( nExtKey ) -> nKeyFlags
If you used to work with xHarbour extended key codes then you can simply
use xhb_Inkey() (xhb.lib) instead of Inkey().
> - a custom teditor.prg and memoedit.prg in rtl to manage text selection and
> copy/cut/paste
Someday whole TEDITOR just like ACHOICE and DBEDIT should be updated to
exactly mimic Clipper behavior and then extended if necessary. Now these
are the weakest parts of Harbour in case of strict Clipper compatibility.
Rest seems to be really perfect.
> - few local changes in some contribs
> before I used a pre-3.0 version that I consider stable with the same local
> changes.
We have some important fixes and extensions from this time.
best regards,
Przemek