Comments (3)
I agree that the proposal looks better than the library has at this moment. The current look is basic, though it is easy to implement and maintain. I would not be surprised if the proposal doubles the amount of the code.
- It looks a little change. Yet it needs fixing: mouse click event that now must check visibility and draw method.
- Add a new special value for column width? E.g,
-1
and all columns that have it expand to fill the extra space. In this case all those fields would be equal in width. Adding extra attribute may make expanding scaled by original width. It does not look a big change, too - (+.4) A very big change, especially if we want to implement automatic merging of adjacent columns with similar names. Limiting header to only 2 lines helps a bit. Anyway, so many places needs rewriting: header size calculations(1 or N rows), drawing of "sort" symbol becomes not so trivial, drawing lines/headers changes, mouse click processing(and what happens if I click on "Objects" in the middle on the example above?). I do not say it is impossible :) It just takes much time to do and test.
from clui.
I already have done 3 and 4; easier than I thought. I'll make a PR soon. The only challenge was finding the magic numbers in the code that represented the top row + 1 border. Mouse and Sort markers work properly. It also works for as many levels as the user wants to.
1 ended up being hard. I guess there are too many magic numbers. Hiding the scrollbars is easy, but using the space underneath wasn't. I'll give it another go later.
2 should be very easy. I haven't done it, but soon will and make a PR.
Thank you for being positive regarding the feature requests. I appreciate it.
from clui.
It sounds great! Looking forward to PR
from clui.
Related Issues (20)
- Unable to edit table HOT 2
- Popup/new windows seems to tear, quickly disappear/reappear, and go off frame occasionally for fraction of second when clcking on moving it. HOT 2
- Another question about editing database fields HOT 2
- Display formatted text? HOT 4
- Example of "Add new row"? HOT 12
- I tried to create a pull request, but it was not working properly. HOT 1
- Explicitly place cursor in field so it is ready to begin typing? HOT 2
- Please create the 1.2.1 release HOT 1
- Cant get button to be black HOT 1
- [Question] OnClick() event for base_control? HOT 3
- Menu Implementation HOT 5
- Window Borders HOT 2
- Missing OnActivate() HOT 2
- Change bg color after selection[TableView] HOT 5
- What is the correct way to redraw a control? HOT 1
- Name of widget HOT 1
- horizontal scrollbar HOT 3
- view.OnKeyDown ? HOT 1
- Autosized labels incorrectly sized
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 clui.