Profile Picture

Preventing user from dragging shapes INTO NLibraryMaster objects

Posted By Martin Bradfrd 14 Years Ago

Preventing user from dragging shapes INTO NLibraryMaster objects

Author
Message
Martin Bradfrd
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 5, Visits: 1
Hi there,
I have an NlibraryBrowser document in my application and I was hoping there was a way to stop user from being able to drag items from my NDrawingView object into my NLibraryBrowser object?

Thanks!
Martin BG

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Martin,

The library browser is a Nevron Panel Bar the bands of which are instances of the NLibraryGroup class. Each library group couples a NLibraryDocument and NLibraryView. To disable drop on the libraries in a browser you need to set the AllowDrop property of each library view to false:

foreach (NLibraryGroup group in browser.Bands)
{
group.View.AllowDrop = false;
}

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic