Tk Library Source Code

View Ticket
Login
Ticket UUID: 1668587
Title: BWidget MessageDlg, -type user overrides default buttonwidth
Type: Bug Version: None
Submitter: eriklns Created on: 2007-02-25 21:59:42
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-10 23:12:45
Resolution: Fixed Closed By: oehhar
    Closed on: 2009-06-10 16:12:45
Description:
The MessageDlg overrides user defined defaults when used with the option: -type user. For example:

% option add *Button.width 10 100
% MessageDlg .msgdlg -type user -buttons {ok cancel} \
      -message "whatever"

then these defaults are picked up, but overridden by the message box to become -width 0, as testifies:

% .msgdlg.bbox.bo configure -width
-width width Width 10 0
User Comments: oehhar added on 2009-06-10 23:12:45:
It is true, the current value is replaced by the value of the bwidget configuration value
buttonwidth.
So, one may use the correct option index:
option add *MessageDlg.buttonwidth 10 100

Unfortunately, this was not documented jet.
(but is now in cvs)