maxx Posted June 4, 2003 Posted June 4, 2003 Hi all! I need the functionality like MFC's CRectTracker class. My requirement is resizing and repositioning controls at runtime. Is there such component in the Windows Forms Framework? I use C# Thx in advance! maxx Quote
*Experts* Nerseus Posted June 5, 2003 *Experts* Posted June 5, 2003 I don't know anything about CRectTracker. All the controls in .NET support the Anchor property which controls repositioning and resizing automatically. Have you looked at that and it doesn't work for you? -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
maxx Posted June 6, 2003 Author Posted June 6, 2003 The anchor property is only useful when you resize the entire frame. I'd like to resize/reposition, using drag/drop, the controls separately. The CRectTracker class can de-/select single controls so they become a rubberband to catch them with the mousepointer. So long maxx Quote
*Gurus* divil Posted June 6, 2003 *Gurus* Posted June 6, 2003 You'll have to implement this yourself, using code. You might find the methods of the ControlPaint class useful for drawing the selection rectangles and grab handles, but the moving and resizing you'll have to write yourself. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.