• tablelist: row colors when -disabled?

    From Ralf Fassel@21:1/5 to All on Mon Feb 6 11:03:52 2023
    I "configure -state disabled" my tablelist at the start of some long
    operation to prevent the user from interfering with it while the
    operation is in progress. Unfortunately, when a tablelist is configured -disabled, all the colors go away, so I have a hard time indicating the
    line which currently is processed.

    Is there some way to have row colors in tablelist in state -disabled?
    Note that -disabledforeground does not help, since that affects the
    whole table.

    R'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Mon Feb 6 14:22:06 2023
    Am 06.02.23 um 11:03 schrieb Ralf Fassel:
    I "configure -state disabled" my tablelist at the start of some long operation to prevent the user from interfering with it while the
    operation is in progress. Unfortunately, when a tablelist is configured -disabled, all the colors go away, so I have a hard time indicating the
    line which currently is processed.

    Is there some way to have row colors in tablelist in state -disabled?
    Note that -disabledforeground does not help, since that affects the
    whole table.

    R'

    The behavior of the tablelist widgets in disabled state is the same as
    that of the listboxes. I'm afraid there is no way to achieve what you
    are after. :-(

    --
    Csaba Nemethi https://www.nemethi.de mailto:[email protected]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Ralf Fassel on Mon Feb 6 15:02:38 2023
    Ralf Fassel <[email protected]> wrote:
    Thanks, Csaba, for the quick response.

    * nemethi <[email protected]>
    Am 06.02.23 um 11:03 schrieb Ralf Fassel:
    Is there some way to have row colors in tablelist in state
    -disabled?
    --<snip-snip>--

    The behavior of the tablelist widgets in disabled state is the same
    as that of the listboxes. I'm afraid there is no way to achieve
    what you are after. :-(

    Ok, then instead of disabling the whole tablelist, I could just set
    the -editable of the columns to false and the -sortcommand to empty
    (and probably disable some bindings). This should prevent any
    changes to the tablelist, shouldn't it?

    If you are on 8.6, can you use the "tk busy" command to make the
    tablelist widget "busy" and achieve the same result?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ralf Fassel@21:1/5 to All on Mon Feb 6 15:44:41 2023
    Thanks, Csaba, for the quick response.

    * nemethi <[email protected]>
    | Am 06.02.23 um 11:03 schrieb Ralf Fassel:
    | > Is there some way to have row colors in tablelist in state
    | > -disabled?
    --<snip-snip>--

    | The behavior of the tablelist widgets in disabled state is the same as
    | that of the listboxes. I'm afraid there is no way to achieve what you
    | are after. :-(

    Ok, then instead of disabling the whole tablelist, I could just set the -editable of the columns to false and the -sortcommand to empty (and
    probably disable some bindings). This should prevent any changes to the tablelist, shouldn't it?

    R'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Mon Feb 6 17:58:49 2023
    Am 06.02.23 um 15:44 schrieb Ralf Fassel:
    Thanks, Csaba, for the quick response.

    * nemethi <[email protected]>
    | Am 06.02.23 um 11:03 schrieb Ralf Fassel:
    | > Is there some way to have row colors in tablelist in state
    | > -disabled?
    --<snip-snip>--

    | The behavior of the tablelist widgets in disabled state is the same as
    | that of the listboxes. I'm afraid there is no way to achieve what you
    | are after. :-(

    Ok, then instead of disabling the whole tablelist, I could just set the -editable of the columns to false and the -sortcommand to empty (and
    probably disable some bindings). This should prevent any changes to the tablelist, shouldn't it?

    R'


    Yes, this sounds good.

    --
    Csaba Nemethi https://www.nemethi.de mailto:[email protected]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ralf Fassel@21:1/5 to All on Tue Feb 7 11:13:20 2023
    * Rich <[email protected]d>
    | Ralf Fassel <[email protected]> wrote:
    | > Ok, then instead of disabling the whole tablelist, I could just set
    | > the -editable of the columns to false and the -sortcommand to empty
    | > (and probably disable some bindings). This should prevent any
    | > changes to the tablelist, shouldn't it?

    | If you are on 8.6, can you use the "tk busy" command to make the
    | tablelist widget "busy" and achieve the same result?

    This sounds promising, will look into it.

    R'

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