Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/xrUICore/ComboBox/UIComboBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ void CUIComboBox::ShowList(bool bShow)
}
}

void CUIComboBox::SetCapture(CUIWindow* pChildWindow, bool capture_status)
{
if (m_eState == LIST_EXPANDED && !capture_status)
return;
}

void CUIComboBox::Update()
{
CUIWindow::Update();
Expand Down
2 changes: 2 additions & 0 deletions src/xrUICore/ComboBox/UIComboBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class XRUICORE_API CUIComboBox final : public CUIWindow, public CUIOptionsItem,
void disable_id(int id);
void enable_id(int id);

void SetCapture(CUIWindow* pChildWindow, bool capture_status) override;

pcstr GetDebugType() override { return "CUIComboBox"; }

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/xrUICore/Windows/UIWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class XRUICORE_API CUIWindow : public CUIDebuggable

//захватить/освободить мышь окном
//сообщение посылается дочерним окном родительскому
void SetCapture(CUIWindow* pChildWindow, bool capture_status);
virtual void SetCapture(CUIWindow* pChildWindow, bool capture_status);

[[nodiscard]]
CUIWindow* GetMouseCapturer() const { return m_pMouseCapturer; }
Expand Down
Loading