Non modal window with closing

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
v.yarymov
Posts:15
Joined: Fri Jul 27, 2018 3:15 pm

Non modal window with closing

Post by v.yarymov »

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

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Non modal window with closing

Post by leoknipp »

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

v.yarymov
Posts:15
Joined: Fri Jul 27, 2018 3:15 pm

Re: Non modal window with closing

Post by v.yarymov »

leoknipp wrote: ↑ Tue Jan 29, 2019 5:11 pm

Thanks! I'll try made it.

3 posts • Page 1 of 1