Re: [qooxdoo-devel] Reusing a button

2006-11-14 Thread Jim Hunter
Thanks for the response. I am having no problems with the qooxdoo stuff for what I am doing, I was just wondering if you had tried both and settled on SACK. But since you really haven't tested qooxdoo there I will continue using it for my stuff. JimOn 11/14/06, Aaron Cooper <[EMAIL PROTECTED]> wrot

Re: [qooxdoo-devel] Reusing a button

2006-11-14 Thread Aaron Cooper
November 15, 2006 12:23 PM Subject: Re: [qooxdoo-devel] Reusing a button Just out of curiosity, why are you using SACK and not the built in request component? Do you feel SACK is better/faster/??? or is it just because it's something that you are used to using?Jim On 11/14/06

Re: [qooxdoo-devel] Reusing a button

2006-11-14 Thread Jim Hunter
w_logout');Window.add(myLogoutButton);CheersAaron- Original Message - From: "Sebastian Werner" <[EMAIL PROTECTED]>To: "qooxdoo Development" <qooxdoo-devel@lists.sourceforge.net >Sent: Tuesday, November 14, 2006 7:30 PMSubject: Re: [qooxdoo-devel] Reusing

Re: [qooxdoo-devel] Reusing a button

2006-11-14 Thread Aaron Cooper
; return btnLogout; } And then I use this on the widows by: // Custom Logout Button myLogoutButton = new logoutButton('hw_logout'); Window.add(myLogoutButton); Cheers Aaron - Original Message - From: "Sebastian Werner" <[EMAIL PROTECTED]> To: "qooxdoo De

Re: [qooxdoo-devel] Reusing a button

2006-11-13 Thread Sebastian Werner
You have many options: #1: Cloning the button #2: Write an own class which extends Button. Add the event listeners and styling into the constructor for example. Then create instances from this class instead of Button. #3: To extract the command part, it's better to create a instance of qx.cli

Re: [qooxdoo-devel] Reusing a button

2006-11-13 Thread Aaron Cooper
Does anyone have an idea of this? Or do I have to rewrite the button everytime I want to use it? - Original Message - From: "Aaron Cooper" <[EMAIL PROTECTED]> To: "qooxdoo Development" Sent: Tuesday, November 14, 2006 4:11 PM Subject: Re: [qooxdoo-devel] Reu

Re: [qooxdoo-devel] Reusing a button

2006-11-13 Thread Aaron Cooper
an event listener to the clone, but this button is going to perform the same action every time. Aaron - Original Message - From: "Aaron Cooper" <[EMAIL PROTECTED]> To: "qooxdoo Development" Sent: Tuesday, November 14, 2006 3:55 PM Subject: Re: [qooxdoo-dev

Re: [qooxdoo-devel] Reusing a button

2006-11-13 Thread Aaron Cooper
Sheesh, that easy huh? Suits me, works perfectly. Cheers Dan Aaron - Original Message - From: "Dan Fillpot" <[EMAIL PROTECTED]> To: "qooxdoo Development" Sent: Tuesday, November 14, 2006 3:50 PM Subject: Re: [qooxdoo-devel] Reusing a button > var

Re: [qooxdoo-devel] Reusing a button

2006-11-13 Thread Dan Fillpot
var newButton = origButton.clone(); HTH, Dan Aaron Cooper wrote: > Hi all, > > I've got a button (well several actually) that I want to use on > multiple windows of my app. In this case it's for logging out: > > /

[qooxdoo-devel] Reusing a button

2006-11-13 Thread Aaron Cooper
Hi all,   I've got a button (well several actually) that I want to use on multiple windows of my app. In this case it's for logging out:   //* Logout Button/***