Menu

#2241 ::tk::panedwindow::Motion fails

obsolete: 8.4.14
open-works-for-me
5
2007-04-20
2007-04-06
No

::tk::panedwindow::Motion fails when there is no frame inside and mouse is moved. My current workaround solution is to catch the identify and return:

if {[catch {set id [$w identify $x $y]}]} {return}

Discussion

  • Pat Thoyts

    Pat Thoyts - 2007-04-17

    Logged In: YES
    user_id=202636
    Originator: NO

    Needs a demonstration test case.

     
  • Pat Thoyts

    Pat Thoyts - 2007-04-17
    • status: open --> pending-works-for-me
     
  • Pat Thoyts

    Pat Thoyts - 2007-04-17

    Logged In: YES
    user_id=202636
    Originator: NO

    With 8.5a6: pack [panedwindow .p] -side left -expand 1 -fill both
    moving the mouse around raises no error.

     
  • Thomas Perschak

    Thomas Perschak - 2007-04-20
    • status: pending-works-for-me --> open-works-for-me
     
  • Thomas Perschak

    Thomas Perschak - 2007-04-20

    Logged In: YES
    user_id=696043
    Originator: YES

    A simple demonstration:
    call main.tcl, open the plot menu and while clicking on "remove frame" simultaneously move the mouse - it's not always easy to get the error but I can do it once out of three times ...
    The code that is affected: have a look in plotwindow.itk, method removeframe - there a current frame is destroyed and a new one immediately created.
    ****
    Important Note! I cannot reproduce it on MS Windows - only on Suse Linux 10.1 with ActiveState 8.4.14
    ****

    many thx
    thomas
    File Added: crash7.tar

     
  • Thomas Perschak

    Thomas Perschak - 2007-04-20
     
MongoDB Logo MongoDB