I've spent too much time on this issue which I'm sure one of you pro's can solve in 30 seconds. Very simply, how do you (load and then) call a window from one of the links on the right side of the start menu?
I know how to load a module so it appears on the left side, but can't for the life of me create the exact same thing, except that the module appears on the right. Below is a little snippet that might jog the memory: Windows ME Tips from 5 Star Support:: Free Microsoft Windows ME tips and tricks that are helpful and easy to understand. When the Start menu is clicked, you may see short menu items loaded with small arrows http://www.5starsupport.com/info/winmeinfo.htmHOME | Chapter 1: Getting Acquainted with Excel:: desktop shortcut by clicking the Start button, right-clicking Microsoft Office items on the Control menu; these automatically pop up whenever you click http://media.wiley.com/product_data/excerpt/8X/07645375/076453758X.pdfHOME |
getStartConfig : function(){
return {
title: 'Jack Slocum',
iconCls: 'user',
toolItems: [{
text:'My Account',
iconCls:'settings',
handler: // <-- WHAT GOES HERE?!
scope:this
},'-',{
text:'Logout',
iconCls:'icon_door_in',
handler:logout,
scope:this
}]
};
}
Thanks for your time!
Example:
getStartConfig : function(){
var win = new MyDesktop.GridWindow();
win.init();
win.app = this;
return {
title: 'Jack Slocum',
iconCls: 'user',
toolItems: [{
text:'Settings', Windows XP: File Management | UNC-Chapel Hill Help and Support:: To work with drives and folders, you must first click on the icon for My To modify the Start menu further, right-click on a blank area of the http://help.unc.edu/2277HOME |
iconCls:'settings',
scope:this
},'-',{
text:'Logout',
iconCls:'logout',
scope:this
},
win.launcher
]
};
}
Anybody?
Condor, thanks for that, it seems to be working just fine. I'm struggling a little to reference the windows I want to create and destroy, could you point me in the direction of some documentation that might help? Like for instance, if you have a cancel button, what's the correct way of destroying the window it's in? Using Ext.getCmp kills the window, but doesn't remove it from the task bar...
/* Update: SOLVED */
I added a public function to MyDesktop.UserDetails (my window name, it's ID is 'user_details'):
MyDesktop.UserDetails = Ext.extend(Ext.app.Module, {
//id:'user_details',
init : function(){
this.launcher = {
text: 'My Profile',
iconCls:'icon_user_edit',
handler : this.createWindow,
scope: this
}
UserDetails = this; //This is how it can be referenced later, for more details see: http://extjs.com/forum/showthread.php?p=71568#post71568
},
removeWindow : function(){ //this function seems to do the trick
var desktop = this.app.getDesktop();
var win = desktop.getWindow('user_details');
win.close();
},
createWindow : function(){
...
}
});
Then called it from the handler as such:
handler: function() { UserDetails.removeWindow(); }
I'm sure there is a better/faster way of doing it, but it worked, so it's ok for now.
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|