WPCubed Product Support

GetXPositionTW function bug (?)

Hello,

version 5.58

If you are at the start of a line (left edge) and type a single character, then call GetXPositionTW, it returns 0. If you type a second character, it returns a non-zero value.

If GetXPositionTW is supposed to return the cursor's x position, then it would seem like it should return a non-zero value after typing just one char.

Thanks,
Bill

#1 ♥ 0
5.8k Views 3 users read 1 min
support

Hi,

This will be fixed in next release.

Julain

#2 ♥ 0

I am testing version 6.28, and this bug still exists. Is there a workaround?

#3 ♥ 0
support

Hi,

If you have the PRO version you can insert a >= in WPRTEPaint, procedure GetXYPositionAtRTFTW.

if (x=0) and (pos_in_par>0) and (par.CharCount>0) and
(length(LineData.par.CharPos)>=par.CharCount) //2.6.2013 WP7
then

#4 ♥ 0
This category is archived. No new posts are possible.