How to change color in snippets

0 votes
asked Apr 26, 2016 by Sancho

Can you please explain how to change a color linked to a proxy variable? This does not work:



1 Answer

0 votes
answered May 2, 2016 by Maria Molodova (8,320 points)
selected May 2, 2016 by qandaadmin
Best answer

There is a type mismatch in your example. BackgroundColor proxy is the built-in stColor type, whereas Color.FromArgb() is a GDI+ function that returns the system System.Drawing.Color type. To match types, simply use a special field of stColor type:


Alternately, the color value can be changed with an optional stColor constructor:

BackgroundColor=new stColor(25,0,0);

There is a dedicated page in our wiki showing more examples of dealing with stColor type:

Welcome to EventIDE Q&A forum where you can ask questions about EventIDE software and receive answers from other members of the community

FAQ questions

Installation and License



EEG Analysis

Visual Stimuli

Runtime and Data Collection