cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
%3CLINGO-SUB%20id%3D%22lingo-sub-709697%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EElementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-709697%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMe%20gustar%C3%ADa%20resaltar%20en%20negrita%20valores%20espec%C3%ADficos%20en%20un%20cuadro%20de%20lista.%20Es%20posible%20%3F%3C%2FP%3E%3CP%3EPor%20ejemplo%2C%20en%20el%20siguiente%20ejemplo%2C%20me%20gustar%C3%ADa%20poner%20en%20negrita%20s%C3%B3lo%20%22Segundo%20elemento%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENew%20Window(%20%22Example%22%2C%0A%20fontobj%20%3D%20lb%20%3D%20List%20Box(%0A%20%20%7B%22First%20Item%22%2C%20%22Second%20Item%22%2C%20%22Third%20Item%22%7D%2C%0A%20%20width(%20200%20)%2C%0A%20%20max%20selected(%202%20)%2C%0A%20%20nlines(%206%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-709697%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eventanas%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-709708%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Elementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-709708%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECreo%20que%20con%20los%20cuadros%20de%20lista%20solo%20puedes%20establecer%20cu%C3%A1l%20est%C3%A1%20seleccionado%20o%20el%20estilo%20para%20todos%20los%20elementos.%20%C2%BFExiste%20alg%C3%BAn%20motivo%20espec%C3%ADfico%20por%20el%20que%20le%20gustar%C3%ADa%20poner%20en%20negrita%20una%20sola%20opci%C3%B3n%3F%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Anw%20%3D%20New%20Window(%22Example%22%2C%0A%20lb%20%3D%20List%20Box(%0A%20%20%7B%22First%20Item%22%2C%20%22Second%20Item%22%2C%20%22Third%20Item%22%7D%2C%0A%20%20width(200)%2C%0A%20%20max%20selected(2)%2C%0A%20%20nlines(6)%0A%20)%0A)%3B%0A%0Alb%20%26lt%3B%26lt%3B%20Set%20Selected(2)%3B%0Alb%20%26lt%3B%26lt%3B%20Set%20Font%20Style(%22Italic%20Bold%20Underline%22)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-709803%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Elementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-709803%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C2%A1Hay%20muchas%20razones%20por%20las%20que%20puedo%20pensar%20en%20por%20qu%C3%A9%20podr%C3%ADa%20ser%20%C3%BAtil%20poner%20en%20negrita%20o%20formatear%20entradas%20espec%C3%ADficas%20en%20un%20cuadro%20de%20lista!Tengo%20una%20aplicaci%C3%B3n%20donde%20permito%20una%20navegaci%C3%B3n%20r%C3%A1pida%20por%20las%20funciones%20de%20mi%20API%20de%20una%20manera%20muy%20similar%20al%20JMP%20Scripting%20Index.Para%20permitir%20el%20formato%20que%20ayuda%20con%20el%20an%C3%A1lisis%20visual%2C%20tuve%20que%20volver%20a%20crear%20cuadros%20de%20lista%20usando%20Table%20Box%20y%20COL%20Box%2C%20envueltos%20dentro%20de%20un%20cuadro%20de%20mouse%20para%20poder%20saber%20en%20qu%C3%A9%20elemento%20se%20hace%20clic%20y%20realizar%20ciertos%20acciones%20basadas%20en%20eso%20(como%20no%20permitir%20que%20se%20seleccionen%20ciertas%20entradas).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFue%20mucho%20trabajo%2C%20pero%20ahora%20es%20simplemente%20un%20widget%20que%20puedo%20incrustar%20en%20cualquier%20script%20con%20una%20l%C3%ADnea%20de%20c%C3%B3digo%2C%20al%20igual%20que%20el%20cuadro%20de%20lista%20integrado.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELos%20dos%20cuadros%20de%20lista%20en%20este%20script%20son%20de%20hecho%20TableBoxes%20envueltos%20dentro%20de%20un%20cuadro%20de%20mouse%2C%20pero%20la%20capacidad%20adicional%20para%20formatear%20entradas%20individuales%20es%20innegable.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErraticAttack_1-1702673667909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F59739i11770BDAABC2EE3F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ErraticAttack_1-1702673667909.png%22%20alt%3D%22ErraticAttack_1-1702673667909.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46646%22%20target%3D%22_blank%22%3E%40SophieCuvillier%3C%2FA%3E%20%2C%20la%20respuesta%20corta%20es%20no%3A%20JMP%20no%20proporciona%20ninguna%20capacidad%20para%20que%20nosotros%2C%20los%20humildes%20programadores%20de%20scripts%2C%20modifiquemos%20las%20entradas%20individuales%20en%20un%20cuadro%20de%20lista.Tienen%20esa%20capacidad%2C%20como%20lo%20hace%20JMP%20Scripting%20Index%20con%20los%20cuadros%20de%20lista%20que%20utilizan.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESi%20se%20esfuerza%2C%20puede%20hacer%20que%20TableBoxes%20se%20comporte%20como%20un%20cuadro%20de%20lista%2C%20pero%20requiere%20un%20poco%20de%20trabajo.No%20puedo%20proporcionar%20mi%20c%C3%B3digo%20seg%C3%BAn%20las%20regulaciones%20de%20mi%20empresa%2C%20pero%20estar%C3%ADa%20dispuesto%20a%20ayudar%20a%20responder%20cualquier%20pregunta%20si%20es%20necesario.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-709905%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Elementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-709905%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C2%A1Guau!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-710061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Elementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-710061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMuchas%20gracias%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%20%40jthi%3C%2FA%3E%20y%20a%20ti%20por%20la%20respuesta.Necesito%20resaltar%20ciertos%20valores%20en%20negrita%20porque%20tienen%20una%20utilidad%20diferente%20para%20los%20usuarios%20que%20otros%20valores%20y%20quieren%20poder%20diferenciarlos%20visualmente%20solo%20por%20el%20nombre%20que%20se%20muestra.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F26363%22%20target%3D%22_blank%22%3E%40ataqueerr%C3%A1tico%3C%2FA%3E%20Me%20ayud%C3%B3%20mucho%20tu%20respuesta%2C%20gracias.%20Voy%20a%20crear%20una%20tabla%20de%20cuadros%20que%20imite%20el%20comportamiento%20de%20una%20lista%20de%20cuadros%20y%20pondr%C3%A9%20en%20negrita%20los%20valores%20que%20quiero%20en%20ella.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-710142%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Elementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-710142%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C2%BFQu%C3%A9%20pasa%20si%20divides%20la%20lista%20en%20dos%20listas%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-712087%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Elementos%20espec%C3%ADficos%20en%20negrita%20en%20un%20cuadro%20de%20lista%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-712087%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENecesito%20tener%20todos%20los%20valores%20(negritas%20y%20no%20negritas)%20en%20el%20mismo%20lugar%2C%20debe%20estar%20ordenado%20por%20orden%20alfab%C3%A9tico%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Bold specific items in a list box

Hello,

 

I would like to higlight in bold specific values in a list box. Is it possible ?

For instance in the example below, I would like to put in bold only "Second Item"

 

New Window( "Example",
	fontobj = lb = List Box(
		{"First Item", "Second Item", "Third Item"},
		width( 200 ),
		max selected( 2 ),
		nlines( 6 )
	)
);
1 ACCEPTED SOLUTION

Accepted Solutions
ErraticAttack
Level VI

Re: Bold specific items in a list box

There are many reasons I can think of why bolding / formatting specific entries in a list box could be useful!  I have an app where I allow for quick browsing of my API features in a way very similar to the JMP Scripting Index.  In order to allow for the formatting that helps with visual parsing I've had to re-create list boxes using Table Box and COL Box, wrapped inside of a mouse-box to be able to know which item is being clicked on and perform certain actions based on that (like disallowing certain entries from being selected).

 

It was a lot of work, but now it is simply a widget that I can embed in any script with one line of code, just like the built-in list box.

 

The two list boxes in this script are indeed TableBoxes wrapped within a mouse box, but the added ability for individual entry formatting is undeniable. 

ErraticAttack_1-1702673667909.png

 

@SophieCuvillier , the short answer is no -- JMP does not provide any capabilities for us lowly scripters to modify the individual entries in a list box.  They do have that capability, as the JMP Scripting Index does it with the list boxes they use.

 

If you're endeavorous you can make TableBoxes behave like a list box, but it does require a bit of work.  I cannot give out my code for it per my companies regulations, but I'd be willing to help answer any questions if needed.

Jordan

View solution in original post

6 REPLIES 6
jthi
Super User

Re: Bold specific items in a list box

I think with list boxes you can only set which is selected or style for all the items. Is there a specific reason why you would like to bold single option?

Names Default To Here(1);

nw = New Window("Example",
	lb = List Box(
		{"First Item", "Second Item", "Third Item"},
		width(200),
		max selected(2),
		nlines(6)
	)
);

lb << Set Selected(2);
lb << Set Font Style("Italic Bold Underline");
-Jarmo
ErraticAttack
Level VI

Re: Bold specific items in a list box

There are many reasons I can think of why bolding / formatting specific entries in a list box could be useful!  I have an app where I allow for quick browsing of my API features in a way very similar to the JMP Scripting Index.  In order to allow for the formatting that helps with visual parsing I've had to re-create list boxes using Table Box and COL Box, wrapped inside of a mouse-box to be able to know which item is being clicked on and perform certain actions based on that (like disallowing certain entries from being selected).

 

It was a lot of work, but now it is simply a widget that I can embed in any script with one line of code, just like the built-in list box.

 

The two list boxes in this script are indeed TableBoxes wrapped within a mouse box, but the added ability for individual entry formatting is undeniable. 

ErraticAttack_1-1702673667909.png

 

@SophieCuvillier , the short answer is no -- JMP does not provide any capabilities for us lowly scripters to modify the individual entries in a list box.  They do have that capability, as the JMP Scripting Index does it with the list boxes they use.

 

If you're endeavorous you can make TableBoxes behave like a list box, but it does require a bit of work.  I cannot give out my code for it per my companies regulations, but I'd be willing to help answer any questions if needed.

Jordan
hogi
Level XII

Re: Bold specific items in a list box

wow!

Re: Bold specific items in a list box

Hello,

 

Thank you very much @jthi and you for the answer. I need to highlight certain values in bold because they have a different utility for users than other values and they want to be able to differentiate them visually just by the name displayed.

 

@ErraticAttack  Your answer helped me a lot, thank you. I'm going to make a box table that mimics the behavior of a box list and bold the values I want in it.

 

 

Re: Bold specific items in a list box

What if you split the list into two lists?

Re: Bold specific items in a list box

I need to have all the values (bold and not bold) in the same place, it must be sorted by alphabetical order