From: Raymond I. <xw...@ya...> - 2003-10-02 03:54:26
|
Hi, Check out cvs for some of really cool new widgets for DynAPI 3 -- Raymond Irving __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Brian H. <bg...@ke...> - 2003-10-02 10:03:12
|
Stacker.js is preaty cool.. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Raymond Irving Sent: Wednesday, October 01, 2003 11:54 PM To: DynApi-Help Subject: [Dynapi-Help] New List, Label and Window Widgets Hi, Check out cvs for some of really cool new widgets for DynAPI 3 -- Raymond Irving __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |
From: Daniel T. <de...@ti...> - 2003-10-02 10:36:07
|
Great, atleast someone except me think its useful then :) Regards Daniel -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Brian Hayes Sent: den 2 oktober 2003 12:00 To: dyn...@li... Subject: RE: [Dynapi-Help] New List, Label and Window Widgets Stacker.js is preaty cool.. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Raymond Irving Sent: Wednesday, October 01, 2003 11:54 PM To: DynApi-Help Subject: [Dynapi-Help] New List, Label and Window Widgets Hi, Check out cvs for some of really cool new widgets for DynAPI 3 -- Raymond Irving __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |
From: Andrew G. <an...@zo...> - 2003-10-03 03:14:56
|
Daniel Tiru wrote: > Great, atleast someone except me think its useful then :) Hi Daniel, I have been looking at your stacker and window widgets, and I also think they are excellent. I have a couple of very minor issues that you may like to look at: - stacker.js has various methods that use the variable 'i' for a loop counter without declaring the variable to be local. I had some very strange side-effects when I used a for-loop with iterator 'i' to add windows to the stacker. I think that the remove(), move(), and generate() methods all need a "var i;" declaration. - I have made a sub-class of Window that sets the height of the content layer to the natural height of content HTML. But to do this, I had to make a couple of minor tweaks to the Window constructor. A "diff" for my changes is below. Firstly, I put most of the constructor code into an "if(arguments.length>0)" block. This allows the constructor to be called without any arguments, which is necessary if you want to set Window as the prototype of a sub-class. Next, I added an "if(this.h)" test before the line that sets the content height. This is purely for my purposes as I didn't want to explicitly set the height of the content layer. Finally, I added a semi-colon on line 27 to keep the compressor happy :) $ cvs diff window.js Index: window.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/gui/window.js,v retrieving revision 1.1 diff -r1.1 window.js 27c27 < this._tmpcnt=0 --- > this._tmpcnt=0; 28a29 > if (arguments.length>0){ 44c45,46 < this.content.setHeight(this.h-this._mnuheight); --- > if (this.h) > this.content.setHeight(this.h-this._mnuheight); 51a54 > } I hope you don't mind me posting these changes. If you would like to see my sub-class (it's not much), just let me know. Thank you for these widgets, and keep up the good work! regards, Andrew Gillett > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Brian > Hayes > Sent: den 2 oktober 2003 12:00 > To: dyn...@li... > Subject: RE: [Dynapi-Help] New List, Label and Window Widgets > > > Stacker.js is preaty cool.. > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Raymond > Irving > Sent: Wednesday, October 01, 2003 11:54 PM > To: DynApi-Help > Subject: [Dynapi-Help] New List, Label and Window Widgets > > Hi, > > Check out cvs for some of really cool new widgets for DynAPI 3 > > > -- > Raymond Irving > |
From: Brian H. <bg...@ke...> - 2003-10-03 13:00:42
|
I also have a question or a comment.... Being that the window widget simulates something that you would see on your PC, would it not make sense to have this widget remember state of a window? Similar to a PC's windows? I would imagine using cookies would do the trick. Food for thought.. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Andrew Gillett Sent: Thursday, October 02, 2003 11:15 PM To: dyn...@li... Subject: Re: [Dynapi-Help] New List, Label and Window Widgets Daniel Tiru wrote: > Great, atleast someone except me think its useful then :) Hi Daniel, I have been looking at your stacker and window widgets, and I also think they are excellent. I have a couple of very minor issues that you may like to look at: - stacker.js has various methods that use the variable 'i' for a loop counter without declaring the variable to be local. I had some very strange side-effects when I used a for-loop with iterator 'i' to add windows to the stacker. I think that the remove(), move(), and generate() methods all need a "var i;" declaration. - I have made a sub-class of Window that sets the height of the content layer to the natural height of content HTML. But to do this, I had to make a couple of minor tweaks to the Window constructor. A "diff" for my changes is below. Firstly, I put most of the constructor code into an "if(arguments.length>0)" block. This allows the constructor to be called without any arguments, which is necessary if you want to set Window as the prototype of a sub-class. Next, I added an "if(this.h)" test before the line that sets the content height. This is purely for my purposes as I didn't want to explicitly set the height of the content layer. Finally, I added a semi-colon on line 27 to keep the compressor happy :) $ cvs diff window.js Index: window.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/gui/window.js,v retrieving revision 1.1 diff -r1.1 window.js 27c27 < this._tmpcnt=0 --- > this._tmpcnt=0; 28a29 > if (arguments.length>0){ 44c45,46 < this.content.setHeight(this.h-this._mnuheight); --- > if (this.h) > this.content.setHeight(this.h-this._mnuheight); 51a54 > } I hope you don't mind me posting these changes. If you would like to see my sub-class (it's not much), just let me know. Thank you for these widgets, and keep up the good work! regards, Andrew Gillett > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Brian > Hayes > Sent: den 2 oktober 2003 12:00 > To: dyn...@li... > Subject: RE: [Dynapi-Help] New List, Label and Window Widgets > > > Stacker.js is preaty cool.. > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Raymond > Irving > Sent: Wednesday, October 01, 2003 11:54 PM > To: DynApi-Help > Subject: [Dynapi-Help] New List, Label and Window Widgets > > Hi, > > Check out cvs for some of really cool new widgets for DynAPI 3 > > > -- > Raymond Irving > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |
From: Daniel T. <de...@ti...> - 2003-10-03 13:08:44
|
Hi Brian! I like the idee, but i think its more up to the site developer to use those functions than to add it to the widget. I will use it myself, but i will keep track of these things on the server, and use the minimized option in the constructor instead. Regards Daniel -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Brian Hayes Sent: den 3 oktober 2003 14:57 To: dyn...@li... Subject: RE: [Dynapi-Help] New List, Label and Window Widgets I also have a question or a comment.... Being that the window widget simulates something that you would see on your PC, would it not make sense to have this widget remember state of a window? Similar to a PC's windows? I would imagine using cookies would do the trick. Food for thought.. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Andrew Gillett Sent: Thursday, October 02, 2003 11:15 PM To: dyn...@li... Subject: Re: [Dynapi-Help] New List, Label and Window Widgets Daniel Tiru wrote: > Great, atleast someone except me think its useful then :) Hi Daniel, I have been looking at your stacker and window widgets, and I also think they are excellent. I have a couple of very minor issues that you may like to look at: - stacker.js has various methods that use the variable 'i' for a loop counter without declaring the variable to be local. I had some very strange side-effects when I used a for-loop with iterator 'i' to add windows to the stacker. I think that the remove(), move(), and generate() methods all need a "var i;" declaration. - I have made a sub-class of Window that sets the height of the content layer to the natural height of content HTML. But to do this, I had to make a couple of minor tweaks to the Window constructor. A "diff" for my changes is below. Firstly, I put most of the constructor code into an "if(arguments.length>0)" block. This allows the constructor to be called without any arguments, which is necessary if you want to set Window as the prototype of a sub-class. Next, I added an "if(this.h)" test before the line that sets the content height. This is purely for my purposes as I didn't want to explicitly set the height of the content layer. Finally, I added a semi-colon on line 27 to keep the compressor happy :) $ cvs diff window.js Index: window.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/gui/window.js,v retrieving revision 1.1 diff -r1.1 window.js 27c27 < this._tmpcnt=0 --- > this._tmpcnt=0; 28a29 > if (arguments.length>0){ 44c45,46 < this.content.setHeight(this.h-this._mnuheight); --- > if (this.h) > this.content.setHeight(this.h-this._mnuheight); 51a54 > } I hope you don't mind me posting these changes. If you would like to see my sub-class (it's not much), just let me know. Thank you for these widgets, and keep up the good work! regards, Andrew Gillett > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Brian > Hayes > Sent: den 2 oktober 2003 12:00 > To: dyn...@li... > Subject: RE: [Dynapi-Help] New List, Label and Window Widgets > > > Stacker.js is preaty cool.. > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Raymond > Irving > Sent: Wednesday, October 01, 2003 11:54 PM > To: DynApi-Help > Subject: [Dynapi-Help] New List, Label and Window Widgets > > Hi, > > Check out cvs for some of really cool new widgets for DynAPI 3 > > > -- > Raymond Irving > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |
From: Raymond I. <xw...@ya...> - 2003-10-03 14:44:18
|
Yep. I think saving the window state is up to the developer. The developer could use the DynAPI Cookie object for storing information. It's very powerfull and easy to use (not to mention cross-browser). -- Raymond Irving --- Daniel Tiru <de...@ti...> wrote: > Hi Brian! > > I like the idee, but i think its more up to the site > developer to use > those functions than to add it to the widget. I will > use it myself, but > i will keep track of these things on the server, and > use the minimized > option in the constructor instead. > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On > Behalf Of Brian > Hayes > Sent: den 3 oktober 2003 14:57 > To: dyn...@li... > Subject: RE: [Dynapi-Help] New List, Label and > Window Widgets > > > I also have a question or a comment.... > > Being that the window widget simulates something > that you would see on > your PC, would it not make sense to have this widget > remember state of a > window? Similar to a PC's windows? I would imagine > using cookies would > do the trick. > > Food for thought.. > > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On > Behalf Of Andrew > Gillett > Sent: Thursday, October 02, 2003 11:15 PM > To: dyn...@li... > Subject: Re: [Dynapi-Help] New List, Label and > Window Widgets > > Daniel Tiru wrote: > > Great, atleast someone except me think its useful > then :) > > Hi Daniel, > > I have been looking at your stacker and window > widgets, and I also think > they are excellent. > > I have a couple of very minor issues that you may > like to look at: > > - stacker.js has various methods that use the > variable 'i' for a loop > counter without declaring the variable to be local. > I had some very > strange side-effects when I used a for-loop with > iterator 'i' to add > windows to the stacker. I think that the remove(), > move(), and > generate() methods all need a "var i;" declaration. > > - I have made a sub-class of Window that sets the > height of the content > layer to the natural height of content HTML. But to > do this, I had to > make a couple of minor tweaks to the Window > constructor. A "diff" for > my changes is below. > > Firstly, I put most of the constructor code into > an > "if(arguments.length>0)" block. This allows the > constructor to be > called without any arguments, which is necessary if > you want to set > Window as the prototype of a sub-class. > Next, I added an "if(this.h)" test before the line > that sets the > content height. This is purely for my purposes as I > didn't want to > explicitly set the height of the content layer. > Finally, I added a semi-colon on line 27 to keep > the compressor happy > :) > > > $ cvs diff window.js > Index: window.js > =================================================================== > RCS file: > /cvsroot/dynapi/dynapi3x/src/gui/window.js,v > retrieving revision 1.1 > diff -r1.1 window.js > 27c27 > < this._tmpcnt=0 > --- > > this._tmpcnt=0; > 28a29 > > if (arguments.length>0){ > 44c45,46 > < > this.content.setHeight(this.h-this._mnuheight); > --- > > if (this.h) > > > this.content.setHeight(this.h-this._mnuheight); > 51a54 > > } > > > I hope you don't mind me posting these changes. If > you would like to > see my sub-class (it's not much), just let me know. > > Thank you for these widgets, and keep up the good > work! > > regards, > Andrew Gillett > > > > > > Regards > > Daniel > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...] > On Behalf Of Brian > > Hayes > > Sent: den 2 oktober 2003 12:00 > > To: dyn...@li... > > Subject: RE: [Dynapi-Help] New List, Label and > Window Widgets > > > > > > Stacker.js is preaty cool.. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...] > On Behalf Of Raymond > > Irving > > Sent: Wednesday, October 01, 2003 11:54 PM > > To: DynApi-Help > > Subject: [Dynapi-Help] New List, Label and Window > Widgets > > > > Hi, > > > > Check out cvs for some of really cool new widgets > for DynAPI 3 > > > > > > -- > > Raymond Irving > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > === message truncated === __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Daniel T. <de...@ti...> - 2003-10-03 13:20:05
|
Hi Andrew! I have looked throught your code and i will make the changes to the stacker, and aswell the ";" to the window :) However i dont really understand the change you did to the window. Do you want the content layer to set the size of the window? Or am i out of the game? Regards Daniel -----Original Message----- From: dyn...@li... [mailto:dyn...@li...] On Behalf Of Andrew Gillett Sent: den 3 oktober 2003 05:15 To: dyn...@li... Subject: Re: [Dynapi-Help] New List, Label and Window Widgets Daniel Tiru wrote: > Great, atleast someone except me think its useful then :) Hi Daniel, I have been looking at your stacker and window widgets, and I also think they are excellent. I have a couple of very minor issues that you may like to look at: - stacker.js has various methods that use the variable 'i' for a loop counter without declaring the variable to be local. I had some very strange side-effects when I used a for-loop with iterator 'i' to add windows to the stacker. I think that the remove(), move(), and generate() methods all need a "var i;" declaration. - I have made a sub-class of Window that sets the height of the content layer to the natural height of content HTML. But to do this, I had to make a couple of minor tweaks to the Window constructor. A "diff" for my changes is below. Firstly, I put most of the constructor code into an "if(arguments.length>0)" block. This allows the constructor to be called without any arguments, which is necessary if you want to set Window as the prototype of a sub-class. Next, I added an "if(this.h)" test before the line that sets the content height. This is purely for my purposes as I didn't want to explicitly set the height of the content layer. Finally, I added a semi-colon on line 27 to keep the compressor happy :) $ cvs diff window.js Index: window.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/gui/window.js,v retrieving revision 1.1 diff -r1.1 window.js 27c27 < this._tmpcnt=0 --- > this._tmpcnt=0; 28a29 > if (arguments.length>0){ 44c45,46 < this.content.setHeight(this.h-this._mnuheight); --- > if (this.h) > this.content.setHeight(this.h-this._mnuheight); 51a54 > } I hope you don't mind me posting these changes. If you would like to see my sub-class (it's not much), just let me know. Thank you for these widgets, and keep up the good work! regards, Andrew Gillett > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Brian > Hayes > Sent: den 2 oktober 2003 12:00 > To: dyn...@li... > Subject: RE: [Dynapi-Help] New List, Label and Window Widgets > > > Stacker.js is preaty cool.. > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Raymond > Irving > Sent: Wednesday, October 01, 2003 11:54 PM > To: DynApi-Help > Subject: [Dynapi-Help] New List, Label and Window Widgets > > Hi, > > Check out cvs for some of really cool new widgets for DynAPI 3 > > > -- > Raymond Irving > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |
From: Andrew G. <an...@zo...> - 2003-10-07 00:45:18
Attachments:
expaningpanelbar.zip
|
Hi Daniel, Daniel Tiru wrote: > Hi Andrew! > > I have looked throught your code and i will make the changes to the > stacker, and aswell the ";" to the window :) > > However i dont really understand the change you did to the window. Do > you want the content layer to set the size of the window? Exactly. Currently the height of the window is fixed to the number of pixels you specify when you create it. I want to create a PanelBar, set its content to an arbitrary amount of text, and have the window automatically size itself to fit the text. My main issue with PanelBar as it stands is that it does not allow subclassing because its constructor fails when invoked with no arguments. I've attached an example of what I wanted, along with a slightly modified version of panelbar.js. I hope you'll be able to see what I'm talking about. > Or am i out of > the game? No way :) > > Regards > Daniel > regards, Andrew |
From: Raymond I. <xw...@ya...> - 2003-10-07 01:50:27
|
why not use the setAutoSize() function? var pb = new PanelBar() pb.setWidth(200) pb.setAutoSize(null,true); // ^ now the panelbar should adjust // to the height of it's content -- Raymond Irving --- Andrew Gillett <an...@zo...> wrote: > Hi Daniel, > > Daniel Tiru wrote: > > Hi Andrew! > > > > I have looked throught your code and i will make > the changes to the > > stacker, and aswell the ";" to the window :) > > > > However i dont really understand the change you > did to the window. Do > > you want the content layer to set the size of the > window? > > Exactly. Currently the height of the window is > fixed to the number of pixels you specify when you > create it. I want to create a PanelBar, set its > content to an arbitrary amount of text, and have the > window automatically size itself to fit the text. > > My main issue with PanelBar as it stands is that it > does not allow subclassing because its constructor > fails when invoked with no arguments. > > I've attached an example of what I wanted, along > with a slightly modified version of panelbar.js. I > hope you'll be able to see what I'm talking about. > > > Or am i out of > > the game? > > No way :) > > > > > Regards > > Daniel > > > > regards, > Andrew > > > ATTACHMENT part 2 application/x-zip-compressed name=expaningpanelbar.zip __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Andrew G. <an...@zo...> - 2003-10-07 05:47:27
|
Thanks for the suggestion! I haven't yet been able to get setAutoSize() to work with PanelBar, but if I can then that would certainly be a much better way of doing what I want. I'll keep trying... Andrew. Raymond Irving wrote: > why not use the setAutoSize() function? > > var pb = new PanelBar() > pb.setWidth(200) > pb.setAutoSize(null,true); > // ^ now the panelbar should adjust > // to the height of it's content > > -- > Raymond Irving > > > --- Andrew Gillett <an...@zo...> wrote: > >>Hi Daniel, >> >>Daniel Tiru wrote: >> >>>Hi Andrew! >>> >>>I have looked throught your code and i will make >> >>the changes to the >> >>>stacker, and aswell the ";" to the window :) >>> >>>However i dont really understand the change you >> >>did to the window. Do >> >>>you want the content layer to set the size of the >> >>window? >> >>Exactly. Currently the height of the window is >>fixed to the number of pixels you specify when you >>create it. I want to create a PanelBar, set its >>content to an arbitrary amount of text, and have the >>window automatically size itself to fit the text. >> >>My main issue with PanelBar as it stands is that it >>does not allow subclassing because its constructor >>fails when invoked with no arguments. >> >>I've attached an example of what I wanted, along >>with a slightly modified version of panelbar.js. I >>hope you'll be able to see what I'm talking about. >> >> >>>Or am i out of >>>the game? >> >>No way :) >> >> >>>Regards >>>Daniel >>> >> >>regards, >>Andrew |
From: Andrew G. <an...@zo...> - 2003-10-07 23:25:45
|
Raymond Irving wrote: > why not use the setAutoSize() function? While trying to get setAutoSize() to work, I noticed that line 51 of dynlayer_base.js contains: var ah=this._aSzW; which should be: var ah=this._aSzH; regards, Andrew |
From: Leif W <war...@us...> - 2003-10-07 23:52:24
|
[-] Fix auto size height related bug/typo This one seemed simple enough so I went ahead and changed it and uploaded to CVS. Leif ----- Original Message ----- From: "Andrew Gillett" <an...@zo...> To: <dyn...@li...> Sent: Tuesday, October 07, 2003 7:25 PM Subject: [Dynapi-Help] Error in dynlayer_base.js > Raymond Irving wrote: > > why not use the setAutoSize() function? > > While trying to get setAutoSize() to work, I noticed that line 51 of dynlayer_base.js contains: > > var ah=this._aSzW; > > which should be: > > var ah=this._aSzH; > > > regards, > Andrew > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: Leif W <war...@us...> - 2003-10-07 19:05:39
|
I noticed a couple days ago the window widget disappeared when I did a CVS update. Was this intentional? Did I miss something? Will it be back? Or was it moved into another file? Leif ----- Original Message ----- From: "Daniel Tiru" <de...@ti...> To: <dyn...@li...> Sent: Friday, October 03, 2003 9:19 AM Subject: RE: [Dynapi-Help] New List, Label and Window Widgets > Hi Andrew! > > I have looked throught your code and i will make the changes to the > stacker, and aswell the ";" to the window :) > > However i dont really understand the change you did to the window. Do > you want the content layer to set the size of the window? Or am i out of > the game? > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On Behalf Of Andrew > Gillett > Sent: den 3 oktober 2003 05:15 > To: dyn...@li... > Subject: Re: [Dynapi-Help] New List, Label and Window Widgets > > > Daniel Tiru wrote: > > Great, atleast someone except me think its useful then :) > > Hi Daniel, > > I have been looking at your stacker and window widgets, and I also think > they are excellent. > > I have a couple of very minor issues that you may like to look at: > > - stacker.js has various methods that use the variable 'i' for a loop > counter without declaring the variable to be local. I had some very > strange side-effects when I used a for-loop with iterator 'i' to add > windows to the stacker. I think that the remove(), move(), and > generate() methods all need a "var i;" declaration. > > - I have made a sub-class of Window that sets the height of the content > layer to the natural height of content HTML. But to do this, I had to > make a couple of minor tweaks to the Window constructor. A "diff" for > my changes is below. > > Firstly, I put most of the constructor code into an > "if(arguments.length>0)" block. This allows the constructor to be > called without any arguments, which is necessary if you want to set > Window as the prototype of a sub-class. > Next, I added an "if(this.h)" test before the line that sets the > content height. This is purely for my purposes as I didn't want to > explicitly set the height of the content layer. > Finally, I added a semi-colon on line 27 to keep the compressor happy > :) > > > $ cvs diff window.js > Index: window.js > =================================================================== > RCS file: /cvsroot/dynapi/dynapi3x/src/gui/window.js,v > retrieving revision 1.1 > diff -r1.1 window.js > 27c27 > < this._tmpcnt=0 > --- > > this._tmpcnt=0; > 28a29 > > if (arguments.length>0){ > 44c45,46 > < this.content.setHeight(this.h-this._mnuheight); > --- > > if (this.h) > > this.content.setHeight(this.h-this._mnuheight); > 51a54 > > } > > > I hope you don't mind me posting these changes. If you would like to > see my sub-class (it's not much), just let me know. > > Thank you for these widgets, and keep up the good work! > > regards, > Andrew Gillett > > > > > > Regards > > Daniel > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...] On Behalf Of Brian > > Hayes > > Sent: den 2 oktober 2003 12:00 > > To: dyn...@li... > > Subject: RE: [Dynapi-Help] New List, Label and Window Widgets > > > > > > Stacker.js is preaty cool.. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...] On Behalf Of Raymond > > Irving > > Sent: Wednesday, October 01, 2003 11:54 PM > > To: DynApi-Help > > Subject: [Dynapi-Help] New List, Label and Window Widgets > > > > Hi, > > > > Check out cvs for some of really cool new widgets for DynAPI 3 > > > > > > -- > > Raymond Irving > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: Andrew G. <an...@zo...> - 2003-10-07 23:33:18
|
It's now called PanelBar. Andrew. Leif W wrote: > I noticed a couple days ago the window widget disappeared when I did a CVS > update. Was this intentional? Did I miss something? Will it be back? Or > was it moved into another file? > > Leif |
From: Arijit D. <ad...@pr...> - 2003-10-03 14:12:09
|
Wow, I had been working on something like stacker.js, but using inline layers. I had to put in on hold because things came up. I'm not too good at making widgets, in fact I suck. When I finish the sample page, maybe someone would be interested in taking the code and trying to make a widget out of it for everybody to use? I'll post a link to the sample page as soon as it's ready. BTW, big ups to all the developers! DynApi 3 is looking great. Thanks, Arijit -- protein.media.inc tel: 202.462.4700 cel: 202.441.0764 fax: 202.318.1176 eml: ad...@pr... web: http://www.proteinmedia.com |