Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can PROPERTY do something when its value change....?
Message
From
07/11/2000 10:09:43
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
 
 
To
28/10/2000 12:06:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00435567
Message ID:
00438758
Views:
10
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
Map
View

Click here to load this message in the networking platform