garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
429 stars 102 forks source link

Dragging is not available when the control under the mouse is set to be SetMouseInputEnabled(false) #6

Open virtual-serenity opened 11 years ago

virtual-serenity commented 11 years ago

Hi Garry,

Just noticed that you moved here from google code. It's a really simple and straight forward gui lib. I'm enjoying using it in my game : )

Last week I met a problem which I couldn't find an easy fix for it. For all "pages"(which is a fullscreen node containing everything in one screen frame), I set the page root to be SetMouseInputEnabled(false), so that the return value of Gwen::Input::Windows::ProcessMessage() could be used to determine whether that input event is swallowed by gwen. In this case, any docked control is not draggable because DragAndDrop::HoveredControl is NULL, which prevents the drag&drop from further processing. Do you have any idea about it?