Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design-time events
Message
From
01/10/2003 15:54:01
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
01/10/2003 15:15:25
John Flanigan
Software Technology Initiative, Inc.
Groton, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00833938
Message ID:
00833954
Views:
16
I've done something like this, but with formating properties.
The class is QuickFormat toolbar in Download section. The main idea is the existence of a timer that scan objects in the form (class) opened in Form (or class) Designer and change format properties to what is selected in toolbar. Also the timer detects selected control(s) formatting properties and update toolbar objects to reflect object(s) settings as FontName, FontSize,etc (like in Word,Excel).

But the idea is this, a timer that detects if a form designer is active and do something with an object inside it.


>Does anyone know if design-time events are possible in VFP? I have seen that VB provides them.
>
>Let's say I have created a class derived from the control class. This control contains 2 objects capable of being resized, like a grid or TreeView. When I visually define the class, I set the control to a reasonable height and width. I do the same for the objects it contains. The contained objects take up 100% of the control's area
>
>Now, when I instantiate the class on a form, I will usually need to resize it to fit. When I resize the outer control, I want the contained objects to resize accordingly, in real-time.
>
>The only way I can think to do this is to have (wish for) design-time events.
>
>Or perhaps there is a more practical solution to this?
>
>Thank you for your considerations.
>
>Regards,
>John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform