send window to bottom of stack

Post your Gambas programming questions here.
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: send window to bottom of stack

Post by BruceSteers »

stevedee wrote: Wednesday 9th December 2020 7:05pm
BruceSteers wrote: Wednesday 9th December 2020 6:40pm ...Turns out ncurses can only be used in a non-GUI app so I couldn't use it...
Yes sorry, Ncurses is for terminal use.

I did a horrible hack on an old ncurses test program earler to check 'Lower'
Sadly i can't use it though.
My app is not a terminal program it's a terminal :(
so it's got gb.gui and a TerminalView component rendering ncurses unusable :(

I have an easy hack to get .Raise() working.
win.TopOnly = True
win.TopOnly = False

Raises the window and does not alter Stacking property and leaves window on top.

that works fine but .Lower() does not want to play ball.
Like i said i tried setting the Stacking property to Window.Below but is sends the window to back and when resetting the Stacking back to Window.Normal the window comes to front again :(
Shame there's not a BottomOnly property to set/unset.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: send window to bottom of stack

Post by BruceSteers »

Turns out it was a bug.
Ben has fixed it in latest commit 😎
If at first you don't succeed , try doing something differently.
BruceS
Post Reply