Giter VIP home page Giter VIP logo

Comments (9)

TomaszRewak avatar TomaszRewak commented on July 17, 2024

I was thinking about it, but as of now it's uncertain if this will be implemented as a part of the core library.

from c-sharp-console-gui-framework.

jzabroski avatar jzabroski commented on July 17, 2024

Menus would be cool, but how do you imagine them working? I am most familiar with TNM console program and how it modeled menus. TNM was an awesome fantasy pro wrestling simulation tool controlled by a console.

image

from c-sharp-console-gui-framework.

kbilsted avatar kbilsted commented on July 17, 2024

@TomaszRewak What are the problems you face?

from c-sharp-console-gui-framework.

TomaszRewak avatar TomaszRewak commented on July 17, 2024

The problematic part of drop down menus is that this framework doesn't support displaying content outside of a control rectangle. You cannot define a negative margin to display something outside of a container. So implementing those menus would require creating an overlay over all other content. It is of course doable (that's how popups are implemented in the example), but it would require spending some time on getting the design right. One of the things that probably couldn't be done is (because of the reason mentioned before) displaying long menus opened form the strip on top of popups that would exceed those popups' size limits.

from c-sharp-console-gui-framework.

jzabroski avatar jzabroski commented on July 17, 2024

Are you familiar with bitblt and double buffering

http://www.cs.sjsu.edu/faculty/beeson/courses/cs130/LectureNotes/17-DoubleBuffering/DoubleBuffer.html

from c-sharp-console-gui-framework.

TomaszRewak avatar TomaszRewak commented on July 17, 2024

Actually I'm pretty sure that in the case of this framework printing characters on the screen is more expensive then calculating their state. So I don't think double-buffering would help much user-experience-wise. But of course might be worth a try.

How does this relate?

from c-sharp-console-gui-framework.

TomaszRewak avatar TomaszRewak commented on July 17, 2024

But it might also depend on the terminal. At least the PS is relatively slow when it comes to displaying characters. On Linux it might be a different story.

But just as a countermeasure, I keep the current state of the screen in a local 2d array just to check if the framework actually has to update given cell. If not, no call to the Console is made.

from c-sharp-console-gui-framework.

kbilsted avatar kbilsted commented on July 17, 2024

The problematic part of drop down menus is that this framework doesn't support displaying content outside of a control rectangle

@TomaszRewak In the demo example picture on the readme, you have a popup spanning several elements.

from c-sharp-console-gui-framework.

TomaszRewak avatar TomaszRewak commented on July 17, 2024

Because it lives in an overlay over the entire window. So it's defined near the root element. The problematic part is if you would want to have a popup with its own dropdown menu, because it couldn't be simply stored within it. But if it would be stored next to it in the common overlay component, it would be tricky to make both components move together. Of course this wouldn't be a problem if the menu would be trimmed to the size of a popup, because then the overlay could be stored within it.

from c-sharp-console-gui-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.