Tk Source Code

View Ticket
Login
Ticket UUID: 1224235
Title: bgerrorDialog error message truncation
Type: Bug Version: obsolete: 8.5a3
Submitter: jenglish Created on: 2005-06-20 15:36:06
Subsystem: 33. Generic Dialog Support Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-11-15 10:12:25
Resolution: Fixed Closed By: jenglish
    Closed on: 2005-11-15 03:12:25
Description:
bgerrorDialog truncates long error messages, to avoid
popping up a gonzo huge modal dialog box.  This is a
good thing, but I think the current limit of 30
characters is too conservative.  (For example: if a
script calls "checkbuton $foo..." (note mispeling), the
error dialog will say 'Error: invalid command name
"checkbut...').

Following the typographer's rule of "one and a half to
two alphabets", perhaps 40-52 characters would be a
better upper limit?
User Comments: jenglish added on 2005-11-15 10:12:25:
Logged In: YES 
user_id=68433

45 characters seems to be a reasonable compromise between
too-wide dialog boxes and too-short truncation.  
library/bgerror.tcl r1.29 now uses this value.

jenglish added on 2005-08-11 09:40:47:
Logged In: YES 
user_id=68433

Hm.  Looks like I was the one who (re-)enabled the
truncation in the first place (#231251), guess I ought to
fix it.  Assigning to me.