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
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