Results 1 to 3 of 3

Thread: Container Control Cuestion

  1. #1
    Guest

    Post

    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

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  3. #3
    Guest

    Smile

    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
  •  



Click Here to Expand Forum to Full Width