dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.57k stars 112 forks source link

Parent-child window display/hide strategy maybe... Got a problem? #2727

Open SiyerBOBO opened 1 year ago

SiyerBOBO commented 1 year ago

There is such A combination of planes: Plane A contains plane BC and plane B contains plane D

When I hide B with the "ncplane_move_family_bottom(stdncplane)" method, BD is hidden. At this point I want to control the show/hide state of plane A, but if I hide A, this problem will occur when it is displayed again:

What I hope: Hide A: The ABCD is hidden Display A: AC is displayed and BD is still hidden

The reality is: Hide A: The ABCD is hidden Display A: ABCD is displayed

O.o The notcurses strategy is a little weird if you compare Qt to QWidget related show/hide actions.....

Maybe it would be nice to add a tag? (" Actively hidden by the developer "and" hidden by the parent window ")

SiyerBOBO commented 1 year ago

The above question may sound a little crazy... However, in many GUIs, when a child control is hidden, whether the parent control is hidden or not does not affect the hidden state of the child control.

SiyerBOBO commented 1 year ago

There is another solution to start with: maintain a hidden plane under the "stdncplane". When an "ncplane" is hidden, the parent window executing ncplane_move_family_top does not affect the actively hidden plane....