Is there a relatively simple way (such as a keyword) to reverse the color range for a color table displayed in a popup menu control? For example, to show the grays color table ranging from white to black instead of black to white in a popup menu control.
I have a panel with a popupmenu (*COLORTABLEPOP*) for selecting a color table. There is also a checkbox to permit the user to invert the color table when it is used in a plot. The color table is used to color markers on a plot according to their value.
I had hoped to be able to display the color table on the panel in the same "orientation" as it would appear in use. That is, the rainbow color table in the popupmenu should display running from a low of blue to a high of red if the Invert CTab checkbox were selected.
My guess as to your use was going to be exactly that. The only suggestion is that you could use a small embedded image to show the color table. Like this:
What is your use case here?
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 8, 2015 at 11:32 am - Permalink
I had hoped to be able to display the color table on the panel in the same "orientation" as it would appear in use. That is, the rainbow color table in the popupmenu should display running from a low of blue to a high of red if the Invert CTab checkbox were selected.
September 8, 2015 at 12:20 pm - Permalink
Execute MakeThePanel() to try it out.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 9, 2015 at 10:18 am - Permalink
Your example works very nicely. This will be a simple addition to my panel.
Maybe this capability will be present in a forthcoming major platform upgrade.
Thanks for the quick code example.
Jeff
September 9, 2015 at 12:01 pm - Permalink
I've incorporated your ideas into my panel.
Thanks.
Jeff
September 11, 2015 at 01:44 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
September 14, 2015 at 10:02 am - Permalink