Page 1 of 1

HMG_EditControlGetSel

Posted: Wed Feb 08, 2017 9:19 pm
by KDJ
HMG_EditControlGetSel(nHWnd, @nStart, @nEnd) - does not work properly.
Why?
Look at source code:
 
HMG_EditControlGetSel.png
HMG_EditControlGetSel.png (21 KiB) Viewed 1965 times
 
How to fix it?

Use:
HMG_EditControlGetSel(nHWnd, NIL, @nStart, @nEnd)

or change in the source:

Code: Select all

   if (HB_ISBYREF(2))
       hb_stornl ((LONG) nStart, 2);
   if (HB_ISBYREF(3))
       hb_stornl ((LONG) nEnd, 3);

Re: HMG_EditControlGetSel

Posted: Thu Feb 09, 2017 8:27 am
by bpd2000
Thank you dear

Re: HMG_EditControlGetSel

Posted: Thu Feb 09, 2017 10:19 pm
by srvet_claudio
Thanks for the info