lc-soft/LCUI

Modal Window Still Clickable #261

TheSystemIsCorrupt posted onGitHub

Describe the bug If we make a window modal while using lcui window will be still clickable and it just stop update rendering.

To Reproduce Steps to reproduce the behavior:

  1. Create your application
  2. Create a button
  3. Execute a message box on button click
  4. Click on the button again without closing message box

Expected behavior Inputs must be blocked when a window is in modal mode.

Environment (please complete the following information):

  • LCUI version: 2.2
  • Build tools: VS 2022

Message box ? Did you create it by calling the MessageBox() function of Win32 API?

posted by lc-soft over 3 years ago

Yes

posted by TheSystemIsCorrupt over 3 years ago

You can try to block event handling before calling MessageBox():

Widget_BlockEvent(LCUIWidget_GetRoot(), TRUE);
posted by lc-soft over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests