-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #2489. Create new ScrollBar based on a new Scroll and remove ScrollBarView/ScrollView #3498
Conversation
I would appreciate the |
Ooooh! I'm super excited to review this! Will do asap. |
@tig how about you creating a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really slick!!
I've got a PR with some changes that you might like. I'll submit it vs. making a lot of comments.
Tweaks and suggestions
You mean being able to set the Normal.Background/Forground color for the View itself? Like the colorpicker in |
Yes or for the view passed on the |
@tig did you reorganize by placing the backfields before the properties by hand, or through some automatic system? I normally use R#'s Ctrl+E+C and it's not reformatting that way. |
By hand. It's still broken. |
Greet idea. I'll do it as part of #3376 where I've already completely re-done I also added the abilty to just click on any view in the Scenario and |
I just submitted another PR with quesitons / comments inline. |
Suggestions and questions
IMO, View sub-classes should not have the word "View" in them as a general principle. `
|
…rue and now is false by default.
I think it's working much better now. When you have time please test it. Thanks. |
I think I do think you're correct that we need something more than just using Here's a suggestion: Add to public enum ViewportSettings
{
...
/// <summary>
/// If set, the vertical scroll bar (see <see cref="View.HorizontalScrollBar"/>) will be enabled and automatically made visible
/// when the dimension of the <see cref="View.Viewport"/> is smaller than the dimension of <see cref="View.GetContentSize()"/>.
/// </summary>
EnableHorizontalScrollBar = 64,
/// <summary>
/// If set, the vertical scroll bar (see <see cref="View.VerticalScrollBar"/>) will be enabled and automatically made visible
/// when the dimension of the <see cref="View.Viewport"/> is smaller than the dimension of <see cref="View.GetContentSize()"/>.
/// </summary>
EnableVerticalScrollBar = 128,
/// <summary>
/// If set, the horizontal and vertical scroll bars (see cref="View.HorizontalScrollBar"/> and <see cref="View.VerticalScrollBar"/>)
/// will be enabled and automatically made visible when the dimension of the <see cref="View.Viewport"/> is smaller than the
/// dimension of <see cref="View.GetContentSize()"/>.
/// </summary>
EnableScrollBars = EnableHorizontalScrollBar | EnableVerticalScrollBar This moves the automatic behavior out of If these flags are NOT set, then the developer can use What do you think of this idea? |
Updated CharMap.
Tweaked `CharMap` based on your latest
… into BDisp-v2_2489_scroll-tig-builtin
More Charmap scrollbar tweaks
… into BDisp-v2_2489_scroll-tig-builtin
Scroll related API doc and conceptual overview improvements
Can I just say how much I love the work @BDisp is doing in this PR? Love. Love. Love. |
@BDisp see my comment here: When you nuke the old ScrollView etc..., can you please take care of |
@BDisp what's the status of this PR? In #3761 I'm fighting with the old hacky Thanks. |
Sorry, I never worked on it again. I'm busy with some other stuff. But I'll get back to it as soon as I can. |
No problem. I'm working on it right now on top of the branch I'm using for #3798 . |
Thanks for the help. Then I'll focused on others things, ok? |
Yep. Love the driver work you're doing! |
I've a branch where I already removed the old scroll bars and starting the implementation with the views that were use them. But a long time ago I already have done that before and I had some tedious working on this again. But I'll see if I can reanime again to work with it. |
New PR based on this great work: #3811. Closing this one. |
Fixes
ScrollBar
based on a newScroll
and removeScrollBarView/ScrollView
#2489Proposed Changes/Todos
Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)