Questions tagged [regions]
172 questions
3
votes
2 answers
Algorithm for finding a set of regions containing a cell
I am working with some spreadsheet data and I have a set of cell regions that are of arbitrary bounds. Given any cell, what is the fastest way to determine the subset of regions which contain the cell?
Currently, the best I have is to sort the…

Mike Dour
- 3,616
- 2
- 22
- 24
3
votes
1 answer
Why #region directives may not be auto-formatted?
I started noticing that the indentation behavior of the C# #region and #endregion directives no longer get indented with my code.
Visual studio (2013) always pushes them to the first column of the line. This is not how it is supposed to work and it…

thehan83
- 163
- 1
- 8
3
votes
1 answer
Prism: Navigation between Shells?
I want to create an application with Silverlight & Prism where the user can navigate like this:
The red rectangles depict regions with different Prism modules inside (6 different modules in this example).
What is the best way to approach the…

Phasma
- 232
- 2
- 16
2
votes
1 answer
Prism shell regions not populated when hosted in an MFC CView
We are working on a new application that uses C#, WPF4, Prism4 and MEF. The application comprises a main shell window which defines a grid with some splitters and five regions, and a number of separate modules that contribute UI functionality in to…

prlcutting
- 379
- 2
- 12
2
votes
1 answer
C# region settings confused
Its all about double, float numbers and seperator. So my problem is: I always get double value with dot seperator. If I convert it to string I get comma. If I change it back to double it gets dot again. Add some code here:
data =…

Dovydas
- 99
- 2
- 8
2
votes
2 answers
Equivalent of windows gdi regions in linux
I sometimes use windows gdi regions for graphics drawing and invalidation/validation. For example the program http://www.maxerist.net/main/soft-for-win/tubicus (oss) was made using only regions (no bitmaps or off-screen buffer). The drawing was made…

Maksee
- 2,311
- 2
- 24
- 34
2
votes
3 answers
Prism RegionAdapter - Removing then Adding View
I have a prism/wpf/mef solution that contains an AvalonDock. I created a RegionAdapterBase class that handles creating and removing the Panes from AvalonDock.
Heres the problem I'm running into:
I click a button in my menu and a view is…

Chris Klepeis
- 9,783
- 16
- 83
- 149
2
votes
2 answers
How to discard non-rectangular closed regions in image in MATLAB?
I want to extract the rectangular-like shapes (some may have triangular extensions on one side) with an image like this;
What I have done in MATLAB is;
BW=imread('Capture2.JPG');
BW=~im2bw(BW);
SE = strel('rectangle',[1 6]);
BW =…

freezer
- 531
- 1
- 11
- 28
2
votes
0 answers
Building Country and Region (State) select options in Rails 5
In my Rails 5 app, I have an Address model, which has Country Code and Region (state). I've done quite a bit of research, but I can't seem to find a current gem that will help me create a select dropdown for country that's populated with all the…

Onikoroshi
- 281
- 4
- 16
2
votes
3 answers
Emacs: select multiple regions and switch to inverse
I know there are a few different packages for selecting multiple regions in gnu emacs. What I'm looking for is a way to select multiple regions, operate on them, and then select the inverse of the previously marked regions in order to then operate…

HippoMan
- 2,119
- 2
- 25
- 48
2
votes
1 answer
Implementing irregularly shaped regions in a strategy game
I'm developing a strategy game for Android using libGDX. It's loosely based on Risk and requires irregularly shaped regions. However, I am having trouble deciding how to detect when a player touches a point within one of these regions.
As of now,…

Mr_GameDeveloper
- 31
- 4
2
votes
0 answers
custom us regions by zipcode using [r] geographic maps
The company I work for has its own special regions of the US for comparing sales. I'd like to be able to use such R packages as maps, mapdata and maptools but using these custom regions, each of which is defined by sets of zip codes. Is there a…

rwinkel2000
- 136
- 9
2
votes
3 answers
Prism, Regions, Magic strings and refactoring : am I missing something here?
To build a composite application view in my application, with different regions, untill now, I've always used content presenter and used DataBinding to set its content.
If I wanted to change its content, I would just have to use an event aggregator,…

Fabio Salvalai
- 2,479
- 17
- 30
2
votes
1 answer
White Flicker after CombineRgn function
It seems the flickering is generated by the CombineRgn function, but I really have no idea why this happens, since i've never used regions that much I'm possibly missing some knowledge on the matter.
Some events in the program triggers the addition…

Row Rebel
- 267
- 3
- 11
2
votes
1 answer
Dynamically add fields based on select list apex 4.2
I'm developing in apex 4.2 and currently I'm having some issues with my form.
I want to (dynamically) add textfields/regions based on the number that is selected in a selectlist.
So when I select 6, i want to see 6 regions with the same kind of…

Elvira
- 1,410
- 5
- 23
- 50