[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Singature Capture issue in XP and in Windows CE
|
This behaviour difference sounds like an swt bug. You should log a report
at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT
and include a snippet that shows the different behaviours.
Grant
"Raj" <rajkal23@xxxxxxxxx> wrote in message
news:4bee2fdb4eaa4fb6b7d25eff1a7e9d53$1@xxxxxxxxxxxxxxxxxx
> Yes, I tried that but on handheld it was behaving weirdly, does not put
> the coordinates properly.
>
> Modified paintControl with below code , able to eliminate starting from
> 0,0 cordinates but when stylus goes at the end of the canvas , I still get
> a line from 0,0.
>
> if (xPosPrev == 0 && yPosPrev == 0) {
> xPosPrev = e.x;
> yPosPrev = e.y;
>
> }
> e.gc.drawLine(xPosPrev, yPosPrev, e.x, e.y);
> Display.getCurrent().update();
>