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…
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,…
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…
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…
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 I'm trying to make the image into a footer, below all the tables, but the best I can manage is that it…
Dubslow
  • 325
  • 2
  • 3
  • 15
6
votes
3 answers

Need Help Programming Battleship Location Selector/Checker

I am trying to develop a 1-sided Battleship game and I have nearly everything set up. I only need to incorporate an array which holds at this time, 5, Ships objects. The class I created for each ship is called Ships.java. Earlier I was having…
Joe
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Minimum area calculation algorithm (Place tiles on edge only)

I have different dimension of small rectangles (1cm x 2xm, 2cmx3cm, 4cm*6cm etc). The number of different type rectangles may vary depending on case. Each type of different rectangles may have different number of counts. I need to create a big…
Charles Tang
  • 177
  • 1
  • 15
6
votes
1 answer

How do I move the AvalonDock Anchorable Pane tab to the top instead of the bottom?

I am using AvalonDock in a project and would like to use the Anchorable Pane, but instead of the tab appearing at the bottom, I would like it to appear at the top like it does on a Document Pane. For my project, a Document Pane is not the…
Matt Rockwell
  • 436
  • 1
  • 6
  • 20
5
votes
1 answer

What is the best way to evenly distribute objects to fill a curved space in Unity 3D?

I would like to fill this auditorium seating area with chairs (in the editor) and have them all face the same focal point (the stage). I will then be randomly filling the chairs with different people (during runtime). After each run the chairs…
johnny117
  • 73
  • 7
5
votes
7 answers

How to position label tags in relevance to the input fields

I am having a problem sorting this one out. here's my html

Saint Dee
  • 955
  • 6
  • 20
  • 42
4
votes
1 answer

Determine Popup placement relative to target

How can I determine the placement (PlacementMode) of a Popup control relative to it's target after it has been drawn to the screen? I am noticing that though I set the Placement of my Popup to Bottom, when there is little room left on the screen it…
mmaguigan
  • 65
  • 1
  • 4
4
votes
1 answer

jQuery Validate error placement

Unfortunately, I haven't had much success in finding a solution to this problem, so here goes again... Basically, i'm trying to target and replace the contents of my existing input [label] tag with my error message instead of relying on the…
decbrad
  • 191
  • 5
  • 15
4
votes
2 answers

assembly 8086 cursor placement

I want to place the cursor after the "paper:" wait until an ENTER is given and then place it after "author(s):". both sentences are defined variables that are printed. insert db "******* Insert new paper *******",0,0Ah,0Ah,0Ah, 0Dh, "$" …
justwarmilk
  • 43
  • 1
  • 5
4
votes
1 answer

TensorFlow placement algorithm

I would like to know when the placement algorithm of TensorFlow (as described in the white paper) gets actually employed. All examples for distributing TensorFlow that I have seen so far seem to specify manually where the nodes should be executed…
Paul
  • 987
  • 1
  • 10
  • 23
4
votes
2 answers

Smart pie chart label placement algorithms?

I am building a custom chart library for my company. I'm having troubles finding / inventing a good algorithm to place the chart labels so that the following requirements are met: Labels should not overlap Labels should remain as close as possible…
Caffenero
  • 41
  • 2
1
2 3
13 14