8125835
Joined: 15 Mar 2008 Posts: 2
|
Posted: Mon Mar 31, 2008 5:34 pm Post subject: Any API to show the fill level in horizontal scale??? |
|
|
Hi,
I am writing a Media player application using GTK. I am using horizontal scale for volume slider.
I have writtten this code:
GtkWidget* hscale;
hscale = gtk_hscale_new_with_range(0.0, 100, 1.0);
gtk_widget_set_size_request(hscale, 80, -1);
gtk_scale_set_draw_value(GTK_SCALE(hscale), FALSE);
gtk_range_set_inverted(GTK_RANGE(hscale), TRUE);
It would graphically look like:
|------------------------------------|------||
<---------------------------------->
Now i want to show the region in the slider ass mentioned by arrow to be filled so that when i open the player, the volume slider is filled by default and when i drag it from right-to-left, it looks like i am decreasing the volume.
Can anybody tell me a API to do that??? I have searched that and applied 1-2 techniques, but nothing is working.
Any help in this regard would be great...
Thanks in advance.
cheers..
Jamie |
|