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
Replace tab size link mini dlg with edit control #13177
Conversation
👍
|
Thank you for the quick fix. 👍 How about implementing it in |
That is checkbox button text, and use different text drawing for disabled state than static text, if there was issue with it, it should also affect other places.
Currently there is no difference between |
Both arguments are very good. Thank you for the explanation. 👍 If you can't reproduce it, it may be caused by my Windows 10 settings and custom theme. |
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.
redrawDlgItem
uses MapWindowPoints function which converts (maps) a set of points from a coordinate space relative to one window to a coordinate space relative to another window, then redraw it with the new coordonate points.
I don't see the reason for it.
Please provide the arguments for this new added method.
PowerEditor/src/WinControls/Window.h
Outdated
@@ -64,8 +64,20 @@ class Window | |||
::UpdateWindow(_hSelf); | |||
} | |||
|
|||
virtual void redrawDlgItem(const int nIDDlgItem, bool forceUpdate = false) const |
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.
What does it do exactly this function?
And why do we need it?
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.
@donho
currently using redraw()
will redraw all items in window which is unnecessary and can cause flickering.
Try switching fast options in Preference->Editing->Current Line Indicator.
MapWindowPoints
is used to get correct coordinates of child rect for redrawing.
https://stackoverflow.com/questions/18034975/how-do-i-find-position-of-a-win32-control-window-relative-to-its-parent-window
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.
@ozone10
In this case, this method should be in class StaticDialog
instead of class Window
.
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.
Please put the method redrawDlgItem in class StaticDialog
instead of class Window
.
PowerEditor/src/WinControls/Window.h
Outdated
@@ -64,8 +64,20 @@ class Window | |||
::UpdateWindow(_hSelf); | |||
} | |||
|
|||
virtual void redrawDlgItem(const int nIDDlgItem, bool forceUpdate = false) const |
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.
@ozone10
In this case, this method should be in class StaticDialog
instead of class Window
.
d774dc6
to
b2a75c1
Compare
Fixes also #12558. |
fix #11695
fix #13176