|
-
May 3rd, 2000, 08:43 PM
#1
Hey Folks,
I am building a scrolling container control that automatically labels its controls and have run into a problem. When I move controls around, my "DrawText"ed labels are left in the old location as well as the new(since I'm only repainting the area under the control, to reduce flicker). This problem would be solved if there was a way to "read" the control move from the container. I am already subclassing the container window's WM_PARENTNOTIFY (WM_CREATE & WM_DESTROY) I was wondering if there is a was any way to "see" the contained control move from the container...Oh here's an add-on...Is there a way to tell from the control, if it is in design mode or execution mode? Am sure this is a simple Q but I was asleep in class that day.
Regards
-
May 3rd, 2000, 09:08 PM
#2
Frenzied Member
I don't know what you mean by Move the control from the container, surely once a control's been added to another control the only way removing it is to delete it.
You can tell if a user control is at runtime or design time using the usercontrol.ambient.usermode property, True at runtime, false at design time, this propery doesn't work in the Initialize or terminate events though.
-
May 3rd, 2000, 09:47 PM
#3
By "Move the control from the container" I meant move the control around the container from the container's point of view. Or (hopefully more clearly) dragging and dropping the control to different spots on the container.
Much thanx on your quick response and help!
Regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|