U++ framework
Do not panic. Ask here before giving up.

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 previous 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
 
Read Message
Read Message
Read Message
Previous Topic: RichTextCtrl - cannot clear selected text. [Fixed]
Next Topic: Proper SplitterFrame removal++
Goto Forum:
  


Current Time: Sat Apr 25 18:58:19 GMT+2 2026

Total time taken to generate the page: 0.00588 seconds