Re: Using VScales widgets
- From: "rahul karurkar" <rahulkr mahindrabt com>
- To: "Tristan Van Berkom" <vantr touchtunes com>, "Chamindu Ruwin Munasinghe" <Chamindu hsenid lk>
- Cc: <gtk-app-devel-list gnome org>
- Subject: Re: Using VScales widgets
- Date: Fri, 21 Jun 2002 15:34:20 +0530
Hi
you can give signal to the adjustment of VScale that "value-changed" and in
this callback you will update the other widget
if the other widget is scale then you write
the following function for the adjustment of the second VScale.
gtk_adjustment_set_value(GTK_ADJUSTMENT(adj2),float updationValue);
Regards
Rahul karurkar
----- Original Message -----
From: Tristan Van Berkom <vantr touchtunes com>
To: Chamindu Ruwin Munasinghe <Chamindu hsenid lk>
Cc: <gtk-app-devel-list gnome org>
Sent: Thursday, June 20, 2002 8:15 PM
Subject: Re: Using VScales widgets
Chamindu Ruwin Munasinghe wrote:
Hi
I'm new to development on Linux platform. I am trying to make a
simple application using Glade. I'm using two VScale widgets and I
want to
update one when the other changes. how can i do that.
Thanks
Chamindu
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
You might be able to do that just using a callback and extracting the
value
of one ... setting the value of the other (should look something like
GTK_VSCALE(widget)->xpos = ... )
but then you'll have to get it to draw (I think the method is
GTK_VSCALE(widget)->draw( maybe args ? )
Or you could write a widget inheriting from whatever GtkVscale inherits
from and
make some kind of "Container" with specific functionality.
Either way you'll get your hands dirty and read the source ;P
Cheers!
-Tristan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
*********************************************************
Disclaimer
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]