How to set-up dragable window parts


#1

Hello,
I’ve used jucer (experimental) to create a VS 2008 GUI app, that i’m using in 2010. When i click anywhere on the window It’s created, I can drag the whole window. how do i change this to just being able to drag the titlebar? It interferes with a control that i’ve just added.

Thanks.

P.S.
I’m comparing my app to the helloWorld example, the differences are, my MainAppWindow inherits DocumentWindow, and the helloWorld is from Component. Is this why?


#2

Once you’ve created a content component to put inside your window, the mouse-clicks will land on that, and not get through to the background of the window itself.


#3

Ahh Cool.
So i should always house everything inside content components?
Thanks


#4

Definitely!


#5

hehe, cool.
Thanks