ibeam column select tweaks, fix title alpha fader value popup, title bar border color...
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcslider.C
index 7a60a1f44ee423a3c953b92d71cb0ffd8949803d..882e5c9cfd3b470a2a48d2f0f0a80b3175f7f3ee 100644 (file)
@@ -171,6 +171,7 @@ int BC_Slider::get_button_pixels()
 
 void BC_Slider::show_value_tooltip()
 {
+       if( !show_number ) return;
 //printf("BC_Slider::show_value_tooltip %s\n", get_caption());
        set_tooltip(get_caption());
        keypress_tooltip_timer = 2000;
@@ -195,7 +196,7 @@ int BC_Slider::repeat_event(int64_t duration)
                        }
                }
                else
-               if(status == SLIDER_HI && tooltip_text)
+               if(status == SLIDER_HI && tooltip_text && show_number)
                {
                        if(!tooltip_text[0] || isdigit(tooltip_text[0]))
                        {
@@ -298,6 +299,11 @@ void BC_Slider::disable()
        draw_face(1);
 }
 
+void BC_Slider::enable_show_value(int v)
+{
+       show_number = v;
+}
+
 int BC_Slider::button_press_event()
 {
        int result = 0;