Dragging multiple objects?

I’m making a draggable “window” type thing, and I want it to only drag when you press on the frame of it. the window frame (a .jpg) moves when I add the startdrag() function, but the text I put over it stays in place, is there a way to make the window AND the text move as well as any other object I want to when I press the window?