Fix BrainStorm GUI controls under Matlab 7

BrainStorm GUI controls look distorted in Matlab 7. This has been verified as a bug in MATLAB 7.0 (R14) in the way pushbuttons and toggle buttons are displayed on Windows machines when the screen display theme is set to Windows XP. Check Mathwork support [B]here[/B] for details on the suggested solutions:

  1. Copy the file [B]java.opts[/B] to your MATLAB startup directory or $MATLAB\bin\win32 directory (where $MATLAB is the MATLAB root directory on your machine, as returned by typing matlabroot at the MATLAB command prompt.)

  2. Alternatively, set the screen display to Windows Classic style. Here is how to do this:
    a. Right click on the desktop and select Properties
    b. Select the Appearance tab
    c. Under Windows and buttons, select Windows Classic style from the drop-down menu.

I just downloaded BrainStorm and started it in Matlab. Everything seems to work fine, just that the control buttons are not labeled. They are not dark colored like in the GUI shown on your website but light (probably just like the text that’s written on them, cause you can see the text appear transiently when pressing the buttons). I already tried the two different color schemes. Is there a fix that you can propose to me? Is it maybe similar to the fix you posted?
I am using Matlab 7.3.0 R2006beta (running via X11) on Mac OS X Tiger. Do you have any experiences on using BrainStorm on Macs or do you know someone doing so?

Cheers,
Birte

Hi Birte,

No we do not have experience running BST on Mac. It’s a premiere to our knowledge! sounds exciting though.

The bug you’re describing is similar to the one occuring under windows. It’s a Matlab issue that can be fixed by following the directions in:

http://neuroimage.usc.edu/brainstorm/FAQs.html

Then let us know whether you’re still experiencing problems.

The above also concerns the most recent Matlab versions: 2006a & b

I had the same problem seeing the text on the buttons using Matlab 7.2 running on Mac OSX 10.4…however, I was able to see the text by changing bst_color_scheme.m file located in the Toolbox folder.

Go to line 123 and change the variable “textlight” to be [0 0 0]
This will turn the text black and is now visible on the gray buttons.

Hope this helps!

[QUOTE=Birte;465]I just downloaded BrainStorm and started it in Matlab. Everything seems to work fine, just that the control buttons are not labeled. They are not dark colored like in the GUI shown on your website but light (probably just like the text that’s written on them, cause you can see the text appear transiently when pressing the buttons). I already tried the two different color schemes. Is there a fix that you can propose to me? Is it maybe similar to the fix you posted?
I am using Matlab 7.3.0 R2006beta (running via X11) on Mac OS X Tiger. Do you have any experiences on using BrainStorm on Macs or do you know someone doing so?

Cheers,
Birte[/QUOTE]

Thanks Tzanto,

excellent tip :wink:

Thanks a lot. Worked perfectly.
Birte

Agreed, great tip, worked fine for me.

May be you should try to do Gamma correction to the color profile of your monitor, the font color problem might be related to the color profile. The fonts are working well with me. You can downlaod any gamma correction program and try it, by the way, it comes with adobe photoshope.