# Some little mistakes

**URL:** <https://forum.juce.com/t/some-little-mistakes/892>\
**Category:** The Projucer\
**Created:** [June 15, 2006, 11:05pm UTC](https://forum.juce.com/t/some-little-mistakes/892 "2006-06-15T23:05:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [June 15, 2006, 11:05pm UTC](https://forum.juce.com/t/some-little-mistakes/892/1 "2006-06-15T23:05:11Z")

</div>

i’m starting using the jucer cause it’s very handy for making options window components. in the jucer all is fine, but when exporting the files and linking to the application i have noticed a couple of things. first (from the jucer) setting a button name it set the current TextButton text, but setting the text property of the button don’t do nothing (in exported cpp). i think name property should actually set Component internal name, text property should be button text (and use that in the TextButton constructor) cause in juce is behaving like this. also, the same thing belong to the toggle buttons, the name sets the text besides the toggle, but actually the text property don’t set anything at all (and in jucer is the opposite!). anyway the rest is extremely good, very cool having opened a vc project with some files and modify in juce the same files while looking the source changes from time to time in realtime ! (the only thing that makes me bad is that sometimes it generates code better than mine ! eheh :shock:)

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@OvermindDL1](https://forum.juce.com/u/OvermindDL1)\
**Post date:** [June 16, 2006, 12:04am UTC](https://forum.juce.com/t/some-little-mistakes/892/2 "2006-06-16T00:04:28Z")

</div>

Let me throw in a bug I experienced last night. I started using it for the first time last night mind you, so I started it up, and I was starting up another project that needed a listbox on the left, and a listbox on the right, with space above the right listbox for a few labels. I created a new component, added a new listbox, and the program hung, unsure what was up and didn’t have time to look so I just made it manually then. I will try to duplicate the problem tonight if I can should you want (assuming the listbox part is finished)…

---

<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:** [June 16, 2006, 7:59am UTC](https://forum.juce.com/t/some-little-mistakes/892/3 "2006-06-16T07:59:41Z")

</div>

Ta for the bugs. There’s so much code in there and I wrote it so fast that I’m not surprised there’s a few glitches! For the button thing, you just need to add this to the ButtonHandler::fillInCreationCode() to generate code that sets its name:

```auto
        if (b->getButtonText() != b->getName())
        {
            code.constructorCode 
              << memberVariableName << "->setButtonText ("
              << quotedString (b->getButtonText()) << ");\n";
        }
```

I’d of course be keen to know what happened with the hang-up… You could try using it in debug mode in case it happens again?

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@OvermindDL1](https://forum.juce.com/u/OvermindDL1)\
**Post date:** [June 16, 2006, 12:10pm UTC](https://forum.juce.com/t/some-little-mistakes/892/4 "2006-06-16T12:10:45Z")

</div>

Next time I get a free half hour or so I will try to duplicate it.

---

<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:** [May 12, 2017, 10:01am UTC](https://forum.juce.com/t/some-little-mistakes/892/5 "2017-05-12T10:01:45Z")

</div>

Closed on May 12, 2017, 10:01am UTC


