Questions tagged [movable]
52 questions
131
votes
20 answers
Make a borderless form movable?
Is there a way to make a form that has no border (FormBorderStyle is set to "none") movable when the mouse is clicked down on the form just as if there was a border?

user
- 16,429
- 28
- 80
- 97
29
votes
2 answers
why is std::lock_guard not movable?
Why is std::lock_guard not movable, it would make code so much nicer:
auto locked = lock_guard(mutex);
instead of
std::lock_guard locked(mutex);
Is there something wrong with creating your own version, like:
template class…

valoh
- 393
- 1
- 5
- 6
18
votes
3 answers
Moving a control by dragging it with the mouse in C#
I'm trying to move the control named pictureBox1 by dragging it around. The problem is, when it moves, it keeps moving from a location to another location around the mouse, but it does follow it...
This is my code. and I would really appreciate it…

Paul Ghiran
- 1,233
- 1
- 16
- 29
17
votes
2 answers
std::map<>::insert using non-copyable objects and uniform initialization
Have a look at the following code:
#include
#include

mfontanini
- 21,410
- 4
- 65
- 73
11
votes
2 answers
Creating not copyable, but movable, objects in c++
Just a question. Looking at C++ Boost libraries (in particular boost::thread class) I ended up thinking: "how is it possible to create a class defining objects that cannot be copied but that can be returned from a function?"
Well consider this…

Andry
- 493
- 1
- 5
- 6
8
votes
2 answers
Making a moveable control in WPF
I have a panel, within that panel are several rectangular controls (the number of controls vaires) I want the user to be able to move the controls around within the panel so that they can arrange the controls in the way that suits them best. does…

TerrorAustralis
- 2,833
- 6
- 32
- 46
5
votes
1 answer
Nesting std::containers of movable objects
I have a class NoCopy that is movable, but not copiable.
I need to make a vector of 3 queues of NoCopy. I can create an empty one, but there is no way to add any element.
I can make a std::vector or std::queue and populate them. But…

Ondřej Navrátil
- 453
- 1
- 4
- 11
3
votes
2 answers
wxWidgets - Creating a borderless frame movable
I am attempting to convert one of my application written in C# - Windows Forms to C++ - wxWidgets.
My app is borderless and has a thin, transparent panel on top of the form which can be used to move the form. (I used the technique from this…

Yana D. Nugraha
- 5,069
- 10
- 45
- 59
3
votes
1 answer
Using positive lookbehind in Movable Type templates causes error due to < in pattern string
I'm attempting to limit the length of a displayed string to the first 50 characters plus any needed to end at the next word boundary. I'm using the regex_replace filter in the template tag to replace all the characters after the pattern match with…

user3646062
- 31
- 1
3
votes
1 answer
Can I move window using an object inside that window?
Is it possible in Cocoa to move a window by dragging an object which is inside that window?
For example: I have a webview inside a window, big as the window, so setMovableByWindowBackground will obviously not work. Is there a way to click and drag…

Donovan
- 6,002
- 5
- 41
- 55
3
votes
1 answer
Qt 4.7.4 - Make transparent pixels clickable (expand hitbox) in QGraphicsItem pixmap
I am creating a circuit schematic editor using Qt Creator. I have a QGraphicsScene/QGraphicsView canvas that I would like to drop images of circuit components onto and move them around.
I am currently using a pixmap QGraphicsItem and adding it to…

Josh O'Hara
- 33
- 1
- 3
2
votes
2 answers
Qt: restrict movable area of a QGraphicsItem inside an other QGraphicsItem C++
I think my question is similar to this post but in C++ and inside a QGraphicsItem.
I would like to fix the movable area of my object inside an other QGraphicsItem. I want my object to stay inside if I try to move it outside.
Maybe the idea will be…

Jeanstackamort
- 309
- 2
- 4
- 16
2
votes
2 answers
Movable div on scroll

vlady
- 610
- 1
- 6
- 12
2
votes
4 answers
How to select and move multiple controls at runtime
I have created some custom controls (TCustomControl) in Delphi that I can move them at runtime but only one by one. How I can select two or more of these controls, at runtime again, and move them around all together with the mouse?
Thank you.

pani
- 1,075
- 6
- 13
1
vote
1 answer
How to Flutter Movable & Draggable & Scrollable Menu Floating Action Button
I'm trying to Flutter Movable & Draggable & Scrollable Menu Floating Action Button
Here is layout screen I have been changed many offset. It doesn't work. Point me if you have any flutter libraries that movable
I've been tried this movable &…

Aung Ye Zaw
- 13
- 5