Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

NCurses, windows within windows

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 samurliko   Members   

400
Like
0Likes
Like

Posted 07 May 2013 - 06:49 PM

In NCurses could a window be placed in another window and used to make a scrolling effect?



#2 Bacterius   Members   

13164
Like
0Likes
Like

Posted 07 May 2013 - 11:16 PM

Not sure what you mean, but sure, you can have a window inside another window. You can even have two windows inside another window inside the main window if you want. The windows can be moved and resized as well. It's up to you to handle the drawing logic though. And when resizing parents windows you need to be careful you don't end up clipping child windows.

 

The only restriction iirc is that windows on the same level cannot overlap, which is not a problem here.


“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.