Questions tagged [mousecapture]

27 questions
0
votes
1 answer

c# WPF - How to recognize mouse click outside control without blocking other controls from being clickable

I now read many threads and tried and so on. I don't get it. Question When using MouseCapture any other control isn't motioned. Cannot click something. No Highlightings happens on mouse over. MouseCaption is blocking that. Clicking Twice is…
Kaspatoo
  • 1,223
  • 2
  • 11
  • 28
0
votes
2 answers

Draw cursor multiple display (only draw text icon) GDI

I select displays in multiple display environments and produce captured programs. And try to draw a cursor by selecting dc among multiple displays. I draw cursors with bitblt bitmap images and it works well. HDC HDCC = CreateDC((L"Display"), NULL,…
Birds
  • 65
  • 2
  • 13
0
votes
2 answers

How to get MouseEvents for a control even if another control already captured the mouse

I'm working on a line connector control which connects from one pin to another. The typical WPF solution is to use mouse capturing when the user starts to drag the connection line. Unfortunately I need a mouse over indicator if the user is over a…
Rod
  • 651
  • 6
  • 11
0
votes
1 answer

Using Mouse.Capture to detect a click outside of a given control

I have a TextBox in a WPF project where I am trying to detect a mouse click anywhere on the Application other than in the TextBox. Here is the code that I have so far. System.Windows.Input.MouseButtonEventHandler clickOutsideHandler; public…
Hypersapien
  • 617
  • 2
  • 8
  • 23
0
votes
0 answers

Why don't background windows receive mouse events when I drag off the foreground window?

When I click on a non-reactive area of a win32 window in the foreground (for example, a blank space on a menu bar) and drag the mouse off, background windows do not receive mouse events. Buttons don't got into hover state, the cursor doesn't…
Paul Accisano
  • 1,416
  • 1
  • 14
  • 25
0
votes
1 answer

Mouse events for captured element stop firing while dragging

I have some code that draws some points on the screen and then allows them to be dragged while holding the left mouse button. This kinda works except constantly the mouse events stop firing and the point being dragged stops moving. Because all of…
JumpingJezza
  • 5,498
  • 11
  • 67
  • 106
0
votes
1 answer

Do I have the right idea with using SetCapture() for a windowless checkbox?

My Table control uses windowless checkboxes (because there can be an arbitrary number of checkboxes here). Right now, I use TrackMouseEvent(TME_LEAVE) and manually checking if the mouse is in the checkbox rect during a WM_LBUTTONUP. I have TODOs…
andlabs
  • 11,290
  • 1
  • 31
  • 52
0
votes
0 answers

Rotating Camera Around Self, limiting rotation angle in ThreeJS

I am using Three.JS to create a scene. I want to be able to set my camera in the corner of a room and have the viewer rotate the camera around on the spot, without moving the camera's position. Also, I want to limit the span of rotation (so that…
Lozza
  • 75
  • 5
0
votes
1 answer

Mouse.Capture returns false and fails

To simulate a modal dialog in WPF, I display a Window and call: Mouse.Capture(dialogBoxArea, CaptureMode.SubTree); The call returns false. Mouse.Captured is null. dialogBoxArea.Visibility is Visibility.Visible. dialogBoxArea.IsEnabled is true. If…
Robert Gowland
  • 7,677
  • 6
  • 40
  • 58
0
votes
2 answers

WPF: why CaptureMouse may fail?

I have a quite complex view with multiple tabs inside tab control. On one tab there is a control with adorner layer. Adorner layer calling CaptureMouse in MouseLeftButtonDown event handler to capture mouse input. Everything works fine. But if I…
Seldon
  • 1,395
  • 1
  • 11
  • 19
0
votes
1 answer

jQuery datetimepicker - The mouse is captured while selecting time

I have a page with a DateTimePicker attached to a textbox. The problem is that the mouse is captured by the hour slider button when I open datetimepicker and click on the hour (or minute) slider button. The capture is not released even if I click…
A9S6
  • 6,575
  • 10
  • 50
  • 82
-4
votes
2 answers

How can I capture the mouse in a DataGridViewRow, so it only moves within the row

I am writing a reservation application which utilizes a DataGridView to list the available rooms down the Y axis and the available times on the X axis as the columns. I would like the user to be able to drag select a time frame, but it has to be…
Cody
  • 63
  • 10
1
2