ionic 2 Sidemenu does not toggle on swiping on screen - ionic2

In ionic2 today I start with template sidemenu and side menu is toggle on swiping on screen from every where by mouse. That means when swip from left to right on screen side menu is opening and from right to left sidemenu is close properly.
But when i buid this on my phone ITS NOT WORKING. Today almost all application has this facilities and no one go to top to touch menu button on left-top corrner to open side menu. how can enable this features I also try with making
TO
but does'nt Work
thanx in advance

Related

How to enable the touch screen maintenance through code?

I am interested in it because I need to drag the ScrolledWindow not with a scroll bar but with a mouse - press the mouse button and drag the window content (Dragging the area inside the ScrolledWindow). As I figured out it is possible with the help of enabling the check box (touch screen simulation) in the inspector, but the problem is that I need to enable this check box every time I run the application.

Why does a swipe gesture stop advancing paged view controller after opening and closing side menu?

My app, written in SwiftUI 2.0, is based on a UIPageViewController which displays four panels, in the common onboarding style. The user can swipe through them, or advance them using an arrow button at the bottom.
I also have a button in the upper left that opens a slide out menu, which can be closed by with a tap gesture anywhere on the interface. This is driven by changing the geometry in the swiftui "Geometry Reader", in which the page controller is embedded.
All this works correctly, except when the user closes the side window, the swipe gestures fail to activate the transition between pages. The active page slides with the swipe, but then snaps back into place. However, the arrow button still advances the UIPageViewController to the appropriate next page.
What causes the swipe gesture to become inactive after this slide out is triggered?
I've posted a small sample app isolating the issue here: https://github.com/stevepvc/Slide-and-Swipe-Concept. The code controlling the slide out menu is in "Top Content View".

Global mouse right button menu with movements for windows

I want to create something like plugin or driver for mouse and extend right button mouse menu with movements. First of all, I want to create next feature:
1.user press right button and while button pressed move mouse up
2.will be shown a simple image with the scheme. arrow up and text "close"
3.when button released current window will be closed.
something similar was in old opera browser and it was very comfortable.
I try to find in googleб but I found how to do only for WPF or browser. I want to create global for the whole system with different configs. for example mouse, up in explorer will close the window and in visual studio, it will fire "Run"(f5).
I want to create this using C#. also I have basic knowledge in c++.
I will be grateful for help

Drag and drop a button using CCControlbutton

I am new to cocos2d-x and I am developing a game in x-code using cocos2d-x2.0.4. In my game I created a button using CCcontrolbutton. Now I want to drag my button to one place to another. I tried with all the CCControlEvents but it doesn't work. Now I want to know, is it possible to drag and drop a button using CCControlbutton. I pasted my code which I have used to create the button.
button1 = CCControlButton::create(CCScale9Sprite::create("7.png"));
button1->setAdjustBackgroundImage(false);
button1->setPosition( ccp(winwsize/6, winhsize/7) );
button1->addTargetWithActionForControlEvents(this, cccontrol_selector(plus::add),CCControlEventTouchDragOutside);
button1->addTargetWithActionForControlEvents(this, cccontrol_selector(plus::add),CCControlEventTouchDragInside);
this->addChild(button1, 4);
In add() I have given the code to enter next scene. But now it is entering while clicking the button. But i want while drag it to one position to another. If it is possible to drag a button using CCControlbutton then please give me some sample codes. Thanks.
The events CCControlEventTouchDragInside and CCControlEventTouchDragOutside are happening when the user's touch (his fingertip) is entering or leaving your button while already or still touching the touchscreen (or while the mouse button is still pressed while the mouse pointer moves).
You would need to observe the dragging process yourself. Starting with a click on your button, change the button's position while the user is dragging (to visualize the dragging process), and then call plus::add() when the dragging ends in your target area.

How to disable and enable the window refresh when click on the top-left app icon?

How to disable and enable the window refresh when click on the top-left app icon?
For example, in window every .exe has a icon in its top-left sign, when we right click on that icon, some application stop refresh its window(For example, if the applicaiton has text-input, when you left-click on the top-left icon, the cursor in the text-input will stop blink), and for some other application, when you lef-click on the top-left icon, the application window will still refresh, how to enable or disable this?
Any code example is welcome, the question is urgent, please give your help.
Thanks a lost.
Wa
It's a standard menu behavior implemented with Windows. It's better not to override it as it's really painful. You can also put a a wait logic (using WaitForSingleObject) or Sleep for a while but that will make the application unresponsive.
If you can explain the purpose, we might be able to help you better.