• 26 May 2013 - Since the new version attracted too many spammy registrations (around 250 fake accounts/day), user registrations are now protected by Mollom's spam protection service. Contact us if this causes some trouble.
  • 01 May 2013 - After the site upgrade, all passwords were reset and you will need to ask the site for a login reset on your first connection.

Blogs

Glade v3.4.1 for windows!

Glade 3.x screenshot on Win32 The prolific though anonymous author of the PHP-GTK2 Cookbook just mentioned an early build of the latest Glade for Win32 : Glade v3.4.1 for windows!

After giving the 3.x versions a spin, I can only suggest PHP-GTK2 developers already using Glade try it too, as the single-window UI improvement definitely changes impressions regarding the usability of Glade.

Gul 2.0 on the way

GUL 2.0 screenshot Hi all,

2 years after begining, I'm happy to announce you the " Beta " release of the Gul 2.0 project, the XUL parser for PHP GTK (97% released). I have to do lot of things, but i think it looks like something.

You can find documentation on RedSofa.

Callback function and object oriented php style

Dear Php-Gtk user and believers,

Yesterday I found something out about php-gtk and object oriented stuff and I guess a lot of people will come to the same trouble : when you connect signals from your class you have to watch out e.g.

<?php
$treeview
->connect('drag-data-received', array($this,'on_drop'));
?>
  • $this without ' ' means the instance of the class
  • '$this' so with quotes it means the class itself

Using associative arrays with a text-based GtkComboBox

Sometimes I need to create a combobox to manage associative arrays. I need something which works like HTML comboboxes, where the value chosen by the user, is different from the one sent to the application.

Just like that:

<option value="Red">Apple</option>

so I wrote a component which doesn't use a GtkTreeModel to manage data.


<?php
class GtkAssociativeComboBox {
private $data;
public $box;

public function __construct ()
{
$this->box = GtkCombobox::new_text();
$this->data = null;
}

/**

Getting (x,y) coordinates when clicking on images

I wrote an application where the user clicks on a GtkImage, and I want to know *where* the user clicked. Here's a simple object extending GtkAlignment.

The doors open up again

I was a RapidQ programmer. RapidQ was my "Paradise" for several reasons:

- I had not to pay to get/use development tools
- Executables were able to use external libraries
- GUI creation was *really* easy
- rudimental object-oriented programming

when I realized that RapidQ had no future, the doors of heaven closed. I've been searching for another good language for years.

Syndicate content