Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-10-07
20:30 • Ticket [819227ffff] ::tk::PlaceWindow is wrong status still Closed with 2 ot... artifact: 67055db890 user: dgp
20:30 • Ticket [819227ffff]: 6 changes artifact: 5d1c7b4f1a user: dgp
20:30 • Closed ticket [819227ffff]. artifact: 7bb9cefe10 user: dgp
12:40 • New ticket [819227ffff]. artifact: 86626d77ff user: nobody

::tk::PlaceWindow is wrong

Closed / Invalid819227ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-10-07 12:40:55
# ::tk::PlaceWindow --
#   place a toplevel at a particular position
# Arguments:
#   toplevel    name of toplevel window
#   ?placement? pointer ?center? ; places $w centered
on the pointer
#               widget widgetPath ; centers $w over
widget_name
#               defaults to placing toplevel in the
middle of the screen

          ^^^^^^^^^^^^^^^  BUG

#   ?anchor?    center or widgetPath
# Results:
#   Returns nothing
#

=> this is wrong because the condition fails ....

a) first condition .....
    [string equal -len [string length $place] $place
"pointer"]
    thist ist true for $place == "" => the default ....
    => pointerplacement ist the default and !not! the
middle of
         the screen

mfg

  aotto
dgp Closed ticket [819227ffff]. [History diff]2003-10-07 20:30:48
dgpplain2003-10-07 20:30:49
Logged In: YES 
user_id=80530


This is not a Tcl bug.
File with the tktoolkit project.
Use Category "Bindings"
dgp Ticket [819227ffff]: 2 changes [History diff]2003-10-07 20:30:50
Log in (anonymous is fine) to add a comment.