From: <al...@be...> - 2018-09-03 13:34:40
|
<div>> Problem 1)</div><div>> oBrw:bOther := {|oBrw, msg, wParam, lParam| fKeyDown(oBrw, msg, wParam, lParam)} </div><div>> ...</div><div><div>> Static FUNCTION fKeyDown(oBrw, msg, wParam, lParam)<br />> LOCAL nKEY := hwg_PtrToUlong( wParam ) //wParam<br />> HWG_MSGINFO(hb_valtoexp(msg) + " - " + hb_valtoexp(wParam) + " - " + hb_valtoexp(lParam) )</div><div> </div><div>Using of messagebox is the worst method to catch an event. If you want to detect a keypress event, you need first to set a focus to browse control, but you can't even click on it, because the MOUSEMOVE will be detected before - and messagebox will appear and assign the focus.</div><div>Use hwg_writelog() instead.</div><div> </div><div>> Problem 2)</div><div>> And if I use on:</div><div>> Add column FieldBlock("digit") to oBrw Header 'Código' //Accent letter ó</div><div>> The browse show in HEADER the content of FIELD DBF :(</div><div>> Add column FieldBlock("digit") to oBrw Header 'Codigo' //Run ok! Head with not accent.</div><div> </div><div>Probably, the codepage and hwg_setapplocale() isn't set as it needed.</div><div> </div></div><div>Regards, Alexander.</div> |