Not so Modal - Modal Preview
I am using an end-user solution with the report explorer (v7.03). I have the
TppReportExplorer.ModalForm = True and TppReport.ModalPreview = True.
My main for is not visible as I want the Report explorer to be the main
form. I am executing the explorer from a timer as per your example demos.
But when I am previewing a report or designing a report from the explorer
and I flick to another application then select the RB end user application
from the task bar at the bottom of the screen then I get the explorer form
activated (not the Preview or Design form). This is not the normal action
of a Modal form in windows apps.
What could be happening?
TppReportExplorer.ModalForm = True and TppReport.ModalPreview = True.
My main for is not visible as I want the Report explorer to be the main
form. I am executing the explorer from a timer as per your example demos.
But when I am previewing a report or designing a report from the explorer
and I flick to another application then select the RB end user application
from the task bar at the bottom of the screen then I get the explorer form
activated (not the Preview or Design form). This is not the normal action
of a Modal form in windows apps.
What could be happening?
This discussion has been closed.
Comments
Are you able to recreate this issue using our end-user demos? Just to be
sure I'm doing everything correctly. I loaded the \RBuilder\Demos\3.
EndUser\1. Report Explorer\EndUser.dpr project and ran it. Then I selected
a report from the Explorer window. Now I have three items in my Windows
task bar:
1. End User application.
2. Report Explorer.
3. Report Designer.
If I click on the Report Designer task bar button I get the designer and if
I click on the Report Explorer button, I get a view of the Explorer (though
I have no access to it). Am I doing something wrong to recreate the issue
you are having?
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
In any SDI application using Modal forms that I have created over my 12
years of writing windows apps is that there usually is only one item on the
task bar for however many modal forms you have displayed in the app. When
you click on the application icon in the task bar you go to the top - most
active modal form of your application.
I find it a little obscure that there are so many icons (as you pointed out
1 each for App, explorer & designer) displayed in the task bar and you can
get focus (without access) to the explorer when the "modal" designer or
previewer are active. Is there a way to avoid this?
Regards,
Jarrod
Unfortunately this is the way the Report Explorer and Designer was designed
to work. If you would like try to change this, you will need to look at the
Report Explorer source. Try looking at the TppReportExplorer.Open procedure
in the ppRptExp.pas file. This method is called when selecting a report
from the explorer.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com