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.

I am looking for pointers on how to redefine UI elements (in the FE as well as in a CDF document).

For example: the looks of a button, or of tab elements, and so on.

(I don't mean something like "changing the color of a (pressed or unpressed) button", I really mean the UI element appearance).

I have been looking around (web and here) and I didn't come up with an answer, nor with any kind of information...

Anyone has any pointers? Is it even possible?

Thanks!

share|improve this question
2  
The appearance of the FrontEnd control elements is determined by operating system, not by the FrontEnd. So probably what you want is not possible. –  Alexey Popkov Feb 7 at 12:16
    
Oh, I see. Yeah, I know it's OS-controlled, but I thought that maybe there's a way to redefine the looks of, eg, a button... :( –  mgm Feb 7 at 12:31
    
To bypass the OS look of UI elements you would need to build your own with building blocks like EventHandler (for buttons, tabview etc). Easy enough to do but beyond the scope of this question. For an example of a custom slider see reference.wolfram.com/mathematica/tutorial/…. –  Mike Honeychurch Feb 7 at 21:36

1 Answer 1

There are some options to Button that let you change the way a button looks. For example, Appearance and BaseStyle. Also, you can use a Graphics object as the button label, which will give you a lot of control over appearance. See Button for more detail. In particular, look at Option > Neat Examples.

share|improve this answer

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.