cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
BabyDoragon
Level IV

How to restore the color of a ListBox to its default?

In the following JSL, after changing the color of the ListBox frame, how can I revert it to the default color?

Also, if I want to change the background color of the ListBox, how should I set it up? The command for changing the background color modifies the color of the frame.

Names Default To Here( 1 );
New Window( "Example",
	b = List Box( {"single", "double", "triple"}, nlines( 5 ) )
);
wait(2);
b<< background color("red");
wait(2);
//b<< background color("default color?");

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to restore the color of a ListBox to its default?

To reset it set it to "None" and I'm not sure about changing the background.

 

Edit:

And when you are trying to figure out stuff like this, you can attempt to get the "default" value before changing it. In this you can use << Get Background Color

Names Default To Here(1);

nw = New Window("Example", 
	lb = List Box({"single", "double", "triple"}, nlines(5))
);
def_color = lb << Get Background Color();
show(def_color);

Wait(1);
lb << background color("red");

Wait(1);
lb << background color("None"); // after you have checked what it is 

// Or sometimes you might want to use
lb << background color(def_color);
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to restore the color of a ListBox to its default?

To reset it set it to "None" and I'm not sure about changing the background.

 

Edit:

And when you are trying to figure out stuff like this, you can attempt to get the "default" value before changing it. In this you can use << Get Background Color

Names Default To Here(1);

nw = New Window("Example", 
	lb = List Box({"single", "double", "triple"}, nlines(5))
);
def_color = lb << Get Background Color();
show(def_color);

Wait(1);
lb << background color("red");

Wait(1);
lb << background color("None"); // after you have checked what it is 

// Or sometimes you might want to use
lb << background color(def_color);
-Jarmo

Recommended Articles