Home » U++ Library support » U++ Widgets - General questions or Mixed problems » [FEATURE] Common horizontal scroll on Shift+mouse wheel
[FEATURE] Common horizontal scroll on Shift+mouse wheel [message #57948] |
Sun, 02 January 2022 18:09  |
mezise
Messages: 54 Registered: April 2006
|
Member |
|
|
Hi everyone.
I am trying to add this feature to all relevant widgets.
It was added to LineEdit/CodeEditor on request from Honza:
https:// www.ultimatepp.org/forums/index.php?t=msg&th=5499&go to=28547&#msg_28547
The same change can be applied to TreeCtrl:
void TreeCtrl::MouseWheel(Point, int zdelta, dword keyflags)
{
if(keyflags & K_SHIFT)
sb.WheelX(zdelta);
else
sb.WheelY(zdelta);
}
The next in line is ArrayCtrl which I use in "absolute" mode with horizontal scroll bar:
ArrayCtrl::HeaderObject().Absolute();
but ArrayCtrl is using ScrollBar class instead of ScrollBars (as in LineEdit/TreeCtrl) and does not have WheelX() method.
Could you point me to the method where I can control horizontal scroll bar in ArrayCtrl?
mezise
|
|
|
Re: [FEATURE] Common horizontal scroll on Shift+mouse wheel [message #57980 is a reply to message #57948] |
Fri, 07 January 2022 19:44   |
 |
Klugier
Messages: 1049 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mezise,
I totally agree with the change in TreeCtrl - it should be done for consistency. Please create PR for Upp GitHub repo that contains only that change. Also, there is less risky that proposed change will be forgotten.
In context of ArrayCtrl, it should be done separately. I think Mirek, will probably have some clues about it - he is the author of this Ctrl.
Klugier
U++ - one framework to rule them all.
[Updated on: Fri, 07 January 2022 19:49] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Sep 22 01:23:25 CEST 2023
Total time taken to generate the page: 0.01978 seconds
|