We are trying to insert an image on to a page using a draw object. We are placing the draw object under the page to give it a transparent look. If the user clicks on the object after placing it on the page an Access Violation occurs.
Code
t.grtyp := 20; // Image
t.typparam := i; // Image ID
t.ColorBrush := COLORWHITE;
t.ObjectOptions := 8;
t.CreateOptions := 1; // Place the object UNDER the Page
//t.Angle := 30;
WPViewPDF1.CommandStrEx(COMPDF_MouseAddOneDrawObject, '', Cardinal(@t));