Re: Movable line via mouse
| From: | Steph Fox | Date: | Tue, 07 Feb 2006 05:51:42 +0000 |
| Subject: | Re: Movable line via mouse | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6671@lists.php.net to get a copy of this message | ||
web vs desktop...
----- Original Message ----- From: "Benjamin Smith" <lists@benjamindsmith.com>
To: <php-gtk-general@lists.php.net>
Sent: Tuesday, February 07, 2006 7:42 AM
Subject: Re: [PHP-GTK] Movable line via mouse
I solved something like this in a very stupid-simple way: I wanted to get stats on bandwidth usage, and hadn't discovered MRTG yet. So, I wrote a cron job to query the ifconfig command's output, save to a file. Then, a PHP parser that turned the data into a simple graph based on colored 1x1 px images stretched to fit width/height in HTML and displayed in a table. A "poor-man"s graphing tool; it was (is!) very effective. -Ben On Wednesday 07 December 2005 12:12, Tabber Watts wrote:I in now way need/require anyone to completely solve this issue butneedideas on how this might be accomplished.Situation:I have data on six different sites, and each collect data periodhas a+/- 30 minute skew for each site. I need to allow users to see thesedata collection periods for a given day and select when they want tolook at data for all six sites.I can solve this problem without using graphics and just displayingtexttimes and having the user enter in the times manually but I wouldlike todo it with graphics.My idea:Generate a timeline in a window, with the sites listed on theleftside of the window. Then there will be two vertical lines that a usercould click on and drag to the appropriate times they want to startand stop looking at the data.What I know I can do:Generation of the window with the full timeline andplacement of datalines for each site in a GtkLayout.What I don't know how to do:Clicking and dragging of the line. The closestthing I could find tothis functionally is the colorselector.php demo usingGtkColorSelectionDialog.Any help or pointing in the right direction would be helpfull. Mahalo,Tabber Watts-- "The best way to predict the future is to invent it." - XEROX PARC slogan, circa 1978 -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com