Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: system interactor
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Apr 20, 2016 7:55 AM    Post subject: system interactor

Jarek

I am putting a series of designs for Neurofeedback training. I make one change to system settings so that the designs do not save on exit.

In order to make installation as easy as possible, until I can figure out how to created an installer, I want to eliminate the need for transferring the system.set file manually. I have included a button/system interactor combination that brings up the system setting window. Once the change is made and the design saved the button disappears as it is no longer needed.

What I want to know is this. Is there a way for other designs to see if the "do not save on exit" setting is enabled. If so I can use that to hide the button on subsequent designs.

If not then, until I get an installer going, I may created a simple "configuration" design that can be used once only to change settings.


Many people have had problems doing the things that are second nature to me so the less sorting through the folders the better off the end user is

George
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Apr 20, 2016 8:37 AM    Post subject:

Yes, you can use Settings element for that. With PropertyGetter, you can get out any system setting.

Please note, that this option (Exit without save) is only effective with Exit menu or X button (right upper corner). It is not effective with Reload (which always saves current design).

You could also use that to set a system property at start:

http://proatech.com/design/system_settings_modify.bpd

But this change will not become permanent. In order to save system settings permanently (in system.set file) the dialog must be opened and OK button pressed (I could improve that if needed, and add an option to save system.set from the design).
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Apr 22, 2016 8:27 AM    Post subject:

Jarek,
Thank you. The snippet provided does exactly what I want to be able to do. An added benefit of changing the settings only on specific designs is that people using BIoEra with other settings do not have to go back and forth changing settings between designs.

The routine I had set up before made the change permanent and needed buttons on screen to work. This is more elegant and flexible.
Reply to topic