Button/Menu label, description, tags and sequences

<#ffffff>	Foreground color
<kbd>		Outlined key drawing
<b>			Bold
<i>			Italic
<u>			Underline
\n			Newline
\t			Tab

<%sp:2>		Horizontal spacing (2 pixels)
<%vsp:2>	Vertical spacing (2 pixels)

Few questions.

  1. I suspect there is a way to set background color for buttons with a tag. If so, how?
    Edit:<font bgcol="#cccccc"></font> This is limited to the font background and not the whole button.
  2. Is the three-button tooltip that displays the mouse icons shown with one of these tags?
  3. Any other tags etc missing from the list above you can share?

Thanks!

1 Like

Some things to play with...

Keep in mind none of this is documented/supported, so things could change/break. It's just stuff we needed in one place or another.

Easiest way to play with things is in button labels, since you can see the results as soon as you type.


image

<%error> <%update> <%oned:4> <%oned:3> <%ddbi:5> <%ddbi:155>
<%tbim:rename> <%tbim:makedir> <%fdbi:8> <%fdbi:12>
<%winlogo> <%bulb:1> <%bulb:2> <%bulb:3>
<%weblink> <%windowlink> <%menulink> <%manlink>
<%bullet> <%arrow> <%arrowu> <%arrowd> <%arrowl>
<%stars:3> 
<%mouse> <%mousel> <%mouser> <%mousem>
<%checkbox> <%checkbox:0> <%checkbox:2>

<nowrap> ... </nowrap> prevents new lines, especially useful if you want one of those icons at the start or end of a word.


<fixed>Hello</fixed> uses a monospace font.


image

<%bg:75^100^50^#0000ff^#00aa00^#ffffff^#003333^#ffffff>

Value, Total, Width, Color1, Color2, Color3 (or "no"), BackColor (or "no"), TextColor (or "no"), Gradient, Frame, Line, Value1, Value2


2 Likes

Nice, but still very cryptic. There should be a color picker for the colors. For example, i would like to change the colors starting with light green (plenty of space) to red (critical), and also change the background color to something lighter. Only a suggestion. :slightly_smiling_face:

Wow, a progress bar can be placed in a button label. Wasn't expecting that one. Was hoping for a way to set the background color of a button conditionally with evaluator. Thanks for taking the time and sharing!

Are these useful icons/images somehow accessible from a script? Perhaps using DOpus.Loadimage?
I am particularly interested in stars:0 through stars:5.

image

1 Like

They're not available as an image but you can use a markup text control to show them in a dialog using the HTML.

4 Likes

@Jon any chance to use those icons in a button from a script?

No, but markup text controls can have clickable links in them which might help?

Added the missing <u>underline</u> tag to the list of my original post.

Any way to insert in a markup control the frame boxes that can be placed in the status bar?
image

I was looking at the possibilities that these new types of controls open up. They look good!!!
An example of what I want to use these frames for:


Here I'm using <kbd> for the frames, but you can see that they end up overlapping, plus if I want to use icons for :heavy_plus_sign: and :x: they end up splitting like this:

Also, there's no way to change the markup control background?

1 Like

I don't think there is a way around any of those at the moment. We might be able to do some of them after the initial release.

Process Explorer has a 'Strings' tab, I searched and found...

<%sp:2>		Horizontal spacing (2 pixels)
<%vsp:2>	Vertical spacing (2 pixels)

Hello
I'm trying to use the following as a label or description:

EXPAND=top Ctrl
COLLAPSE ALL Ctrl+Shift
SMART <%mousel>

Using:

EXPAND=top\t<kbd>Ctrl</kbd>\nCOLLAPSE ALL\t<kbd>Ctrl</kbd>+<kbd>Shift</kbd>\nSMART\t<%mousel>

but it doesn't work, only shows EXPAND=top.
Any idea why?

I don't think you can use the markup in button descriptions, and button labels can't be multi-line.