Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Windows for Charts, ImagePrinter and Runtime Questions
Reply to topic
Author Message
Brian



Joined: Jun 17, 2016
Posts: 11

PostPosted: Jun 7, 2017 10:31 PM    Post subject: Windows for Charts, ImagePrinter and Runtime Questions

How should I go about opening a new window with a single chart (nested design) during runtime? I have been placing my nested design in the runtime 2 window and using hide/show as a temporary solution; however, I would like to activate and close this window during runtime. Similarly, I would like to activate a new window as my session report for review prior to printing.

I have been using ImageSource to ImagePrinter to print my reports. Is this the best approach? Also, I would like to save to PDF, but this format isn't an option in ImageWriter.

Lastly, when I start BioEra (runtime only), it automatically initiates Play even though I have "start automatically" unchecked in the system settings. Could this be an issue with my design or a BioEra setting?

Thanks in advanced! Apologies for the list of questions. These issues have been on the back burner for me and I finally found the time to attempt to resolve them.
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jun 7, 2017 10:44 PM    Post subject:

You could put your single chart in a single Frame or Dialog (chart property) instead of Runtime2. Then show/hide it using ElementInteractor. If you don't want it to show at start, simply clear the chart property "Show chart on start".

Yes, BioEra prints the image which is created out of the report design. There is no option to print to PDF. I might need to look at implementing such option, but it is not available now.

In order to load a design in a runtime only mode, without starting it, use command line option "-stop" (other option you mentioned have no effect in this case). For example, modify this line in start_runtime.bat file (located in main BioEraPro folder) from:

bioera.exe -or

to:

bioera.exe -or -stop

You will then also need to implement your own way of starting the design (as demonstrated in Bioera examples).
Brian



Joined: Jun 17, 2016
Posts: 11

PostPosted: Jun 7, 2017 11:52 PM    Post subject:

Great. I'll give it a try! Do you know if there is any way to use the "native windows close (x) button" to hide the window or is my only option to configure a button or toggle element in a runtime window to show/hide the window?
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jun 8, 2017 1:37 AM    Post subject:

Yes. Clicking on 'X' button of a single chart's dialog/frame hides it (by default, you can change this default behavior in system settings).

You can also get the event when 'X' is pressed from WindowInteractor.
Brian



Joined: Jun 17, 2016
Posts: 11

PostPosted: Jun 8, 2017 7:10 AM    Post subject:

Wow. Thank you, thank you! I can't believe the solution was that simple... It's been a lingering worry, but now it's all resolved!
Reply to topic