Home > Archive > Getting Started with dBASE > October 2006 > rectangle again









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author rectangle again
Michel Pain

2006-10-25, 7:23 am

sorry to insist but
I would like to change the surrounding color of a rectangle (border= simple) to "blue" - "ColorNormal" is not the answer what's next ??
please help
it's quite desesperate
thanks again
Michel
Ken Mayer [dBVIPS]

2006-10-25, 7:23 am

Michel Pain wrote:
> sorry to insist but
> I would like to change the surrounding color of a rectangle (border= simple) to "blue" - "ColorNormal" is not the answer what's next ??
> please help
> it's quite desesperate


If you need this sort of control over a rectangle, perhaps you should be
using shapes instead. For example, a rectangular shape inside a
rectangular shape would allow you to define the area outside the border
of the inner one as blue ...

Try the form below (watch for any line wrap) ...:

** END HEADER -- do not remove this line
//
// Generated on 10/06/2006
//
parameter bModal
local f
f = new RectangleWhiteBorder
Form()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif

class RectangleWhiteBorder
Form of FORM
with (this)
height = 16.0
left = 48.0
top = 0.0
width = 40.0
text = ""
endwith

this.SHAPE1 = new SHAPE(this)
with (this.SHAPE1)
left = 3.5714
top = 4.5
width = 27.1429
height = 4.0
colorNormal = "blue/blue"
shapeStyle = 1 // Rectangle
penWidth = 1
endwith

this.SHAPE2 = new SHAPE(this)
with (this.SHAPE2)
left = 4.0
top = 4.6818
width = 26.2857
height = 3.6364
colorNormal = "White/Blue"
shapeStyle = 1 // Rectangle
penWidth = 1
endwith

endclass


--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Michel PAIN

2006-10-25, 7:23 am

Thanks a lot
Michel

Ken Mayer [dBVIPS] Wrote:

> Michel Pain wrote:
>
> If you need this sort of control over a rectangle, perhaps you should be
> using shapes instead. For example, a rectangular shape inside a
> rectangular shape would allow you to define the area outside the border
> of the inner one as blue ...
>
> Try the form below (watch for any line wrap) ...:
>
> ** END HEADER -- do not remove this line
> //
> // Generated on 10/06/2006
> //
> parameter bModal
> local f
> f = new RectangleWhiteBorder
Form()
> if (bModal)
> f.mdi = false // ensure not MDI
> f.readModal()
> else
> f.open()
> endif
>
> class RectangleWhiteBorder
Form of FORM
> with (this)
> height = 16.0
> left = 48.0
> top = 0.0
> width = 40.0
> text = ""
> endwith
>
> this.SHAPE1 = new SHAPE(this)
> with (this.SHAPE1)
> left = 3.5714
> top = 4.5
> width = 27.1429
> height = 4.0
> colorNormal = "blue/blue"
> shapeStyle = 1 // Rectangle
> penWidth = 1
> endwith
>
> this.SHAPE2 = new SHAPE(this)
> with (this.SHAPE2)
> left = 4.0
> top = 4.6818
> width = 26.2857
> height = 3.6364
> colorNormal = "White/Blue"
> shapeStyle = 1 // Rectangle
> penWidth = 1
> endwith
>
> endclass
>
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/dbase/dBASEBook.htm
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com