Hello!
How to make a panel with closure, where the user clicks on the area outside the window?
1. Open the panel (for example, a yes / no dialog)
2. Click on the area outside the panel
3. The panel closes with the false result
Non modal window with closing
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Non modal window with closing
You can possibly solve it with the following solution.
-- For the main panel set the option "Send Mouse click" = TRUE.
When a click is made on a simple shape (not a widget) or the panel background the dp elements _Ui_<num>.MouseClick.* are set
-- Do a dpConnect() for _Ui_<num>.MouseClick.ModuleName
-- In the work function close the child panel
Best Regards
Leopold Knipp
Senior Support Specialist
-- For the main panel set the option "Send Mouse click" = TRUE.
When a click is made on a simple shape (not a widget) or the panel background the dp elements _Ui_<num>.MouseClick.* are set
-- Do a dpConnect() for _Ui_<num>.MouseClick.ModuleName
-- In the work function close the child panel
Best Regards
Leopold Knipp
Senior Support Specialist
- v.yarymov
- Posts:15
- Joined: Fri Jul 27, 2018 3:15 pm
Re: Non modal window with closing
leoknipp wrote: ↑ Tue Jan 29, 2019 5:11 pm
Thanks! I'll try made it.