• 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.

Capture GtkCList selection

You have to connect the button-release-event after all other functions have worked.

<?php

// Connect signal
$this->arWidgets["lstExcludes"]->connect_after(
 
"button-release-event",
  array(&
$this, "OnClickList"));

// Get the current selection:
<?php
function OnClickList() {
 
$nSelRow = $this->arWidgets["lstExcludes"]->selection[0];
  if(
is_int( $nSelRow)) {
    echo
get_text( $nSelRow, 0);
    }
  }
//function OnClickList()
?>

The text in col 1 of the selected row is echoed now.