Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
mezise is currently offline  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 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1077
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

Re: [FEATURE] Common horizontal scroll on Shift+mouse wheel [message #58401 is a reply to message #57980] Tue, 17 May 2022 15:31 Go to previous message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
(now done for ArrayCtrl)
Previous Topic: RichTextCtrl - cannot clear selected text. [Fixed]
Next Topic: Proper SplitterFrame removal++
Goto Forum:
  


Current Time: Sat Jun 22 23:49:13 CEST 2024

Total time taken to generate the page: 0.02049 seconds