You are saying that you would love to
assign drag function for panels not by changing panel descriptionbut but assign it by some another function for example like
function addDragFuncToPanel(panel_name)
{
}
?

I just have tryed some trick with this code of line
r.on_click = panelDragBgr;
and it worked
the problem is that panel on_click event should be empty becouse it will be overwrited, but this registration realy is pasible and it may be that it's realy more comfortable than changeing panel object manualy

it is better than r.on_click = panelDragBgr; ???
addDragFuncToPanel(r); // now can be draged if you will click on it's background

It look's that in 6.40v=> is possible add elements to panel dinamicly
if answer is yes than it's worth to try write funciion which add full panel.width button add the top of panel (like window caption bar) and will execute panelDragBtn()

can you explane this idea a bit
Quote:

different modes and or additional panels (groups of panels)