OnClick event in the preview page
Hi,
Does anyone know how to do an OnClick event on the preview Page. And also,
how to determine which control is under the mouse.
This is because I need to get the Tag property (previously assigned) of a
TppDBText when It is clicked by the user.
Any idea?
Best regards,
--
Roberto Elias Silva
roberto@viasoft.com.br
----------------------------------------
Does anyone know how to do an OnClick event on the preview Page. And also,
how to determine which control is under the mouse.
This is because I need to get the Tag property (previously assigned) of a
TppDBText when It is clicked by the user.
Any idea?
Best regards,
--
Roberto Elias Silva
roberto@viasoft.com.br
----------------------------------------
This discussion has been closed.
Comments
while the report is previewing, the output draw command for that component
will have an event handler that you assigned to the layout component. In
that event handler, you can reference the component in the layout to get its
tag and change anything else you want at that time. The rerun the report
using the new settings to view the new output.
Since you want to change the output, you don't have to rerunthe report, but
rather you could change the draw command that is passed in the
OnDrawCommandClick event handler and refresh the page.
See the article "Draw Command Architecture" in the tech-tips newsgroup in
the RCL: Component Writing thread.
If you change the draw command on a page, then call
Viewer.ScreenDevice.RenderPage;
Viewer.RefreshPage;
You can get the viewer object like this:
TppViewer(Report.PreviewForm.Viewer); {uses ppViewr}
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com