| Description: |
OriginalBugID: 1360 Bug
Version: 8.0.3
SubmitDate: '1999-03-02'
LastModified: '1999-12-14'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 3687
OS: Windows NT
OSVersion: NA
Machine: NA
FixedDate: '1999-12-14'
FixedInVersion: 8.3b1
#
# Tcl script provided to demonstrate this bug was distilled from many
# thousands of lines of machine generated calls to the tcl interp.
# (Could possibly have been distilled further, but for no gain?)
#
# Broken into four separate files to be sourced from the console
# (because this is the timing of the machine generated calls), plus a
# fifth for cleanup to allow go-around-again iterations.
#
# Run the console and source part0, part1, part2a, and part2b, in
# that order. Sourcing part2b refuses to position toplevel b (the
# one with the button on it).
#
# But sourcing it a second time will!
#
# (Try moving toplevel b manually and sourcing part2b. Nothing
# happens unless you do it a second time. Then the window moves!)
#
# Note that running the pieces together as one countinuous source
# works! (i.e. toplevel .b is successfully positioned at +400+425
# the first time)
#
# part0 ---------------------------------------------------------
toplevel .a
frame .a.child
wm withdraw .a
toplevel .b
frame .b.child
button .b.child.button -text Button
wm withdraw .b
wm deiconify .a
pack .a.child -expand true -fill both
# part1 ---------------------------------------------------------
wm deiconify .a
wm geometry .a 7x27+300+100
raise .a
# part2a --------------------------------------------------------
pack .b.child.button -fill x
pack .b.child -expand true -fill both
wm deiconify .b
# part2b --------------------------------------------------------
wm geometry .b +400+425
#
# for some reason, commenting out this raise causes the first
# execution of this position to work!
#
raise .b
# clean up to go around again -----------------------------------
pack forget .b.child.button
destroy .b.child.button
pack forget .b.child
destroy .b.child
wm withdraw .b
destroy .b
pack forget .a.child
destroy .a.child
wm withdraw .a
destroy .a
8. Described the undesired behavior you observed
The window manager geometry command refuses to position a toplevel
until the command is executed a second time.
9. Described the behavior you expect to see
I expect to see the toplevel positioned properly with the first call
to wm!
10. If you have created a patch, please include it in the email or
provide a URL of a patch file and list affected files.
No patch file.
This was due to a lack of an update call before deiconifying.
The work-around was to add 'update idle' before the wm deiconify
call. In 8.3b1 this is fixed.
-- 12/14/1999 hobbs
|