View Single Post
  #22  
Old 05-31-2009, 08:51 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
TextListCtrl.onDblClick does not appear to invoke if you're holding down the shift or control key when you double click the control, it's getting in the way of doing multiple selections on the scripted playerlist, onSelect() works fine though.

Used this as a work-around for now though..
PHP Code:
function TextListControl.onSelect(selectedid,selectedtext,selectedrow) {

  if (
timevar2 this.lastclick 0.5) {
    
// double click
  
}
  
  
this.lastclick timevar2;

Also, apparently there is no way to select multiple rows in a textlist using script? Would like to see this possible (also interfering with the playerlist) Would also be nice to be able to set selections in GuiMLTextCtrls and also "getSelectedText()" for GuiMLCtrls, but that's probably more difficult.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”

Last edited by Tigairius; 05-31-2009 at 09:31 AM.. Reason: found another problem
Reply With Quote