Hardcoded non-system-default font in msgbox.tcl 
Author Message
 Hardcoded non-system-default font in msgbox.tcl

Tk 8.0.3 Request:  Generated by Scriptics' bug entry form at


Responses to this post are encouraged.


Submitted by:  Akos Polster
OperatingSystem:  HP-UX
OperatingSystemVersion:  10.20
Extensions:  [incr Tcl], TclX
CustomShell:  No.
Synopsis:  Hardcoded non-system-default font in msgbox.tcl

Remove the explicit font specification
from msgbox.tcl

*** msgbox.tcl.old      Tue Nov 17 12:52:07 1998
--- msgbox.tcl.new      Tue Nov 17 12:52:52 1998
*** 161,169 ****

      option add *Dialog.msg.wrapLength 3i widgetDefault
      label $w.msg -justify left -text $data(-message)
-     catch {$w.msg configure -font \
-               -Adobe-Times-Medium-R-Normal--*-180-*-*-*-*-*-*
-     }
      pack $w.msg -in $w.top -side right -expand 1 -fill both -padx 3m -pady 3m
      if {$data(-icon) != ""} {
        label $w.bitmap -bitmap $data(-icon)
--- 161,166 ----


Sat, 12 May 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. tk_dialog's font is hardcoded to a non-system-default one (Times 18) on Unix and Windows

2. VAST: how to set the system default font

3. Set( _print_file) gives GPF after Set Default on Non-Novell systems

4. Tk system fonts don't match actual system fonts

5. Default font for wish and/or Font tool availability

6. tk: substitute default font if font request fails?

7. Non default .tcl script locations

8. Hardcoded breakpoint in TCL Plugin

9. - How to change default font to appear like Windows System Font?

10. set default font in DolphinPro5

11. Print on default printer font

12. Font defaults.


Powered by phpBB® Forum Software