[DONE][IDE]-Enable mouse scroll wheel in Procedures Browser

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[DONE][IDE]-Enable mouse scroll wheel in Procedures Browser

Post by skywalk »

Very annoying I cannot scroll my Procedures with the mouse wheel. :cry:
Only the code window scrolls.
This is not typical or an expected gui behavior.

[DONE] - Windows 10 supports this action.
Last edited by skywalk on Sat Jan 14, 2017 6:31 am, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by Josh »

Image
sorry for my bad english
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by eddy »

+1
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by freak »

Not possible.

On Windows, only the gadget with the keyboard focus receives scroll events. The ProcedureBrowser never has the focus because selecting an element puts the focus back on the Editor so you can continue working on the selected procedure.

Other OS don't have this problem because there the events go to the gadget under the cursor and not the one with the focus.

You have to thank MS for this.
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by skywalk »

Only set focus to the code with a Double-Click :idea:
That way I can browse both.
This is the same as the Ascii Table insertion or Color insertions.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by freak »

I think fast navigation with the Browser is more important than the ability to scroll with the wheel.
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by skywalk »

That's what I'm trying to do...browse my procedures fast.
But, you force me to hit a narrow scrollbar to "see" the rest of my procedures.
In fact, if I miss, I hit an unwanted procedure and my code jumps to that.
All really weird stuff, that could be swept away with a Double-Click action.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by skywalk »

I can live with pre-canned behavior if some plug-in code allows me to adapt my own.
But, I cannot navigate the panel gadgets with the current Tool commands.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by Shield »

I actually prefer this behavior (generally) because it allows me to keep scrolling the window
I want without accidentally scrolling in another one.

Using my laptop now (without mouse) I encountered I can scroll in any window with the track pad without selecting it.

Alternatively, you can use a tool.
Stumbled upon this one: http://lifehacker.com/5146250/wizmouse- ... us-windows
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by Danilo »

freak wrote:Not possible.

On Windows, only the gadget with the keyboard focus receives scroll events. The ProcedureBrowser never has the focus because selecting an element puts the focus back on the Editor so you can continue working on the selected procedure.
Would it be possible to write some code to enable this feature, if it does not work by default on Windows :?:

Code: Select all

Case #WM_MOUSEWHEEL
    If IsMouseCursorOverGadget(#Gadget_ToolsPanel)
        tool = GetCurrentVisibleToolsPanelItem()
        SendMouseWheelMessage(tool,EventwParam(),EventlParam())
    EndIf
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

[IDE] - Enable mouse scroll wheel in Procedures Browser

Post by Didelphodon »

Danilo wrote:
freak wrote:Not possible.

On Windows, only the gadget with the keyboard focus receives scroll events. The ProcedureBrowser never has the focus because selecting an element puts the focus back on the Editor so you can continue working on the selected procedure.
Would it be possible to write some code to enable this feature, if it does not work by default on Windows :?:

Code: Select all

Case #WM_MOUSEWHEEL
    If IsMouseCursorOverGadget(#Gadget_ToolsPanel)
        tool = GetCurrentVisibleToolsPanelItem()
        SendMouseWheelMessage(tool,EventwParam(),EventlParam())
    EndIf
+1
Go, tell it on the mountains.
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [IDE] - Enable mouse scroll wheel in Procedures Browser

Post by skywalk »

freak wrote:Not possible.
On Windows, only the gadget with the keyboard focus receives scroll events. The ProcedureBrowser never has the focus because selecting an element puts the focus back on the Editor so you can continue working on the selected procedure.
Other OS don't have this problem because there the events go to the gadget under the cursor and not the one with the focus.
You have to thank MS for this.
Yay 8) Windows 10 solves this problem. I can scroll the Procedures Panel without mouse click. Just hovering over allows scroll wheel.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply