• about scrollutil::plainnotebook

    From Nicolas@21:1/5 to All on Tue Jan 11 01:52:35 2022
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas@21:1/5 to All on Tue Jan 11 03:07:34 2022
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs"
    are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Tue Jan 11 11:32:06 2022
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas


    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs"
    are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Tue Jan 11 13:12:33 2022
    Am 11.01.2022 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs"
    are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    Sorry, the normal way would be to put it in different scrolling pages...

    Or you use a page manager (ttk::notebook) and a scrollframe on the page.

    Just my two pennies,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Tue Jan 11 14:07:24 2022
    Am 11.01.22 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs"
    are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++


    In that picture the "netDMX" page is the selected one. I can only guess
    that this page is a scrollarea whose widget is a scrollableframe, and
    that the vertical scrollbar along the right edge belongs to that
    scrollarea. Can you confirm this? If my guess is correct then I don't understand what your problem is, because the plainnotebook has only 6
    pages and the corresponding "tabs" will keep their positions.

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas@21:1/5 to All on Tue Jan 11 04:47:27 2022
    Le mardi 11 janvier 2022 à 13:12:36 UTC+1, Harald Oehlmann a écrit :
    Am 11.01.2022 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs" >> are actually ttk::radiobutton widgets of a customized Toolbutton style.) >>
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++
    Sorry, the normal way would be to put it in different scrolling pages...

    Or you use a page manager (ttk::notebook) and a scrollframe on the page.

    Just my two pennies,
    Harald
    Hi Harald,
    That's what I used to do :)
    But as replacing ttk::notebook with scrollutil::plainnotebook was soooo easy and the look and feel of scrollutil::plainnotebook is great lead me to ask Csaba if it was possible to scroll the right part without the left one.

    best regards,
    ++

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas@21:1/5 to All on Tue Jan 11 05:17:36 2022
    Le mardi 11 janvier 2022 à 14:07:28 UTC+1, nemethi a écrit :
    Am 11.01.22 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs" >> are actually ttk::radiobutton widgets of a customized Toolbutton style.) >>
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    In that picture the "netDMX" page is the selected one. I can only guess
    that this page is a scrollarea whose widget is a scrollableframe, and
    that the vertical scrollbar along the right edge belongs to that
    scrollarea. Can you confirm this? If my guess is correct then I don't understand what your problem is, because the plainnotebook has only 6
    pages and the corresponding "tabs" will keep their positions.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de
    hmmmm,
    I guess it's my fault... the whole notebook is inside a scrollarea...
    I'll rework it to change that and tell you.
    so sorry for being such distracted

    ++

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas@21:1/5 to All on Tue Jan 11 08:51:18 2022
    Le mardi 11 janvier 2022 à 14:17:39 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:07:28 UTC+1, nemethi a écrit :
    Am 11.01.22 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs" >> are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    In that picture the "netDMX" page is the selected one. I can only guess that this page is a scrollarea whose widget is a scrollableframe, and
    that the vertical scrollbar along the right edge belongs to that scrollarea. Can you confirm this? If my guess is correct then I don't understand what your problem is, because the plainnotebook has only 6 pages and the corresponding "tabs" will keep their positions.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de
    hmmmm,
    I guess it's my fault... the whole notebook is inside a scrollarea...
    I'll rework it to change that and tell you.
    so sorry for being such distracted

    ++
    so it's all good when plainnotebook embed the scrollarea :)
    thanks,
    ++

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas@21:1/5 to All on Thu Jan 20 11:35:29 2022
    Le mardi 11 janvier 2022 à 17:51:21 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:17:39 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:07:28 UTC+1, nemethi a écrit :
    Am 11.01.22 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not
    visible without bringing that "tab" into view by scrolling? (The "tabs"
    are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    In that picture the "netDMX" page is the selected one. I can only guess that this page is a scrollarea whose widget is a scrollableframe, and that the vertical scrollbar along the right edge belongs to that scrollarea. Can you confirm this? If my guess is correct then I don't understand what your problem is, because the plainnotebook has only 6 pages and the corresponding "tabs" will keep their positions.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de
    hmmmm,
    I guess it's my fault... the whole notebook is inside a scrollarea...
    I'll rework it to change that and tell you.
    so sorry for being such distracted

    ++
    so it's all good when plainnotebook embed the scrollarea :)
    thanks,
    ++
    Hi Csaba,
    please correct me if I'm wrong...
    if I create a toplevel with background set to black, then I grid inside a ttk::frame with a background set to black thanks to a ttk::style configure -background command, then I grid inside this ttk::frame a scrollutil::plainnotebook, isn't the background
    colour of tab of the notebook should be the colour of the bg of it's container? on macOS using Aqua, it's ok. But on windows it's not ok...
    I do not succeed to get the background of the scrollutil::plainnotebook to be black.

    to be more specific, I've gridded inside the scrollutil::plainnotebook a scrollarea which embed a scrollableframe which embed a ttk::frame (with -bg set to black).
    if I set the -fitcontentwidth 1 and -fitcontentheight 1 of the scrollableframe I can get the black background but if I resize the toplevel, vertical scrollbar does not appear... so using -fitcontentwidth 1 and -fitcontentheight 1 does not seem to be an
    option for what I'm trying to do.

    I'm very very sorry if this question looks like a dumb one but after a day I do not manage to get what I want.

    best regards,
    Nicolas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Thu Jan 20 22:02:34 2022
    Am 20.01.22 um 20:35 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 17:51:21 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:17:39 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:07:28 UTC+1, nemethi a écrit :
    Am 11.01.22 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not >>>>>> visible without bringing that "tab" into view by scrolling? (The "tabs" >>>>>> are actually ttk::radiobutton widgets of a customized Toolbutton style.) >>>>>>
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    In that picture the "netDMX" page is the selected one. I can only guess >>>> that this page is a scrollarea whose widget is a scrollableframe, and
    that the vertical scrollbar along the right edge belongs to that
    scrollarea. Can you confirm this? If my guess is correct then I don't
    understand what your problem is, because the plainnotebook has only 6
    pages and the corresponding "tabs" will keep their positions.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de
    hmmmm,
    I guess it's my fault... the whole notebook is inside a scrollarea...
    I'll rework it to change that and tell you.
    so sorry for being such distracted

    ++
    so it's all good when plainnotebook embed the scrollarea :)
    thanks,
    ++
    Hi Csaba,
    please correct me if I'm wrong...
    if I create a toplevel with background set to black, then I grid inside a ttk::frame with a background set to black thanks to a ttk::style configure -background command, then I grid inside this ttk::frame a scrollutil::plainnotebook, isn't the
    background colour of tab of the notebook should be the colour of the bg of it's container?
    on macOS using Aqua, it's ok. But on windows it's not ok...
    I do not succeed to get the background of the scrollutil::plainnotebook to be black.

    to be more specific, I've gridded inside the scrollutil::plainnotebook a scrollarea which embed a scrollableframe which embed a ttk::frame (with -bg set to black).
    if I set the -fitcontentwidth 1 and -fitcontentheight 1 of the scrollableframe I can get the black background but if I resize the toplevel, vertical scrollbar does not appear... so using -fitcontentwidth 1 and -fitcontentheight 1 does not seem to be
    an option for what I'm trying to do.

    I'm very very sorry if this question looks like a dumb one but after a day I do not manage to get what I want.

    best regards,
    Nicolas


    The background color of ttk widgets is per default theme-specific and is
    not inherited. Consequently, the "tabs" on the left side of the
    plainnotebook will keep their theme-specific background color.

    The plainnotebook, scrollarea, and scrollableframe widgets use standard ttk::frame widgets, hence if you set the background of the TFrame style
    to black then several (but not all) components of these widgets will
    appear in black.

    The recommended method is, however, to use a dark theme, like awdark.

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas@21:1/5 to All on Fri Jan 21 04:41:04 2022
    Le jeudi 20 janvier 2022 à 22:02:38 UTC+1, nemethi a écrit :
    Am 20.01.22 um 20:35 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 17:51:21 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:17:39 UTC+1, Nicolas a écrit :
    Le mardi 11 janvier 2022 à 14:07:28 UTC+1, nemethi a écrit :
    Am 11.01.22 um 12:07 schrieb Nicolas:
    Le mardi 11 janvier 2022 à 11:32:09 UTC+1, nemethi a écrit :
    Am 11.01.22 um 10:52 schrieb Nicolas:
    Hi Csaba,
    would it be possible to have an option for the ttk::frame that contains button/label/whatever for being fixed and not scrollable?

    best regards,
    nicolas

    Why? How could the user select a page whose "tab" is currently not >>>>>> visible without bringing that "tab" into view by scrolling? (The "tabs"
    are actually ttk::radiobutton widgets of a customized Toolbutton style.)

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de >>>>>
    https://imgur.com/a/TY9xdOd
    here's what my scrollutil::plainnotebook looks like.
    I would like to be able to scroll the right part without scrolling the left part

    ++

    In that picture the "netDMX" page is the selected one. I can only guess >>>> that this page is a scrollarea whose widget is a scrollableframe, and >>>> that the vertical scrollbar along the right edge belongs to that
    scrollarea. Can you confirm this? If my guess is correct then I don't >>>> understand what your problem is, because the plainnotebook has only 6 >>>> pages and the corresponding "tabs" will keep their positions.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de
    hmmmm,
    I guess it's my fault... the whole notebook is inside a scrollarea... >>> I'll rework it to change that and tell you.
    so sorry for being such distracted

    ++
    so it's all good when plainnotebook embed the scrollarea :)
    thanks,
    ++
    Hi Csaba,
    please correct me if I'm wrong...
    if I create a toplevel with background set to black, then I grid inside a ttk::frame with a background set to black thanks to a ttk::style configure -background command, then I grid inside this ttk::frame a scrollutil::plainnotebook, isn't the
    background colour of tab of the notebook should be the colour of the bg of it's container?
    on macOS using Aqua, it's ok. But on windows it's not ok...
    I do not succeed to get the background of the scrollutil::plainnotebook to be black.

    to be more specific, I've gridded inside the scrollutil::plainnotebook a scrollarea which embed a scrollableframe which embed a ttk::frame (with -bg set to black).
    if I set the -fitcontentwidth 1 and -fitcontentheight 1 of the scrollableframe I can get the black background but if I resize the toplevel, vertical scrollbar does not appear... so using -fitcontentwidth 1 and -fitcontentheight 1 does not seem to be
    an option for what I'm trying to do.

    I'm very very sorry if this question looks like a dumb one but after a day I do not manage to get what I want.

    best regards,
    Nicolas

    The background color of ttk widgets is per default theme-specific and is
    not inherited. Consequently, the "tabs" on the left side of the plainnotebook will keep their theme-specific background color.

    The plainnotebook, scrollarea, and scrollableframe widgets use standard ttk::frame widgets, hence if you set the background of the TFrame style
    to black then several (but not all) components of these widgets will
    appear in black.

    The recommended method is, however, to use a dark theme, like awdark.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    Hi Csaba
    The recommended method is, however, to use a dark theme, like awdark.
    thank you for the suggestion !!
    it opens a new world :)

    ++

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