-
Notifications
You must be signed in to change notification settings - Fork 19
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
ColorPalette: rearranged and added field for color set names #632
Conversation
- removed extra FillRect to lessen flicker when palette is resized. - added key controls to palette - left/right/up/down to choose color, page up/page down to change color set - set focus on palette when window is activated
Very good. Comments:
|
9434816
to
ab78ae7
Compare
Fixed the focus and the name; will think about the arrow keys. Yeah the flickering is really bad. I guess before you couldn't resize it so it wasn't a problem. |
ab78ae7
to
8595ddf
Compare
I did a quick fix for the flicker; I think it's a lot better. |
Looks flicker-free to me. 👍 |
One more thing: The color set name shouldn't allowed to be empty. How about reverting to the default "Color set #" in that case? |
8595ddf
to
0cf7253
Compare
|
0cf7253
to
8495a03
Compare
... and added keyboard control to the color container view - it needs to have focus but then left/right/up/down and page up/page down now work as requested. |
Nice! |
8495a03
to
182c554
Compare
sheesh, so demanding. Your wish has been granted. |
Beautiful! Quick, merge before I have more brilliant ideas! BTW, would that have worked too with using the color_container view's WindowActivated()? At least I interpret the BeBook's description as such:
|
I appreciate all of your ideas and insight!
Perhaps it might. I was just thinking that controlling the focus via the parent window makes more sense than controlling it from the container control. How does it resolve conflicts if two different controls on the same window try to get focus in their respective WindowActivated() methods? |
"All" of them? Let's say "some" or even "most" if we want to be generous... :)
Agreed. |
Fixes #255
Incidentally, all the functionality was already there to support color set labels, so basically it was a layout exercise and then wiring up what was there plus a few minor bits like setting the default name.
lmk what you think about the layout.