On 05/11/2008, at 1:02 AM, Jon Bradley wrote:
On Nov 4, 2008, at 8:48 AM, Nik Derewianka wrote:
1) The Panel does not display it's title bar or drop shadow
bordering,
but seem to be displaying more as standard Box elements.
2) Trying to drag select text on a TextInput child in the panel item
renderer causes the containing List dragMove to trigger causing it to
try and drag the entire panel in the list, rather than just stay with
selecting the text.
For #1, I'm not sure what your code looks like so I don't know if I
could offer any suggestions.
I've stripped it right back of extraneous stuff and posted it:
http://artofmultimedia.com.au/flex/test.html
Click add a few times, no Panel chrome. On top of that, move your
mouse over the list and only the last item added gets highlighted,
dragging an item shows the drag proxy from the bottom item and the
dropping is completely screwy.
For #2, it sounds like you might need to add an event listener to
dragMove and use preventDefault on the event, then use the Selection
classes to set focus on the text instance and select it. Or, if
possible, set dragMoveEnabled = false ?
I need the dragMoveEnabled functionality of the list so that the user
can re-order the panels. Going to have a crack at the preventDefault,
I am assuming you mean listen on the dragMove event of the List,
detect if the drag target is the panel and allow the drag, otherwise
if it is one of the child display objects then call preventDefault on
the event ??
Thanks,
Nik