phpgtk__legacy/wiki1/wiki.d/Code.GtkCList

24 lines
2.7 KiB
Text

version=pmwiki-1.0.5
newline=²
text=[[include:CodeHintsInc#TopBar#TopBarEnd]]²!!Capture list selection²You have to connect the "button-release-event" after all other functions have worked.²[[include:Main/CodeTable]]²$this->arWidgets["lstExcludes"]->connect_after("button-release-event", array(&$this, "OnClickList"));[[include:Main/CodeTableEnd]]²Get the current selection:²[[include:Main/CodeTable]]²function OnClickList()²{² $nSelRow = $this->arWidgets["lstExcludes"]->selection[0];² if( is_int( $nSelRow)) {² echo get_text( $nSelRow, 0);² }²}//function OnClickList()[[include:Main/CodeTableEnd]]²²The text in col 1 of the selected row is echoed now.²[[include:CodeHintsInc#BottomBar#BottomBarEnd]]
time=1090874572
diff:1090772808:1090772808:=1,16c1²< %define=codelines bgcolor=#ffffd0 color=navy font-size=12px%²< !!Capture list selection²< You have to connect the "button-release-event" after all other functions have worked.²< %codelines%[=²< $this->arWidgets["lstExcludes"]->connect_after("button-release-event", array(&$this, "OnClickList")); =]²< Get the current selection:²< %codelines%[=²< 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.²---²> Describe GtkCList here.²\ No newline at end of file²
author=nathan
author:1090772808=nathan
host:1090772808=82.120.18.177
name=Code.GtkCList
host=82.120.149.253
agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.8 StumbleUpon/1.908
rev=5
diff:1090773990:1090772808:=1d0²< [[include:CodeHintsNav]]²
author:1090773990=nathan
host:1090773990=82.120.18.177
diff:1090801356:1090773990:minor=1c1,2²< [[include:CodeHintsInc#Topbar#TopBarEnd]]²---²> [[include:CodeHintsNav]]²> %define=codelines bgcolor=#ffffd0 color=navy font-size=12px%²17d17²< [[include:CodeHintsInc#BottomBar#BottomBarEnd]]²\ No newline at end of file²
author:1090801356=nathan
host:1090801356=82.124.244.245
diff:1090874502:1090801356:minor=7c7²< [[include:Main/CodeTable]]²---²> %codelines%[=²14c14²< }//function OnClickList()[[include:Main/CodeTableEnd]]²---²> }//function OnClickList()=]²
author:1090874502=nathan
host:1090874502=82.120.149.253
diff:1090874572:1090874502:minor=1c1²< [[include:CodeHintsInc#TopBar#TopBarEnd]]²---²> [[include:CodeHintsInc#Topbar#TopBarEnd]]²4,5c4,5²< [[include:Main/CodeTable]]²< $this->arWidgets["lstExcludes"]->connect_after("button-release-event", array(&$this, "OnClickList"));[[include:Main/CodeTableEnd]]²---²> %codelines%[=²> $this->arWidgets["lstExcludes"]->connect_after("button-release-event", array(&$this, "OnClickList")); =]²
author:1090874572=nathan
host:1090874572=82.120.149.253