Help Arduino Mega 2560 + 3.2" TFT LCD

HazardsMind:
Where did you download your library from, can you provide a link. The values that are shown on screen fit where you touched the screen, but the display is off. I think the screen is set to 240x400, but the touchpad is set to 240x320. This would explain why when you touch the edge of the screen, you see 319, but the dot only goes 4/5 the way.

You need to calibrate your display / touch ratio and fix the CAL_X and CAL_Y values in the UTouchCD.h file.

I download my library from Electronics - Henning Karlsen

I will try the way you teach me.

Few mins ago, I test with this code, very good :3

while (myTouch.dataAvailable() == true)
{
myTouch.read();

test = 310-x;
x = myTouch.getX();
y = myTouch.getY();
if ((x!=-1) and (y!=-1))
{
myGLCD.clrScr();
myGLCD.print("o", 310-x+test/5.5,y-6,0);
myGLCD.printNumI(310-x+test/5.5, CENTER, 0); //X axis
myGLCD.printNumI(y-6, CENTER, 16); //Y axis
}
}

Very very thank you for your help.