From: Max C. <ma...@bi...> - 2000-11-28 20:36:02
|
Hi, I am new to the DynamicAPI, but I am impressed with what I have tried so = far. When using Div's I like to place a colored border. eg: style=3D"BACKGROUND: lightslategray; BORDER-BOTTOM: lightsalmon 2px = solid; BORDER-LEFT: lightsalmon 2px solid; BORDER-RIGHT: lightsalmon 2px = solid; BORDER-TOP: lightsalmon 2px solid; HEIGHT: 251px; LEFT: 27px; = POSITION: absolute; TOP: 45px; WIDTH: 541px" Could you tell me how I can achieve this using the Dynamic Layers? Hope you can assist. Thanks Max Campsell |
From: Dan S. <dy...@fu...> - 2000-11-28 23:00:47
|
In order to do this so that it works in Netscape it would be best to create a "Border" widget. I think there was some older code that someone wrote which would do this to some degree. If you wanted a quickstart you could use my Button widget which basically does what you want (has four 1px layers inside another) plus has a label inside. It could be improved for IE by using some specific calls to put borders on the html element. Dan On Wed, Nov 29, 2000 at 07:35:54AM +1100, Max Campsell wrote: > Hi, > > I am new to the DynamicAPI, but I am impressed with what I have tried so far. When using Div's I like to place a colored border. > > eg: > style="BACKGROUND: lightslategray; BORDER-BOTTOM: lightsalmon 2px solid; BORDER-LEFT: lightsalmon 2px solid; BORDER-RIGHT: lightsalmon 2px solid; BORDER-TOP: lightsalmon 2px solid; HEIGHT: 251px; LEFT: 27px; POSITION: absolute; TOP: 45px; WIDTH: 541px" > > Could you tell me how I can achieve this using the Dynamic Layers? > > Hope you can assist. > > Thanks Max Campsell |
From: Brandon M. <bnd...@ho...> - 2000-11-28 23:20:21
|
I have wrote the BorderFactory widget, included in long ago releases, which allows custom borders to be created, and dynamicly assigned to DynLayers. It has been debugged, enhanced with the SuperClass object, and will be available soon. Layers to which it is assigned do not have a requirement of using the SuperClass. ----- Original Message ----- From: "Dan Steinman" <dy...@fu...> To: <dyn...@li...> Sent: Tuesday, November 28, 2000 11:23 PM Subject: Re: [Dynapi-Help] Borders > In order to do this so that it works in Netscape it would be best to create a "Border" widget. I think there was some older code that someone wrote which would do this to some degree. If you wanted a quickstart you could use my Button widget which basically does what you want (has four 1px layers inside another) plus has a label inside. It could be improved for IE by using some specific calls to put borders on the html element. > > Dan > > On Wed, Nov 29, 2000 at 07:35:54AM +1100, Max Campsell wrote: > > Hi, > > > > I am new to the DynamicAPI, but I am impressed with what I have tried so far. When using Div's I like to place a colored border. > > > > eg: > > style="BACKGROUND: lightslategray; BORDER-BOTTOM: lightsalmon 2px solid; BORDER-LEFT: lightsalmon 2px solid; BORDER-RIGHT: lightsalmon 2px solid; BORDER-TOP: lightsalmon 2px solid; HEIGHT: 251px; LEFT: 27px; POSITION: absolute; TOP: 45px; WIDTH: 541px" > > > > Could you tell me how I can achieve this using the Dynamic Layers? > > > > Hope you can assist. > > > > Thanks Max Campsell > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Scott A. L. <sc...@sc...> - 2000-11-28 23:21:58
|
Brandon's BorderFactory object also creates nice borders, regardless of widget type. And I think IlMaestro's IbsBoldLayer will create a nice 3D effect. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com |
From: Richard :o\) <ma...@ri...> - 2000-11-29 00:44:59
|
hi, You can call all the css features, but they are browser specific, so the = folowing is ok in IE & NS6 but in ns4 the border doesn't render: myDynAPIDiv=3Dnew DynLayer(null,100,400,541,251,"lightslategray") DynAPI.document.addChild(myDynAPIDiv) myDynAPIDiv.css.borderWidth=3D"2px" my DynAPIDiv.css.borderColor=3D"lightsalmon" myDynAPIDiv.css.borderStyle=3D"solid" I've made a "diagnose" widget which shows all the functions & properties = which are available , and will put it on the web when the code's cleaned = up. Cheers, Richard:o) ----- Original Message -----=20 From: Max Campsell=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 9:35 PM Subject: [Dynapi-Help] Borders Hi, I am new to the DynamicAPI, but I am impressed with what I have tried = so far. When using Div's I like to place a colored border. eg: style=3D"BACKGROUND: lightslategray; BORDER-BOTTOM: lightsalmon 2px = solid; BORDER-LEFT: lightsalmon 2px solid; BORDER-RIGHT: lightsalmon 2px = solid; BORDER-TOP: lightsalmon 2px solid; HEIGHT: 251px; LEFT: 27px; = POSITION: absolute; TOP: 45px; WIDTH: 541px" Could you tell me how I can achieve this using the Dynamic Layers? Hope you can assist. Thanks Max Campsell |
From: Raymond S. <dst...@or...> - 2000-11-29 01:11:16
|
Just curious why the new drag event doesn't have a auto z-sort function = like the old dyn1 version did?=20 |
From: Brandon M. <bnd...@ho...> - 2000-11-29 01:39:21
|
It's smarter to have a manager do that. Much more can be achieved by = delegating a manager to manage z-index (focusing) of dynlayers. Also, = what if we wanted to have several managers.. one for a top-level layer, = and another for MDI layers. (Layers imbeded within the top level layer.) = There could be several toplevel layers, and having a manager for the top = level layers, as well as managers for the layers within the top layers, = when the top level layer is dragged over a 2nd level layer within a = seperate top level layer, then that 2nd level layer is clicked, managers = can be spart enough to notify their parents to shuffel their z-index, as = well as the 2nd level layer. This solves problems of having the layer that you clicked appear above = what is supposed to be a top-level layer, while being within a seperate = top-level layer. Clear as mud? Maybe Scott can explain better.. He's much better at that. ----- Original Message -----=20 From: Raymond Smith=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 8:06 PM Subject: [Dynapi-Help] Curiosity, dyn1 vs dyn2 dragevents. Just curious why the new drag event doesn't have a auto z-sort = function like the old dyn1 version did?=20 |
From: Raymond S. <dst...@or...> - 2000-11-29 02:09:06
|
Yes, yes.... clear as mud. Lets just hope I "manage" to successfully = pull this "manager" off. ----- Original Message -----=20 From: Brandon Myers=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 5:40 PM Subject: Re: [Dynapi-Help] Curiosity, dyn1 vs dyn2 dragevents. It's smarter to have a manager do that. Much more can be achieved by = delegating a manager to manage z-index (focusing) of dynlayers. Also, = what if we wanted to have several managers.. one for a top-level layer, = and another for MDI layers. (Layers imbeded within the top level layer.) = There could be several toplevel layers, and having a manager for the top = level layers, as well as managers for the layers within the top layers, = when the top level layer is dragged over a 2nd level layer within a = seperate top level layer, then that 2nd level layer is clicked, managers = can be spart enough to notify their parents to shuffel their z-index, as = well as the 2nd level layer. This solves problems of having the layer that you clicked appear above = what is supposed to be a top-level layer, while being within a seperate = top-level layer. Clear as mud? Maybe Scott can explain better.. He's much better at that. ----- Original Message -----=20 From: Raymond Smith=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 8:06 PM Subject: [Dynapi-Help] Curiosity, dyn1 vs dyn2 dragevents. Just curious why the new drag event doesn't have a auto z-sort = function like the old dyn1 version did?=20 |
From: Max C. <ma...@bi...> - 2000-11-29 03:10:40
|
Thanks, The solution works perfectly with IE, and as that is the main browser = used in this country. (76%) It will do what I need. Thanks for your assistance, Max ----- Original Message -----=20 From: Richard :o)=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 11:45 AM Subject: Re: [Dynapi-Help] Borders hi, You can call all the css features, but they are browser specific, so = the folowing is ok in IE & NS6 but in ns4 the border doesn't render: =20 myDynAPIDiv=3Dnew DynLayer(null,100,400,541,251,"lightslategray") DynAPI.document.addChild(myDynAPIDiv) myDynAPIDiv.css.borderWidth=3D"2px" my DynAPIDiv.css.borderColor=3D"lightsalmon" myDynAPIDiv.css.borderStyle=3D"solid" =20 I've made a "diagnose" widget which shows all the functions & = properties which are available , and will put it on the web when the = code's cleaned up. Cheers, Richard:o) ----- Original Message -----=20 From: Max Campsell=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 9:35 PM Subject: [Dynapi-Help] Borders Hi, I am new to the DynamicAPI, but I am impressed with what I have = tried so far. When using Div's I like to place a colored border. eg: style=3D"BACKGROUND: lightslategray; BORDER-BOTTOM: lightsalmon 2px = solid; BORDER-LEFT: lightsalmon 2px solid; BORDER-RIGHT: lightsalmon 2px = solid; BORDER-TOP: lightsalmon 2px solid; HEIGHT: 251px; LEFT: 27px; = POSITION: absolute; TOP: 45px; WIDTH: 541px" Could you tell me how I can achieve this using the Dynamic Layers? Hope you can assist. Thanks Max Campsell |