Msg Popup window does not close

Jan 7, 2015
4
0
I have TC v17 on windows7, running a .btm in TCC tab, using a popup Msg box with 4 custom buttons for user to select. After selection, sometimes this window closes, sometimes not. An OKcancel 2 button Msg box for example always seems to close.
 
May 20, 2008
11,530
102
Syracuse, NY, USA
This simple test succeeded around 20 times in a row. I could not make it fail.
Code:
v:\> msgbox /1"A" /2"B" /3"C" /4"D" "Test" Press a button
 
Jan 7, 2015
4
0
Thanks for test. I'm using win7 64, and have a OKcancel msg box that follows the 4 button box so user can confirm their selection to procede. I'll break it down to these statements for another test.
 
Jan 7, 2015
4
0
In a followup test, I find that the 4 button custom style msgbox window will not always close after button selection, with attach consoles option selected. Using TC v17.65 on windows7 64.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
In a followup test, I find that the 4 button custom style msgbox window will not always close after button selection, with attach consoles option selected. Using TC v17.65 on windows7 64.

I don't know what you're referring to -- the TCC MSGBOX command doesn't have an "attach consoles" option.

What is the exact command syntax you're using?
 
Jan 7, 2015
4
0
I have the auto attach consoles (I believe this is the terminology used) selected from the main TCC options menu, yes nothing to do with msgbox command.
The .btm, for example, has 2 successive msgbox commands:
msgbox /1"Pc 1" /2"Pc 2" /3"Pc 3" /4"Pc 4" "Part Inspection" Select the part type
(logic to set %pick equal to button label)
msgbox OKCancel "Part Inspection" %pick selected
The first 4 button pop window does not always close.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
I tried your example 50 times and never saw the first msgbox fail to close.

Looking at the code, the only ways I can see for the close to fail is (1) a Windows API failure (unlikely), or (2) another app (like a screen manager) hooking the msgbox call (and failing to close). Given that MSGBOX is heavily used & this is the first report I've ever seen about it failing to close, I suspect there's a conflict with something else on your system.
 
May 20, 2008
11,530
102
Syracuse, NY, USA
Funny ... The first command below produces the default message box sound; the second one doesn't. WAD?
Code:
v:\> msgbox /1"Pc 1" /2"Pc 2" /3"Pc 3" /4"Pc 4" "Part Inspection" Select the part type

v:\> msgbox OKCancel "Part Inspection" %pick selected
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
Funny ... The first command below produces the default message box sound; the second one doesn't. WAD?
Code:
v:\> msgbox /1"Pc 1" /2"Pc 2" /3"Pc 3" /4"Pc 4" "Part Inspection" Select the part type

v:\> msgbox OKCancel "Part Inspection" %pick selected

WAD - they're not the same icon type. The first one is MB_ICONINFORMATION, the second is MB_ICONQUESTION. Windows has different default sounds for them. (TCC doesn't have anything to do with the sound, that's done by Windows.)
 
Similar threads
Thread starter Title Forum Replies Date
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
C Forum upgrade msg this AM ? Support 1
I on error[msg] unexpected behaviour Support 0
vefatica Documentation Documentation of popup location and size Support 4
vefatica Console popup windows don't work correctly Support 0
vefatica Another popup problem Support 10
vefatica Deleting entries in the command history popup? Support 3
M Call History popup-window? Support 0
D How move cursor out of popup edit control after no match? Support 14
F EDIT FIELD in a popup window Support 2
C order popup windows as /o:gen ? Support 1
L WAD File-popup Window nearly empty Support 6
N Popup Window size too small Support 5
mikea How to? TCC 15: popup windows; launching Perl scripts Support 10
T Selecting line from popup history without executing Support 8
H Beeps in popup windows Support 17
Jay Sage Improved Edit Control for Directory Popup Support 5
R TC13 popup window edit fields Support 8
vefatica Positioning @SELECT[] popup? Support 3
vefatica Debugger: popup _VARIABLE values Support 1
M Popup directory history Support 10
B "Windows - No Disk Popup" v63 Support 0
K popup menu size Support 2
A Debug popup Support 1
R History window wrong size, can't remember size change Support 12
R @select inside alias gives different (insanely small) window Support 7
K_Meinhard How to? Help window position Support 7
D Directory History Window with wildcard search Support 3
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
ntak About window size notification Support 6
R Batch Debugger Command Expansion Window Support 3
R How do I get a Git Bash shell to appear in TCC window? Support 7
G Press on another Window Support 24
Peter Murschall IDE: After undocking the command expansion Window is offended Support 2
T TCC Window Background Color Anomaly Support 9
A v25 BC break in WINDOW and ACTIVATE Support 12
vefatica BTM, elevated, console window caption? Support 4
W Hide window Support 7
R How to? START program as top window? Support 2
P No linefeed on last line of console window Support 2
scottb How to? ipconfig output in current window Support 4
R How to? Change TCMD tab font size in window menu Support 3
T Fixed IDE locks up if edit window for running batch is closed Support 6
E How to change window title tcmd window - not tcc window Support 1
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
B How to get window status of a running app Support 3
James Miller tcc shell window does not disappear Support 18
D How cut in TCC tab window Support 5
S Paste in TCC/TCMD window is very slow [v20.0.22] Support 13

Similar threads