How to fix right click on ubuntu? - ubuntu-18.04

I have troubles with my right click on touchpad, it is working as macOS(you have to click left click with two fingers). But it doesnt work properly, so sometimes it works as double, and sometimes as ordinary. I want to set right click as RIGHT CLICK, not as double finger click on left click.
Regards

UPD: I found an answer. To make it u just need to write
gsettings set org.gnome.desktop.peripherals.touchpad click-method 'default'
'finders' - for right click as double finger left click

Open terminal and install tweaks
sudo apt install gnome-tweaks
Once installed, press Super/Windows key to open the Application menu and search for ‘tweaks’. Click on Tweaks to start the program.
In the GNOME Tweaks, go to Keyboard & Mouse in the left sidebar and under Mouse Click Emulation section and select Area.
for more details check this

Related

Is this a bug? Using a touch input (With mouse input on) on a button but nothing is done

I am using a button to transit to another layer. But I can't transit to that layer. I am using construct 3.
When I click on that button
onTouched an object (the object is that button) -> Go to layer (Layer02)
But nothing happens. I am using Touch but I have set the mouse input on. I used other object to try such as text field, and it works. Everything works except when I used button.
Is it a bug? Or I am not doing it right. The variables you see in the picture are for debugging purposes.
These are my events:
I think you refer to "transit to another layout" (not layer) 😉
On your screenshot I see all your events are OK. If you add Touch doesn't need add Mouse (you can use the mouse to simulate touch on browser).
I create a new project with the same events and works correctly, I attach a .c3p so you can try it. 😌
https://www.dropbox.com/s/7x1r27rs5a6k5d0/button_layout.c3p?dl=0

Why does the first button pressed shrink in codenameone?

I am a novice programmer working on a project that has buttons change color when pressed (among other things). I am having a problem that the first button I click shrinks (the padding increases?) when it is clicked, but it still works and does everything it is supposed to. I have tried looking through theme.res to find a way to stop the button from shrinking when pressed and I have tried looking for an answer online, but have not found a solution. Thanks!
In the Resource Editor(theme.res), go to "Themes" -> "Unselected" tab. Right click over the style you use for the button and press Derive All.

mvwaddstr() causes false positive with McAfee

I've been writing a C Curses application with PDCurses. It was compiling and running fine, but when I added some code to draw a string in a window, McAfee quarantines my compiled .exe as a trojan. Here is the line that causes the false positive:
mvwaddstr(window, 1, 1, "a string");
With this line commented, McAfee doesn't detect it as a trojan. With this line active, it does. It detects it as the trojan GenericRXAM-FG!752E40763FE4. Googling this gave me no results. Why is this happening? Is there a way I can have McAfee not quarantine this file?
this is not universal, it depends on the mcafee version you are using, there are many, entreprise, security etc, menus are different...
bu to generalise, hope is the good version: 1.
Type “VirusScan Console” at the Start screen and press “Enter.”
2.
Right-click “On-Access Scanner” listed in the left window pane and select “Properties.”
3.
Click “All Processes, Detection, Exclusions” and select the “Exclusions” tab.
4.
Click the “Add” button, click “Browse” and select the folder or file you want to add as an exception.
5.
Click “OK” in the “Add Exclusions Item” dialog box and click “OK” in the “Set Exclusions” prompt.
6.
Click “Apply” in the “On-Demand Scan Properties” window and click “OK” to save your settings.
yes, you can create an exception to not scan that file into mcafee
just add the path to it, depends on which version of mcafee but to generalise something like :
1. Type “VirusScan Console” at the Start screen and press “Enter.” 2. Right-click “On-Access Scanner” listed in the left window pane and select “Properties.” 3. Click “All Processes, Detection, Exclusions” and select the “Exclusions” tab. 4. Click the “Add” button, click “Browse” and select the folder or file you want to add as an exception. 5. Click “OK” in the “Add Exclusions Item” dialog box and click “OK” in the “Set Exclusions” prompt. 6. Click “Apply” in the “On-Demand Scan Properties” window and click “OK” to save your settings.

oracle database modeler missing toolbar

I am fairly new to oracle database modeler. the first time I ran the application I seem to noticed that my toolbar isnt showing. is there a way to activate it?missing toolbar
Right click on the Logical Model and select "Show". A new window opens up in the middle section and the tool bar should appear.
Hope it helps.
It is not missing. You're not on the right item(page). Go to the view/subview and open a model (diagram) and the toolbars will appear. The toolbar changes based on the page. You're currently on the home page. Easiest way to see the page is double click on the sub-view and it will open a new diagram and the toolbar should appear.
If toolbar does not appear although doing all steps in previous responses try this:
Click "Tools" and then "Preferences"
Select "Environment" option.
In the dropdown of "Appearence" change the selected option (Usually are 'Oracle' and 'Windows').
Click in 'Ok' to save changes.
After step 4 the program will require to be restarted, accept it and when it restarts the toolbar will be visible again.
Click View
->Go to Drop Down and click Browser
->To the left of the "data modeler screen" click
under Browser and click Logical Model Drop
down and then Subviews
->Once you click Subviews, click new Subview and
then this will create the new view (in the middle screen) along with
displaying the toolbar
Hope this helps!
On macos, you should double click on the Logical Model tab in the browser. Then check the "visible" box and "apply".

Show NotifyIcon Context Menu and Control Its Position?

I'm trying to show a context menu when I left-click a NotifyIcon. Just calling NotifyIcon.ContextMenuStrip.Show() doesn't work very well. A solution has been posted here before that calls a secret method using Reflection:
Dim mi As System.Reflection.MethodInfo = GetType(NotifyIcon).GetMethod("ShowContextMenu", Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic)
mi.Invoke(Icon, Nothing)
This works great, except that I also need to control where the menu is shown. I want to wait for the SystemInformation.DoubleClickTime to elapse between receiving the NotifyIcon.MouseUp event and displaying the menu, so that I can handle single-clicks and double-clicks separately. But invoking the ShowContextMenu method displays the menu at the current mouse position when ShowContextMenu is called, not when the icon was actually clicked. Which means that if the mouse moved during the DoubleClickTime, the menu will be displayed in a different part of the screen. So if I can control where the menu is shown, I can just save the mouse coordinates when I receive the MouseUp event, and then I can ensure that the menu is displayed near the icon. Is there a way to do this?
Thanks in advance.
Well, I just discovered that there are existing programs that exhibit this same behavior. I just went through all the icons in my system tray and about half of them do it. If you left-click the icon and then move the mouse during the delay before the menu appears, the menu will appear at the last mouse location, wherever that is on the screen. Snagit is one application that does this. Outlook is the only program in my tray that always shows the menu where I clicked the icon. But Snagit looks like it's using a .NET ContextMenuStrip, while Outlook is probably using a native menu.
So either this is standard behavior, or it's a problem that no one else has been able to solve either. And as a user, I've never noticed this behavior until yesterday when I was testing my own application. So I guess it's not that big of a deal and I won't worry about it.

Resources