The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

[CLOSED] Desktop Shortcut

  1. #1

    [CLOSED] Desktop Shortcut

    Hi,

    i am trying to add a tool tip for desktop shortcut, but it does not seem to work

    Default.aspx
    ---------------------

    
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CooliteDemo._Default" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>BlueprintOnline</title>
        <style type="text/css">
            #ux-taskbar-start, #TaskBarStart-xsplit
            {
                display: none;
            }
            .start-button
            {
                background-image: url(vista_start_button.gif) !important;
            }
            .icon-AddressBook
            {
                background-image: url(resources/images/address_book_btn_off.png) !important;
                background-repeat: no-repeat;
                background-position: center bottom;
                filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="resources/images/address_book_btn_off.png");
            }
            .desktopEl
            {
                position: absolute !important;
                background-color: black;
            }
            .desktopEl1
            {
                position: absolute !important;
            }
            .desktopElText
            {
                color: #4dc8e9;
                font-size: medium;
                font-weight: bold;
            }
        </style>
    </head>
    <body>
        <form id="DefaultForm" runat="server">
        <ext:Hidden ID="ShowPermissions" runat="server" />
        <ext:Hidden ID="ShowAnnouncements" runat="server" />
        <ext:ResourceManager ID="ResourceManager1" DirectMethodNamespace="BPOLX" runat="server"
            RethrowAjaxExceptions="true" Theme="Slate">
        </ext:ResourceManager>
        <ext:Desktop ID="MyDesktop" runat="server" BackgroundColor="Black" ShortcutTextColor="White">
            <Modules>
                <ext:DesktopModule ModuleID="DesktopModule6" WindowID="winPermissions">
                    <Launcher ID="Launcher6" runat="server" Text="Permissions" Icon="UserTick" />
                </ext:DesktopModule>
                <ext:DesktopModule ModuleID="DesktopModule7" WindowID="winAnnouncement">
                    <Launcher ID="Launcher1" runat="server" Text="Announcement" Icon="UserTick" />
                </ext:DesktopModule>
            </Modules>
            <Shortcuts>
                <ext:DesktopShortcut ModuleID="DesktopModule6" X="100" Y="200" ShortcutID="Shortcut1"
                    IconCls="shortcut-icon icon-AddressBook" />
                <ext:DesktopShortcut ModuleID="DesktopModule7" X="100" Y="270" ShortcutID="Shortcut2"
                    IconCls="shortcut-icon icon-AddressBook" />
            </Shortcuts>
        </ext:Desktop>
        <ext:ToolTip ID="ToolTip1" runat="server" Html="Hello! I'm <SPAN class=highlight>shortcut</SPAN>'s <SPAN class=highlight>tooltip</SPAN>."
            Target="Shortcut1-shortcut" />
        <ext:ToolTip ID="ToolTip2" runat="server" Html="Hello! I'm <SPAN class=highlight>shortcut</SPAN>'s <SPAN class=highlight>tooltip</SPAN>."
            Target="Shortcut2-shortcut" />
    
    
    
        <ext:DesktopWindow ID="winPermissions" runat="server" Title="Permissions" Width="600"
            Height="500" Maximizable="false" Layout="Fit">
            <Items>
                <ext:Panel runat="server" ID="pnlPermission" />
            </Items>
            <%-- <DirectEvents>
                <BeforeShow OnEvent="ShowPermissionControl" />
                <BeforeHide OnEvent="HidePermissionControl" />
            </DirectEvents>--%>
        </ext:DesktopWindow>
        <ext:DesktopWindow ID="winAnnouncement" runat="server" Title="Announcements" Icon="SoundOut"
            PageX="25" PageY="25" Maximizable="false" Layout="Fit">
            <Items>
                <ext:Panel ID="pnlAnnouncement" runat="server" />
            </Items>
            <Listeners>
                <BeforeRender Handler="this.setSize(600, 460);" />
            </Listeners>
            <%--  <DirectEvents>
                <BeforeShow OnEvent="ShowAnnouncementControl" />
                <BeforeHide OnEvent="HideAnnouncementControl" />
            </DirectEvents>--%>
        </ext:DesktopWindow>
        </form>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Jan 05, 2011 at 9:11 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please try to set the following .Target of Tooltip.
    Target="ModuleID-shortcut"
    So, in your case:
    Target="DesktopModule6-shortcut"
  3. #3

    Ext.Net Webdesktop customize shortcuts

    Hello there,
    i'm a newbie so that forgive e if this question could be stupid :)

    I downloaded ext.net webdesktop from examples and i'm customizating it.
    It's quite simple and intuitive and i customized without problem but....
    i'd like to make a procedure that permit user to customize desktop shortcuts.
    I saw that to make a desktop shortcut i need to write on aspx page
    <ext:DesktopShortcut ModuleID="DesktopModule1" Text="SOMETHING" IconCls="SOMETHING-ON-YOUR-CSS-CLASS" />
    behind "Shortcuts" tabs.

    I thougth about a webform when user could check options that he wants to see on webdesktop as shortcuts, when he submits shortcuts i can store selection in a table or xml file but how can i call them ??

    Is there a method on page load event to define desktop shortcuts dynamically??

    Ext.Net.DesktopShortcut.??

    I'm using vb.net

    Thanks for your support!!
    Last edited by Daniil; Mar 14, 2011 at 1:07 PM. Reason: Please use [CODE] tags
  4. #4
    Hi,

    Please start a new thread. If you feel that they are related, please feel free to cross link between two.

Similar Threads

  1. cant remove Shortcut from desktop module
    By Kaveh in forum 2.x Help
    Replies: 5
    Last Post: Jan 02, 2013, 6:57 PM
  2. How to load dynamic user controls on desktop shortcut?
    By laphuynhkien in forum 2.x Help
    Replies: 4
    Last Post: Aug 23, 2012, 6:58 PM
  3. Desktop Shortcut BUG on IE
    By joao.msdn in forum 1.x Help
    Replies: 8
    Last Post: Jun 27, 2011, 7:46 AM
  4. Replies: 5
    Last Post: Jan 19, 2011, 4:17 PM
  5. [Desktop] Resize shortcut text?
    By LuB in forum 1.x Help
    Replies: 0
    Last Post: May 06, 2010, 1:51 PM

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.