![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Panel button color in v8 not comaptible with v9
![](/sites/default/files/styles/thumbnail/public/Mike%20German/profile-images/2022-12/FRPA01_R_20211130T215308%2C665_UT.flac_.wav_.png?itok=OcIkjy5N)
Mike German
I am a recent transferee from IP V8 to V9 and am learning my way. I have a number of Panels containing buttons and hoped to use them without modification.
Button buttShowTSR,pos={300,155},size={75,25},proc=buttShowTSR,title="ShowTSR",fColor=(0,600,100)
However, in v9 the fcolor parameter for button operation generates a black rectangle instead of the V8 coloured ones.
This is probably as a result of the improvements to Panel in V9 but what do I need to change to specify button colour?
OK a bit of experimentation and the full color value works
fColor=(65535,0,65535)
fColor=(0,65535,65535)
or
fColor=(0,0,65535)
but
fColor=(0,0,6553)
gives a black button
December 17, 2022 at 09:25 am - Permalink
I see; Igor 8 just used the hue but Igor 9 is using the brightness, too.
I'll take a look Monday.
December 17, 2022 at 10:15 am - Permalink
Try the Igor 9 Nightly Build, Build #39656 or later.
December 19, 2022 at 05:11 pm - Permalink