Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This is my code for making a label. I used a Button expression to build it. Is there a better way to make a label? My objection to doing it this way is that, when I set Enabled -> True, the button becomes clickable. For my application, I don't want anything clickable.

Button[StringJoin["Label", ToString[3]], Null, 
  Background -> Black, BaseStyle -> {White, 16, Bold}, Enabled -> False]
share|improve this question
    
Could you please make your question more understandable? It is very vague in its present form (there is practically an infinite number of ways to design a label.) and I don't have an idea about what you are actually asking. What exactly is a label in your terminology? What's wrong with Enabled? It is specifically there to allow interactive manipulation to be turned on/off for buttons and such. –  István Zachar Dec 21 '12 at 16:41
add comment

1 Answer

up vote 5 down vote accepted

If I understand you, you just want something to draw on?

Try Panel

Panel["Label" <> ToString[3], Background -> Black, BaseStyle -> {White, 16, Bold}]

Mathematica graphics

Or Framed

 Framed["Label" <> ToString[3], Background->Black,BaseStyle->{White, 16, Bold}, 
  FrameStyle -> None]

Mathematica graphics

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.