Vince, Assuming the two lines are named Line1 and Line2 then In the Container Resize() you need:
* Container.Resize() With This .Line1.Top=0 .Line2.Top=1 .Line1.Left=0 .Line2.Left=0 .Line1.Width=This.Width .Line2.Width=This.Width * Endwith * Return In the Container Init() do: *Container.Init() This.Height=3 This.Resize() * Return Then drop the container on a form and set the anchor for the container to be 10 as you did. Regards Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vince Teachout Sent: 28 November 2007 20:35 To: ProFox Email List Subject: How to create a double-line class? If you take a form, add two horizontal lines, set line1.bordercolor= 128,128,128 set line2.bordercolor= 250,250,250, then put line one juuuuuuust on top of line 2, you get a 3D sunken line effect. Put it just below, and you get a raised line effect. Size to fit,and voila, a nice little divider. Since I use this all the time, and since I had 15 minutes to spare, I thought I'd just quickly create a little class I could drop on a form. EZ, right? 30 minutes later, I had to get back to work. I created a container class in an existing library, modified it, added the 2 lines as above, and set the anchors to 10 (left absolute, right absolute - I want it to stretch when I stretch the container). No joy when I try it. The line looks fine, but when I stretch the container, the lines just sit there. Any gentle taps with the Clue 2X4 would be welcome. Thanks. [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

