cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

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

Emoji + TextBox()?

The Icons which are available in JPM are very limited.

The idea: “Use emojis as icons — there’s one for almost anything!”
just seahorse is missing ...

The problem: how can I use Emojis in JMP - e.g.  in TextBox()? 

With

New Window("Emoji Example",
    Text Box("🔴🟡🟢") 
);

I expect: 
hogi_3-1769006727084.png

 

... but JPM generates:

hogi_2-1769006712063.png

 

not helpful in this context: the creativity of Learnbot

hogi_1-1769006374085.png

 

New Window("Emoji Example",
    Text Box(Char(128512)) // Unicode for 😀
);

 

 

13 REPLIES 13

Re: Emoji + TextBox()?

Hey! Those would be questions for the support team.

Best,

M
hogi
Level XIII

Re: Emoji + TextBox()?

you are right. -> TS-00275926
I will keep you updated if I get new insights from there ...

I also submitted a wish to the wish list:
Expand the Built‑in Icon Library for Modern GUI Development 
enabling emoji support for windows systems could be an easy shortcut.
Just imagine how easy GUI development would be if emojis could fill the gap whenever suitable icons are missing in the BuiltIn set!

I have to admit I'm a bit jealous of the users who have a Mac license.
Still, you could argue that it doesn’t help them much either, since those GUIs aren’t portable across platforms anyway.

Re: Emoji + TextBox()?

From a synthesis of @hogi's questioning and internal dialog with JMP development, the bottom line is that Windows rendering engine that JMP currently uses for this implementation (as of the release of JMP 19.x) is not able to render color emoji.

We will consider making changes based on 360 customer feedback in future JMP releases. Please feel free to engage the JMP Wish List and @hogi's Wishlist Item.Expand the Built‑in Icon Library for Modern GUI Development 

For customer's interested in bypass workarounds (none of these directly address this limitation), you might be interested in the approaches shared below.   --JMP Technical Support (Re: Case 00275926)

//approach 1: Use Graph Box with Colored Circles, Instead of relying on emoji, draw actual colored circles using Graph Box:
New Window( "Stoplight Example",
    V List Box(
        Graph Box(
            FrameSize( 150, 50 ),
            Y Scale( 0, 1 ),
            X Scale( 0, 3 ),
            // Red circle
            Fill Color( "Red" );
            Oval( 0.25, 0.25, 0.75, 0.75, 1 );
            // Yellow circle
            Fill Color( "Yellow" );
            Oval( 1.25, 0.25, 1.75, 0.75, 1 );
            // Green circle
            Fill Color( "Green" );
            Oval( 2.25, 0.25, 2.75, 0.75, 1 );
        )
    )
);

//approach 2: Use HTML Markup in Text Box, JMP supports limited HTML markup in Text Box, including color formatting:
New Window( "Stoplight Example",
    V List Box(
        Text Box(
            "<font color='red'>●</font> <font color='#FFD700'>●</font> <font color='green'>●</font>",
            <<Set Font( "Segoe UI Emoji", 20 ),
            <<Markup
        )
    )
);


//approach 3: Use Text Color Message,  Set text color directly on Text Box elements:

New Window( "Stoplight Example",
    H List Box(
        tb1 = Text Box( "●", <<Set Font( "Segoe UI Emoji", 24 ) ),
        tb2 = Text Box( "●", <<Set Font( "Segoe UI Emoji", 24 ) ),
        tb3 = Text Box( "●", <<Set Font( "Segoe UI Emoji", 24 ) )
    )
);
tb1 << Text Color( "Red" );
tb2 << Text Color( "Yellow" );
tb3 << Text Color( "Green" );
hogi
Level XIII

Re: Emoji + TextBox()?

Hi @PatrickGiuliano , thanks a lot for investigation the root cause and for providing some workarounds for the special case of the traffic lights.

Recommended Articles