Permalink
Browse files

change tooltip for CVWidget labels

show the widget's full name instead of "add some notes"

Signed-off-by: Stefan Nussbaumer <st9fan@gmail.com>
  • Loading branch information...
nuss committed Apr 24, 2017
1 parent 58c8b50 commit 23353eceb1f69d2fe6c851e345a8391aa5d1a0af
Showing with 3 additions and 4 deletions.
  1. +0 −1 CVCenter/CVWidget.sc
  2. +1 −1 CVCenter/CVWidget2D.sc
  3. +1 −1 CVCenter/CVWidgetKnob.sc
  4. +1 −1 CVCenter/CVWidgetMS.sc
View
@@ -1789,7 +1789,6 @@ CVWidget {
if(theChanger.value.isKindOf(Event), {
ccResponderAction = { |src, chan, num, val|
- [src, chan, num, val].postln;
ctrlString ? ctrlString = num+1;
if(this.getCtrlButtonBank(slot).notNil, {
if(ctrlString % this.getCtrlButtonBank(slot) == 0, {
View
@@ -174,7 +174,7 @@ CVWidget2D : CVWidget {
nameField = TextView(parent, Rect(label.bounds.left, label.bounds.top+label.bounds.height, thisWidth-2, thisHeight-label.bounds.height-2))
.background_(Color.white)
.font_(Font(Font.available("Arial") ? Font.defaultSansFace, 9))
- .string_("Add some notes if you like")
+ .string_(name.asString)
.visible_(false)
.keyUpAction_({ wdgtInfo = nameField.string })
;
View
@@ -138,7 +138,7 @@ CVWidgetKnob : CVWidget {
nameField = TextView(parent, Rect(label.bounds.left, label.bounds.top+label.bounds.height, thisWidth-2, thisHeight-label.bounds.height-2))
.background_(Color.white)
.font_(Font(Font.available("Arial") ? Font.defaultSansFace, 9))
- .string_("Add some notes if you like")
+ .string_(name.asString)
.visible_(false)
.keyUpAction_({ wdgtInfo = nameField.string })
;
View
@@ -192,7 +192,7 @@ CVWidgetMS : CVWidget {
nameField = TextView(parent, Rect(label.bounds.left, label.bounds.top+label.bounds.height, thisWidth-2, thisHeight-label.bounds.height-2))
.background_(Color.white)
.font_(Font(Font.available("Arial") ? Font.defaultSansFace, 9))
- .string_("Add some notes if you like")
+ .string_(name.asString)
.visible_(false)
.keyUpAction_({ wdgtInfo = nameField.string })
;

0 comments on commit 23353ec

Please sign in to comment.