Tk Library Source Code

View Ticket
Login
Ticket UUID: 868315
Title: Dialog widget hangs in BWidget 1.7
Type: Bug Version: None
Submitter: sgamon Created on: 2003-12-31 08:49:36
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-01-06 14:23:32
Resolution: None Closed By: damonc
    Closed on: 2004-01-06 07:23:32
Description:
When I issue the "draw" command to a Dialog widget in
BWidget 1.7, the entire application hangs.  

I am using ActiveTcl 8.4.5 on WinXP Pro.

The code below illustrates the error.  Switching to
BWidget 1.6 makes it work.
 

 # DialogTest.tcl
 #
 # A test of the BWidget Dialog widget.

 package require -exact BWidget 1.7

 button .b -text "Dialog" -command {ShowDialog}
 pack .b

 proc ShowDialog {args} {
Dialog .prompt \
-title {???} \
-parent .b \
-place above

label .prompt.label -text "This is a dialog!\nDid it
work?"

pack .prompt.label

.prompt add -text Okay -command {.prompt enddialog Okay}
.prompt add -text Cancel -command {.prompt enddialog
Cancel}

set Prompt [.prompt draw]

destroy .prompt
 }
User Comments: damonc added on 2004-01-06 14:23:32:
Logged In: YES 
user_id=50387

Fixed and committed.  The problem was actually in
BWidget::place and had nothing to do with dialogs
themselves.  Dialogs were just affected because of the
geometry problems in place.