callbacks renamed layer
I had this dialog
( global test rollout test "Untitled" width:162 height:48 ( dropDownList ddl_Laylist "DropDownList" pos:[5,3] width:154 height:40 fn MyContainedLayer = ( ddl_Laylist.items=#() layerContent= #("0 (default)") + sort (for layer = 1 to layerManager.count - 1 collect (layerManager.getLayer layer).name) ddl_Laylist.items=layerContent ) on test open do ( MyContainedLayer() callbacks.removeScripts id:#lay_List03 callbacks.addScript #layerCreated "test.MyContainedLayer()" id:#lay_List03 callbacks.addScript #layerDeleted "test.MyContainedLayer()" id:#lay_List03 callbacks.addScript #nodeLayerChanged "test.MyContainedLayer()" id:#lay_List03 ) ) createdialog test )
the callbacks layer created n layer deleted is workin fine but when I try to rename the layer from layer manager, its seems not update in my ddl_laylist items as well, but i already add node layer changed callbacks, did something wrong with my script !? please I need some suggestion to make my script working.