Author Topic: Program that can log/control many multimeters and other devices.  (Read 1614632 times)

flash2b, Jeroen3 and 345 Guests are viewing this topic.

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4834
  • Country: dk
    • Tests
But with a dark background the text will be hard to read.

#cmdSetup separator also supports :color:

I am looking for a way to have a text in a different color dynamically.
Separator is a bit of a special case.

There is a trick that may work, prefix the string with <html>, then you can use some old html codes to control the text (Java never updated its html handling to newer standards). Be a bit careful with it, it may break the formatting (it is used native in some TC stuff).
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 965
  • Country: nl
  • Everything I like about myself is better with you.
So :color: is for buttons (exception is separator).

Why is there not a :fontcolor: option?

Java supports it: button.setForeground(Color.RED);
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4834
  • Country: dk
    • Tests
So :color: is for buttons (exception is separator).

Documentation says:
:color: Color for an indicator, can be a name or (r,g,b) values. It Is is used on buttonson indicator, "Set" buttons and separator.

Why is there not a :fontcolor: option?

Java supports it: button.setForeground(Color.RED);

From start I wanted a simple to define style for the controls. For that reason I kept settings at a minimum.
Over time some more settings has been added and helped improve the look, usually they are optional, i.e. it is still possible to define they layout in a fairly simple way.

A tag to control font color would not change that, but I do not see much reason for it, most control do not really have a good way to use a fontcolor, info and infoAsk is about the only ones where it could be used.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->