Questions tagged [placement]
206 questions
59
votes
3 answers
placement new and delete
What is the right method to delete all the memory allocated here?
const char* charString = "Hello, World";
void *mem = ::operator new(sizeof(Buffer) + strlen(charString) + 1);
Buffer* buf = new(mem) Buffer(strlen(charString));
delete…
![](../../users/profiles/663318.webp)
Vink
- 868
- 2
- 8
- 17
31
votes
9 answers
Bubble chart label placement algorithm? (preferably in JavaScript)
I'd like to automatically place 100-200 bubble labels so that the following requirements are met:
Labels should not overlap
Labels should preferably not overlap bubbles
Label should be close to bubble
Preferred label position (top left, top,…
![](../../users/profiles/104059.webp)
dani
- 4,614
- 6
- 47
- 91
24
votes
4 answers
WPF ComboBox popup placement : Bottom and aligned to the right edge
I'm trying to create a ComboBox with a non-standard dropdown alignment. Basically, I want the dropdown to be below the ComboBox, but aligned with the right edge of the ComboBox instead of the left edge.
What a normal ComboBox looks like, using…
![](../../users/profiles/98713.webp)
Thomas Levesque
- 270,447
- 59
- 580
- 726
12
votes
4 answers
Where to 'locate' C# structs? / how to organize structs within a project
I'm trying to understand what the convention is for placement of C# and/or C++ structs within a project. In it's own source file? If yes, are there any conventions that I should make a habit of following?
In first year, the conventions weren't…
![](../../users/profiles/920549.webp)
Ray
- 1,304
- 2
- 17
- 36
8
votes
4 answers
Stupid HTML placement issue: Forcing one element below another?
My basic layout is this:
...
...
// There's actually five tables, but that's irrelevant