Drury,
You better use a shape if you want to draw a box. Changing the properties of the shape will reflect immediatly on the screen.
If you have a good reason for drawing your own box you can define aan assign-method for each property you use. These methods fire automaticly when the value of the specific property changes.
I usely do not define my own classes programmaticly but i thought the syntax was about this:
DEFINE CLASS cstBox AS custom
x1 = 0
y1 = 0
x2 = 0
y2 = 0
FUNCTION draw
draw a box with x1,y1,x2,y2>
ENDFUNC
FUNCTION x1_assign
LPARAMETERS vNewVal
This.x1 = m.vNewVal
This.Draw()
ENDFUNC
ENDDEF
>Hi....
>
>When I make my own class, for ex:
>DEFINE CLASS cstBox AS custom
> x1 = 0
> y1 = 0
> x2 = 0
> y2 = 0
> FUNCTION draw
> < draw a box with x1,y1,x2,y2>
> ENDFUNC
>ENDDEF
>
>if I want to change the size of that Box, first i'm changing the properties and call DRAW() method.
>Can VFP do that, after I changes the property values withoout calling DRAW() method
>
>thank's
> Drury.Y.Lumenta
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only