zoomx / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 0 forks source link

listBoxItem always displayed in upperCase #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem 
l = cp5.addListBox("presets")
         .setPosition(rectLb[x], rectLb[y])
         .setSize(rectLb[dX], rectLb[dY])           
         .setItemHeight(itemH)
         .setBarHeight(itemH)
         .setColorForeground(itemForegroundColor)
         .setColorActive(itemActiveColor)
         .setColorLabel(labelColor)
         ;
  l.captionLabel().toUpperCase(false);
  l.valueLabel().toUpperCase(false);

  ListBoxItem lbi = l.addItem("item",0);
    lbi.toUpperCase(false);
    println(lbi.getToUpperCase());  // trace shows "false"
  }
  l.updateListBoxItems();

What is the expected output? 
"item"

What do you see instead?
"ITEM"

What version of the product are you using? On what operating system?
latest version, on Linux Ubuntu 12.04

I am available to help debug
Thanks,
Bob

Original issue reported on code.google.com by grateful...@gmail.com on 20 Feb 2013 at 4:21

GoogleCodeExporter commented 9 years ago
I learned that the solution is to set the entire listbox.toUpperCase(false);

May I change this to an enhancement request so that it is possible to set the 
general ControlP5 default values of toUpperCase ?

Original comment by grateful...@gmail.com on 21 Feb 2013 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by soj...@gmail.com on 17 Apr 2013 at 3:31