[GH-ISSUE #47] A possibility to show stacked boxes #35

Closed
opened 2026-03-04 01:01:17 +03:00 by kerem · 2 comments
Owner

Originally created by @aellwein on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/47

Hey,

short question: is there a possibility to show stacked boxes/frames (one over another). Like in here. If yes, how they are supposed to be arranged in tview.Application?

Originally created by @aellwein on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/rivo/tview/issues/47 Hey, short question: is there a possibility to show stacked boxes/frames (one over another). Like in [here](http://urwid.org/_images/cmenu4.png). If yes, how they are supposed to be arranged in ``tview.Application``?
kerem closed this issue 2026-03-04 01:01:18 +03:00
Author
Owner

@rivo commented on GitHub (Jan 30, 2018):

Hi,

I would say your best bet is the Pages class. Its AddPage() function has a "resize" parameter which you can set to false so your box doesn't become full-screen.

You will have to set the position and size of each of your boxes yourself then. There is no function that lays out boxes automatically like you requested. I think VladimirMarkelov/clui attempts to provide a more Windows-like interface if that's what you prefer.

Let me know if this helps.

<!-- gh-comment-id:361498441 --> @rivo commented on GitHub (Jan 30, 2018): Hi, I would say your best bet is the [`Pages`](https://godoc.org/github.com/rivo/tview#Pages) class. Its [`AddPage()`](https://godoc.org/github.com/rivo/tview#Pages.AddPage) function has a "resize" parameter which you can set to `false` so your box doesn't become full-screen. You will have to set the position and size of each of your boxes yourself then. There is no function that lays out boxes automatically like you requested. I think [VladimirMarkelov/clui](https://github.com/VladimirMarkelov/clui) attempts to provide a more Windows-like interface if that's what you prefer. Let me know if this helps.
Author
Owner

@aellwein commented on GitHub (Jan 30, 2018):

Thanks, that is exactly what i've searched for.

<!-- gh-comment-id:361634058 --> @aellwein commented on GitHub (Jan 30, 2018): Thanks, that is exactly what i've searched for.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#35
No description provided.