Erik,
Again, good points! I modeled for performance but probably did not add enough controls to notice a difference. Also, I am creating my base classes and want to keep them as thin as possible.
My solution:
Added two properties (WithBottom,WithRight)to all movable ojects in my base class (1=Float, 2=Size, 3=Float+Size, 4=Lock, 5=Lock+Float, 6=Lock+Size, 7=Lock+Float+Size). I didn't like the way size gradualy put space between the control and the edge - lock will maintain the right/bottom spacing.
Then I copied the FFC _resizer class (nice code BTW) and modified the .SetSize() to handle the additional functionality. This was the only change I needed to make for everything to work.
Do you think using FOR EACH instead of a FOR NEXT to loop through the controls will help improve performance? Now, If performance becomes an issue I believe that your method remains open to me and I can subclass my base class and make a smarter control.
Thanks again for your help!
...tim
PS I am going to post the FOR EACH vs FOR NEXT in the Coding, Syntax & commands forum.
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