Comments (9)
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.
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.
from c-sharp-console-gui-framework.
@TomaszRewak What are the problems you face?
from c-sharp-console-gui-framework.
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.
Are you familiar with bitblt and double buffering
from c-sharp-console-gui-framework.
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.
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.
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.
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)
- Alternative frameworks HOT 8
- Multi color multi line textbox HOT 13
- correct formatting? HOT 6
- Expanding elements without using `Box` HOT 3
- feature: listview HOT 8
- Create an editor HOT 9
- bold (highlight) color in 8-color linux console HOT 12
- IOException thrown when calling AdjustWindowSize HOT 7
- Not working example HOT 1
- How to disable border on DataGrid? HOT 4
- DataGrid pages HOT 7
- Updating Content within InputListener HOT 2
- Cleanup console HOT 1
- Create Controls of XML-files HOT 2
- How to add control and menu? HOT 4
- Custom control margin not updating. HOT 2
- Feature request: Character column HOT 3
- Bug: BreakPanels display newline as an empty character HOT 3
- Add parallax scrolling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c-sharp-console-gui-framework.