In GTK programming, how to monitor desktop environment mouse event while the GTK application is not active, i.e, the mouse is focus on other GTK application?
Finally, I found a library keybinder which is what I want!
The homepage(http://kaizer.se/wiki/keybinder/) of that library introduces that keybinder is a library for registering global keyboard shortcuts. Keybinder works with GTK-based applications using the X Window System.
Related
I have a Perl/Tk window which is displayed on top of all other windows. It is a MainWindow->Frame->Label with text (it's a security classification banner). It must be a window which is on top. However, right now a user cannot move the window from its set location, so it will occasionally cover up a lower window control.
How can I make this window movable so it can be repositioned?
I don't have easy access to external modules since I'm on a closed network, so simple Perl/Tk code is best.
This is a Linux system running the KDE or Gnome desktop.
I have found that if you remove the decorations from a Perl/TK mainwindow, it cannot then respond to mouse movements.
I'm using Eclipse, and have set up my preferences so that editor hovers only appear when I press Ctrl by using the "Combined Hovers Keys Modifier" setting. However, when I Ctrl+Hover an item, I still have to wait for the hover delay.
Is there any way to remove this delay?
I'm using multiple Eclipse distributions, all at least Oxygen or newer. This is also for multiple OSes, including Fedora, Ubuntu, and Windows.
I'm looking for answers that don't tamper with operating system settings. Solutions like the accepted answer for this question about adding delay to tooltips aren't acceptable.
Hovers in Eclipse are implemented by registering an SWT MouseTrackListener on the control (GUI element) that wants to react to being hovered over, and showing the hover when MouseTrackListener.mouseHover() is invoked.
The documentation for MouseTrackListener.mouseHover() says:
Sent when the mouse pointer hovers (that is, stops moving for an
(operating system specified) period of time) over a control.
suggesting that there is no cross-platform way to change the delay.
You could consider filing an SWT issue to request adding an option for customizing the delay.
I want to switch the ctrl click functionality in Eclipse to be triggered by a middle mouse click. I saw a question here about how to disable the ctrl click functionality; I want to preserve it but give it a different or additional hot key.
Eclipse apparently can not bind commands to mouse buttons.
You could work around that limitation by using a separate program that allows you to define application specific actions for your mouse buttons, eg. X-Mouse Button Control, Logitech SetPoint (both via SO: Eclipse Back/Forward navigation using mouse buttons), or similar applications.
Or you switch to an IDE that allows mapping mouse buttons (and much more).
Eclipse can not bind it.
But you can bind it from the settings.
Try this link :
If you are using microsoft mouse.
https://support.microsoft.com/en-ca/help/269054/customize-program-specific-mouse-settings-on-your-mac
Also there are many 3rd party apps which can bind your requirement.
In Chrome (version 32.0.1677.0 canary Aura), I can't find the overrides tab/page in the Developer Tools settings. (It used to be placed between the "General" and "Workspace" tabs. Did they move it, or did I forget to enable something?
Hit Esc to open the console drawer, then you can open the Sensors tab via the drawer menu on the left.
Sensors provides geolocation and accelerometer settings.
Additionally, the newer Device Mode captures the basics of mobile device emulation.
Seems like the "Emulation" button only is available from Console, when Console is opened from one of the other tool tabs. Ex. "Source" or "Elements".
Go to "Elements" , click on the "Show console" icon. The "console drawer" will open in bottom part of the window with Console, Search, Emulation tabs. If this is a bug or not is hard to say.
This thread is quite old and everything is now changed with the new "device mode". You cannot use any of this anymore.
As stated here by #paul-irish (from the Chrome DevTools team) on twitter :
one should just activate the device mode, and then use the shift key + drag the mouse around to emulate pinch zoom, with no particular setup.
this pinch to zoom emulation doesn't seem to work very good with JS libs like Hammer.
For now, it is better to test pinch to zoom on actual devices, or with http://browserstack.com
I'm trying to use GTK+ 2.0 for my GUI, but I'm not sure how I could implement a menu that slides out when a button is clicked. Making a menu disappear/re-appear instantaneously would not be difficult to do as it requires a simple change to the visibility property. This app is being developed on Windows, but I'm also planning to port it over to Linux. So any ideas on how to achieve menu transitions that work on Windows and Linux?
Maybe you can make a menu widget yourself. Last time, I made a menu widget inherited from gtk dialog. You can move the dialog anywhere you want.