# Very cool new feature: JUCE\_LIVE\_CONSTANT

**URL:** <https://forum.juce.com/t/very-cool-new-feature-juce-live-constant/11978>\
**Category:** News and Announcements\
**Created:** [December 3, 2013, 2:06pm UTC](https://forum.juce.com/t/very-cool-new-feature-juce-live-constant/11978 "2013-12-03T14:06:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 3, 2013, 2:06pm UTC](https://forum.juce.com/t/very-cool-new-feature-juce-live-constant/11978/1 "2013-12-03T14:06:37Z")

</div>

Just a quick announcement of a simple-but-cool new feature I just added..

I found myself needing to tweak a few constants in tracktion to get the UI looking right - simple stuff like&nbsp;colours, sizes, etc. and suddenly had an idea for a neat trick&nbsp;to make the process much easier!

You can have a read of the&nbsp;docs [here](http://www.juce.com/api/juce__LiveConstantEditor_8h.html#ae2cc503e5069bf8510953e212317abaa), but the gist is&nbsp;when you can wrap this macro around a primitive constant in your code (most likely in a paint() or resized() method, but it'll work anywhere), it uses extreme cunningness to pop up a window that'll let you tweak that value in real-time, and will show you what the updated value will look like in the original source code.

I was really chuffed with this!&nbsp;It&nbsp;only took a few hours to write, but should be super-handy for all kinds of stuff. It's not quite finished: I still need to make it able to automatically re-save the changed values into your source file, and I should add an example to the demo app showing how to use it. But I'll be using it myself, so will fine-tune and improve it as I go along.

Hope it proves useful to other people too!
