GetParAtXY in Table

WPTools 8 is a complete word processing VCL for Delphi 5 up to Delphi and C++Builder. It integrates powerfull editing features such as footnotes, header and footers, tables and DocX import and export.
Posts: 130
Joined: Sun Jul 24, 2005 11:41 am

GetParAtXY in Table

Postby andi » Tue Nov 15, 2016 7:59 am

I have a table with 6 columns, i use following code

Code: Select all

        pt      := Mouse.CursorPos;

        pt      := vEd.ScreenToClient(pt);
        vEd.Memo.GetParAtXY(pt.X, pt.Y, actPar, p);
        wpFld   := vEd.FieldGetInPar(actPar, p);

to locate the EditField where the mouse is, but the GetPArAtXY returns in the table the incorrect position, allways, the last Column.
Outside the table it works as it should!

Return to “WPTools 7 and 8 (VCL)”

Who is online

Users browsing this forum: No registered users and 1 guest