[CLOSED] How to add a function like "Desktop Switching"?

  1. #1

    [CLOSED] How to add a function like "Desktop Switching"?

    Hi,

    I want my desktop can switch like this.
    In different desktop, Show different Shortcut&wallpaper.
    how can I do?

    Thanks
    Attached Thumbnails switchDesktop1.jpg   switchDesktop2.jpg  
    Last edited by Daniil; Nov 18, 2014 at 6:24 PM. Reason: [CLOSED]
  2. #2
    Hi @mis,

    There is no such the functionality built-in, but it should be possible to implement from scratch.

    1. Have you already put the numbers at the top as you have on the screenshot or it is just a mockup?

    2. As for setting a wallpaper on the fly, it appears to be an easy part.
    App.Desktop1.getDesktop().setWallpaper("wallpaper.png");
    3. Managing shortcuts is a more complicated task. I think there should be a possibility to remove and add shortcuts on the fly.

    Please look at the addModule method here.
    http://svn.ext.net/premium/trunk/Ext...ktop/js/App.js

    It adds a module on the fly and a shortcut if defined. I would recommend you to try to "exctract" the code for adding a shortcut.

    You can try the same "technique" to determine how to remove a shortcut.

    I would also consider a possibility to show and hide of shortcuts as an alternative of adding and removing. Once I've came up with an example for Ext.NET v1.
    http://forums.ext.net/showthread.php...ll=1#post57850

    Hopefully that helps you to start implementing such a nice feature. You are welcome to share a solution when ready:)
  3. #3
    Thanks. Mr Daniil,

    I got some inspiration.

    The Shortcut can hide by "Hidden" property. Could we set the Shortcut property as javascript property? Use a button event. When we press the button, some of the Shortcuts are hidden(not all). other buttons can hide other Shortcuts.

    Actually, I just want to use a set of buttons to control the display of shortcuts.
  4. #4
    Unfortunately, I don't see an API way to manage the Hidden property on the fly.

    Please look at the addModule method here.
    http://svn.ext.net/premium/trunk/Ext...ktop/js/App.js

    It adds a module on the fly and a shortcut if defined. I would recommend you to try to "exctract" the code for adding a shortcut.

    You can try the same "technique" to determine how to remove a shortcut.
    Please clarify have you considered that?

Similar Threads

  1. Replies: 2
    Last Post: Nov 23, 2013, 7:18 AM
  2. Replies: 6
    Last Post: May 31, 2013, 4:04 AM
  3. Replies: 5
    Last Post: May 02, 2012, 6:37 PM
  4. Replies: 4
    Last Post: Oct 11, 2011, 3:42 AM
  5. Replies: 8
    Last Post: May 30, 2011, 6:55 PM

Tags for this Thread

Posting Permissions