Disable FlexPaper mouse wheel zoom - mousewheel

Always when i try to scroll up or down on a page with the FlexPaper HTML5 viewer it zoom in/out. How can I disable this behaviour?

Its possible to disable Mouse Wheel zooming using our latest version of Desktop Publisher. Tick the option in the left bottom corner of the publisher to disable it. The publisher will produce the UIConfig file you will need to use in your viewer to disable the mouse wheel zoom.
You can grab the latest version from here:
http://flexpaper.devaldi.com/download/

Set
MaxZoomSize : 1
in $('#documentViewer').FlexPaperViewer

If you have a UI config XML file you can use the "disableMouseWheel" setting, eg:
<?xml version="1.0" encoding="utf-8"?>
<FlexPaper_Zine_UIConfiguration>
<desktop>
<general disableMouseWheel="true"

Related

Navigator handles in Highstock can't be dragged

I'm new to Highstock and I was playing with the samples, but I saw that the navigator isn't working in any of them, i.e. https://www.highcharts.com/stock/demo/candlestick-and-volume (tested in FF and Chrome on W10).
I guess the navigator allows to modify the windows size of the chart, zomming in and out over the data. They show the left-right arrows on mouse hover but they can't be dragged.
Thanks in advance.

Zoom with Ctrl+Scroll Wheel in Electron App?

Is it possible to emulate browser-like behavior in Electron to add zooming with ctrl+scroll wheel?
Yes, it should be possible to emulate that behavior:
Catch the CTRL + mousewheel element as discussed in this question.
Use the Electron web-frame API to adapt the zoomFactor accordingly, use webFrame.getZoomFactor() to get the current zoom level and webFrame.setZoomFactor(level) to change it.

Change primefaces dialog size on client side

I change the size of a primefaces dialog with:
dialog.css('width', '650px');
The dialog is getting bigger but its content is not resized. When I change the size of the dialog on a corner with the mouse, its content is updated (div with ui-resizable-handle css class).
So probably I have to call another javascript method to emulate the changing how it was done with the mouse?
Unfortunately I haven't found the method. Somebody has done this already?
Regards
Oliver
dialog.trigger('resize'); does it.

GGTS editor tooltip show itself too fast

I am using GGTS on WIN7 64bit to edit my Grails project.
When editing GSP or groovy, once I point my mouse to something in the source code, a tooltip will show itself in less than 1ms. This is very annoying.
What I really wanna do is to click that source code and start to type something in that position. Because of the too-fast showing of tooltip, my click will drop on that tooltip and breaks my thoughts.
Can anyone help to set the tooltip to show itself after 500ms of mouse pointing at the same position? Thanks.
I didn't find this configuration from Windows->Preference of my GGTS 3.4.0
You can configure Eclipse to show hovers only when you really want them.
For controlling the hovers behavior for the GSP editor:
Go To Windows > Preferences > General > Editors > Structured Text Editors
Switch to the Hovers tab
Choose "Combined Hover"
Add a "Pressed key modifier while hovering"
This will cause the hovers to appear only when you press this specific key combination and hover over the text.
The same can be done for other editor types.

Scrolling like Google Chrome with a click of the mouse wheel button

In Google Chrome when you click the mouse wheel button you get this cursor:
And then you are able to scroll to all possible directions, when you move around with your mouse...
IE also has this, but only moves up and down:
Is there any component for Delphi that can do this? (for a TScrollBox for example)
TMemo, for example, can do that for you, provided you set its ScrollBars property to something else than ssNone. It will even adjust according to which scroll bars are enabled. Problem with TScrollBar component is that on its own it doesn't have any focusable parts and won't receive OnMouseWheel(/Up/Down) events, but its included windowed controls might. You could write a workaround for that on main form events, though. Check solutions at http://www.delphipages.com/forum/showthread.php?t=197309
EDIT: OnMouseWheel(/Up/Down) should be OnMouse(/Up/Down), thanks to #Sertac Akyuz for pointing this out ;)
Seems like this feature is available in RAD studio 2009 (but not in D7).
You need to use Imouse (imouse.pas unit) and the control must have ControlStyle of csPannable.
quote:
Imouse (imouse.pas unit) is a standard implementation of scrolling
with middle button (called also "mouse panning"). It's also used in
RAD Studio. Imouse functionality relays on standard window scrollbars
and sends WM_HSCROLL/WM_VSCROLL to the window to make it scroll. It
works on every window, that have a scrollbar (e.g. TListView,
TTreeView, even TForm/TFrame if AutoScroll is True and at least one
scrollbar is visible).
Oh, I've forgotten one thing. Control must have csPannable in
ControlStyle, but RichView hasn't by default. So, after adding Code:
RichViewEdit1.ControlStyle := RichViewEdit1.ControlStyle +
[csPannable];
I didn't test it though.
All that is left for me is to look into the source code (When I can get my hands on copy of D2009) and maybe impliment this with D7...

Resources