Skip to content

Commit 4a0f947

Browse files
authored
Add files via upload
1 parent f0da04b commit 4a0f947

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

main.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ namespace eval main {
7171
wm minsize $dan(WIN) [expr $dan(WIDTH)-600] [expr $dan(HEIGHT)-600]
7272
wm maxsize $dan(WIN) [expr $dan(WIDTH)+400] [expr $dan(HEIGHT)+300]
7373
wm attributes $dan(WIN) -fullscreen 0
74-
wm protocol . WM_DELETE_WINDOW { radxide::quit }
74+
wm protocol $dan(WIN) WM_DELETE_WINDOW { radxide::quit }
7575

7676
catch {focus -force $dan(TEXT)}
7777

radxide.tcl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#
2929
###########################################################
3030

31-
set version "1.4.8"
31+
set version "1.5.0"
3232
set os "$::tcl_platform(os) $::tcl_platform(osVersion)"
3333

3434
package provide radxide $version
@@ -215,8 +215,17 @@ namespace eval radxide {
215215
# w - not used
216216
# res - result of running of main window
217217
# ask - if "yes", requests the confirmation of the exit
218-
219-
exit 0;
218+
219+
set answer [tk_messageBox -message "Really quit RADXIDE?" \
220+
-icon question -type yesno \
221+
-detail "Select \"Yes\" to make the application exit"]
222+
223+
switch -- $answer {
224+
yes exit 0
225+
no
226+
}
227+
228+
return
220229
}
221230

222231
# __________________ raise_window ___________________ #

0 commit comments

Comments
 (0)