#2581 listbox aim is off after window gets moved. Mac OSX 10.3.9

obsolete: 8.5.5
open
5
2009-05-08
2008-12-31
No

I'm using 8.5.6 on Mac OSX 10.3.9 on an old iMac G3. I have an app with a listbox, and I've noticed that the listbox reports (and highlights) the wrong entry after I have moved the app window. Initially, if I have not moved the window, the aim is correct, but afterwards the wrong entry is highlighted and reported. It looks as if there is a mapping between screen coordinates relative to the origin of the app window and absolute coordinates, and that mapping gets lost when the window is moved. I have a small test of this which I'm attaching.

Uwe Hollerbach

Discussion

  • Uwe Hollerbach

    Uwe Hollerbach - 2008-12-31

    tiny test program which shows the issue, at least on my computer

     
  • Uwe Hollerbach

    Uwe Hollerbach - 2008-12-31

    This may not be a listbox-specific issue. I've done a bit more investigating with just printing out various [winfo] items, and I get what seems to be similar results: the following is the output from running the second attachment, geo.tcl: first printout from when the app is initially created, second output after it's been moved:

    lupus:~/programs/utilities% ./geo.tcl
    window geometry is 122x28+5+27
    window rootx is 5
    window rooty is 49
    window vrootx is 0
    window vrooty is 0
    window x is 5
    window y is 27
    window geometry is 122x28+0+-22
    window rootx is 0
    window rooty is 0
    window vrootx is 0
    window vrooty is 0
    window x is 0
    window y is -22

    File Added: geo.tcl

     
  • Uwe Hollerbach

    Uwe Hollerbach - 2008-12-31
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2009-05-08
    • assigned_to: caflick --> das
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks