Results 1 to 8 of 8

Thread: Moving windows around.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm Creating some user controlls with odd shaped regions, but when the user controll is resized in design time I cant get vb to show the shape of the window region when it's moved or resized, Is there a way of doing this.?

    Thanks in advance.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I have once done a startrek-button control that is shaped (if you know ha startrek-button looks like) and it works fine with resizing. But i didn't really get whats the problem. Can you explain a bit more?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Yeah, Sorry.


    I want a controll that when you draw it on the form and move it with the mouse or resize it at design time instead of VB showing the bounding rectangle of the form I want the user to see the shape of the controll as they move or resize it, Just so It looks a bit more professional when I distrubute it.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    The thing is really simple, but maby it wont work due to something in your version of VB. But first, you must have the code that that redraws the control in the Sub UserControl_Resize and I think you must have done this already to get any results in runtime. It's really that simple. But if it's not working, try to check out if the code inside the UserControl_Resize is running at designtime by placing a "stop" in it. If that won't work, i don't know. And also, a timer should run in designtime (cool but sometimes annoying)

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm not sure if you get what I'm trying to do.

    I'm fine changing the shape of the control, but when you resize you hold the mouse down on one of the resize handles and the window turns into it's bounding rectangle, while you drag the resize handle the rectangle changes size, you only get to see what the control looks like when the mouse is released, I want to change the bounding rectangle into what the shape of the control would be if the mouse was released at that point. I'd also like to see the shape of the control while i'ts being moved and not have to wait until the control is put down again. I don't mind if it's not done the first time, while you're drawing the control but while you're dragging it i'd like the user to see exactly where it's going without having to release the mouse to check if it's in the right place.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I'm really sorry! But now i understand the problem.

    The problem is that is that really a problem? That can't be done with any other control or have you find something that does that? In my opinion it's good enough that the control is shown and resized in designtime. I think what you are trying to do is really too impossible. But anyway, if anyone finds a solution, I would be grateful and use it with my controls.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I thought as much, I'm still trying, i think I get what's going on and why it does it but finding a way aruond it's not gonna be easy. I'll post something up if I find something.

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    This is gonna be hard.

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