mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #59] [CLOSED] ScrollBar rewritten. #131
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/59
Author: @Lance219
Created: 12/30/2021
Status: ❌ Closed
Base:
master← Head:master📝 Commits (10+)
0741797Rewrite ScrollBar to get rid of prev/prev2/next/next2 Buttons.57344a4Rewrite ScrollBar to get rid of Button prev,prev2,next,next2;86ac1dbdel ScrollBar.zipffaa1bcint HScrollBar::operator(int i) is indeed needed :(.b711dc8WhichSection () missed case section=1. Use plain simple method insread.3d8acf0Merge branch 'ultimatepp:master' into mastere4495ddCtrl could benefit from rearrange data memeber to minimize padding & sizeof(Ctrl);2d20b3dRearrange order of member variables to (possibly) save on padding for some fundamental Upp classes.d43ed5fIntroduced debug mode variables to keep track of maximum number of ScrollBar used by the program that's being debugged.bca61a7Merge branch 'ultimatepp:master' into master📊 Changes
3 files changed (+269 additions, -198 deletions)
View changed files
📝
uppsrc/CtrlCore/CtrlCore.h(+6 -1)📝
uppsrc/CtrlLib/ScrollBar.cpp(+185 -173)📝
uppsrc/CtrlLib/ScrollBar.h(+78 -24)📄 Description
CtrlLib/ScrollBaris modified to get rid of theprev, prev2, next, next3Buttons. The corresponding portion of theScrollBarare painted used the similar logic that original code used to paint the 3 parts of Slider&Thumb. The code that's changed mainly involve painting and mouse event. No interface is changed, so the revision is transparent to libary users.As a result of the revision. Now
sizeof(ScrollBar)==sizeof(Button). Initial tests indicate that executable size also benefit from the revision.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.