• Re: tk_getOpenFile on Linux: scroll vertically instead of horizontally?

    From Christian Gollwitzer@21:1/5 to All on Wed Nov 17 17:00:43 2021
    Am 17.11.21 um 16:35 schrieb Ralf Fassel:
    The biggest showstopper for me with tk_getOpenFile on Linux is currently
    that the window scrolls horizontally. If I have a file with a *long* name
    in the directory, the column width in the window is configured to hold
    that long name, therefore I have to scroll endlessly to get to the
    desired file, and most often miss it, because I scroll too far.

    Any chance to have the scrolling direction at least configurable?
    Who would I have to nag with that request?

    Have you considered to use fsdialog from Schelte Bron instead? In all of
    my applications, I load fsdialog and replace tk_getOpenFile if [tk_windowingsystem] eq "Linux"

    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ralf Fassel@21:1/5 to All on Wed Nov 17 16:35:35 2021
    The biggest showstopper for me with tk_getOpenFile on Linux is currently
    that the window scrolls horizontally. If I have a file with a *long* name
    in the directory, the column width in the window is configured to hold
    that long name, therefore I have to scroll endlessly to get to the
    desired file, and most often miss it, because I scroll too far.

    Any chance to have the scrolling direction at least configurable?
    Who would I have to nag with that request?

    Thanks
    R'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ralf Fassel@21:1/5 to All on Fri Nov 19 15:28:36 2021
    * Christian Gollwitzer <auriocus@gmx.de>
    | Have you considered to use fsdialog from Schelte Bron instead? In all
    | of my applications, I load fsdialog and replace tk_getOpenFile if
    | [tk_windowingsystem] eq "Linux"

    Ok, checked fsdialog, looks nice, but suffers in the default config
    (details 0) from the same problem as the original:
    one looooooong filename determines the column width of the listing:

    # create 100 files withe short names
    for {set i 0} {$i < 100} {incr i} {
    close [open file-$i w]
    }
    # and one with a long name
    close [open [string repeat x 150] w]
    # open fsdialog
    package require fsdialog
    ttk::fsdialog::tk_getOpenFile

    the dialog shows only few files, with unused space at the right,
    scrolling this is awkward (shows completely empty page at some
    positions).

    !!!BUT!!! :-)

    I can configure it with "details 1"

    ttk::fsdialog preferences details 1
    ttk::fsdialog::tk_getOpenFile

    and then the files are listed vertically, which is exactly what I want
    (the 'details' is then just like on Windows, I could live without that,
    but :-)

    R'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)