Hi Konrads,
could you please provide a small example which is showing the problem.
Also a example with a simple QxAtom instead of many QxListItems would be
enough. Thanks.
Sebastian
Konrads Smelkovs schrieb:
This code below "should" change icon from up to down, but the icon
won't change. It changes only after skipping one round. It has
anything to do with preloading maybe? I am clueless :)
--- Execution 1 ---
007625:Was: icons/16/down.png ({value:"name", asc:true})
007625:is: icons/16/down.png ({value:"name", asc:false})
--- Execution 2 ---
010954:Was: icons/16/down.png ({value:"name", asc:false})
010954:is: icons/16/up.png ({value:"name", asc:true})
--- Execution 3 ---
043063:Was: icons/16/up.png ({value:"name", asc:true})
043063:is: icons/16/down.png ({value:"name", asc:false})
with(revSortButton){
addEventListener("execute",function (e){
listItem=SortByList.getSelectedItem();
val=listItem.getValue();
this.debug("Was: " +listItem.getIcon() +
" " + val.toSource());
if(val.asc){
val.asc=false;
listItem.setIcon("icons/16/down.png");
}else{
val.asc=true;
listItem.setIcon("icons/16/up.png");
}
listItem.setValue(val);
QxWidget.flushGlobalQueues()
this.debug("is: " +listItem.getIcon() +
" " + val.toSource());
return true;
});
}
--
Konrads Smelkovs
Applied IT sorcery.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel