Re: Editable tables and general planning help

From: Date: Thu, 07 Jul 2005 18:39:43 +0000
Subject: Re: Editable tables and general planning help
References: 1 2 3 4 5 6 7 8 9  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5930@lists.php.net to get a copy of this message
Here is some quick free advise on a few points. Jake Gordon wrote:
- get scrolling working because at the moment if the table is longer than the window there's no scrollbars. I'm on Windows.
http://gtk.php.net/manual/en/gtk.gtkscrolledwindow.constructor.php
- get it so that as soon as you change the focus from one editable cell to the next it will action a change in the underlying database (i'm pretty sure i can do this msyelf when i get the other issues sorted though)
class someClass { function commitChange(&$widget) {
    if (!isset($this->oldWidget)) {
      return;
    } else {
      // Get values from old widget
      $values = ...
      $this->updateDB($values);
      $this->oldWidget =& $widget;
    }
} } $window->connect_object('set-focus', array('someClass', 'commitChange')); -- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks

« previous php.gtk.general (#5930) next »