Sep 11, 2017, 10:55 PM
[CLOSED] Desktop - drag menu item from StartMenu and drop as shortcut
Hello support team,
is it possible to dynamically create desktop shortcuts for the selected StartMenu items of the Desktop? What I want to achieve is offer a user-friendly way to create a desktop icon for chosen StartMenu application. Is it possible to implement, for example, drag & drop for StartMenu items? I spent quite some time with looking for a solution and although I had no problem with drag & drop implementation for tree menu or droppable panels, here I'm lost.
According to my simple example, I want to drag the menu item of the European Union and drop a new shortcut next to the Notepad shortcut. Is it feasible? Please, can you give me some clue?
Ext.NET version 4.3
Thank you,
Dan
is it possible to dynamically create desktop shortcuts for the selected StartMenu items of the Desktop? What I want to achieve is offer a user-friendly way to create a desktop icon for chosen StartMenu application. Is it possible to implement, for example, drag & drop for StartMenu items? I spent quite some time with looking for a solution and although I had no problem with drag & drop implementation for tree menu or droppable panels, here I'm lost.
According to my simple example, I want to drag the menu item of the European Union and drop a new shortcut next to the Notepad shortcut. Is it feasible? Please, can you give me some clue?
Ext.NET version 4.3
Thank you,
Dan
@{
Layout = null;
List<MenuItem> startMenu = new List<Ext.Net.MenuItem>();
startMenu.Add(new Ext.Net.MenuItem() { Icon = Icon.FlagEuropeanunion, Text = "European Union" });
startMenu.Add(new Ext.Net.MenuItem() { Icon = Icon.FlagUs, Text = "United States" });
}
@Html.X().ResourceManager()
@(Html.X().Desktop()
.ID("_nelisDesktop")
.Listeners(l => { l.Ready.Handler = " desktopReady()"; })
.DesktopConfig(
Html.X().DesktopConfig()
.SortShortcuts(true)
.WallpaperStretch(true)
.ShortcutDragSelector(true)
)
.StartMenu(
Html.X().DesktopStartMenu()
.ID("_nelisDesktop_StartMenu")
.Title("Allegro Desktop")
.Icon(Icon.Application)
.MenuItems(startMenu)
.ToolConfig(
Html.X().Toolbar()
.Width(100)
.Items(
Html.X().Button()
.Icon(Icon.Calculator)
.Text("Calculator")
)
)
)
.TaskBar(
Html.X().DesktopTaskBar()
.TrayWidth(40)
.QuickStartWidth(75)
.QuickStart(
Html.X().Toolbar()
.Items(
Html.X().Button()
.Icon(Icon.ApplicationTileVertical)
.ToolTip("Tile windows")
.OverflowText("Tile windows"),
Html.X().Button()
.Icon(Icon.ApplicationCascade)
.ToolTip("Cascade windows")
.OverflowText("Cascade windows"),
Html.X().Button()
.Icon(Icon.ApplicationViewIcons)
.ToolTip("Default icons positions")
)
)
)
.Modules(
Html.X().DesktopModule().ModuleID("Notepad").Shortcut(new DesktopShortcut { Name = "Notepad", IconCls = "x-notepad-shortcut" })
)
)
<script type="text/javascript">
var $desktop;
function desktopReady() {
$desktop = Nelis._nelisDesktop;
}
</script>
Last edited by fabricio.murta; Sep 13, 2017 at 9:23 PM.