Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Hi David, thanks for your reply
I didn't followed the hard part to create a ReportPreview from scratch. I've used the already designed ReportPreview and I changed the code in updatelistener class from ReportOutput (the cursor creation in Init and filling in Render). This part works.
The search from the ReportPreview triggered by toolbar buttons/keyboard also works, but without the highlighting.
I believe that is because the call of OutputPage with eDevice=2 parameter. I tried with line,box,shape. I tried to get the HWnd of the client area and use GDI+ to draw a shape. No luck :(. Maybe VFP creates other child windows based on canvas coordinates. If I can know how to get these handles, maybe I can succed in highlighting text on page.
>Dorin,
>
>You may already know this, but Doug Hennig did the same thing in a series of two articles in FoxTalk -- April and May, 2005. He uses the info in his rendering info cursor to draw lines around each item found during the search. If you have a FoxTalk subscription, you can see the solution to your question in part 2 (May issue).
>
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement