Questions tagged [region]

Can refer to many different things depending on the use of other tags with it.

768 questions
5
votes
3 answers

Cross-platform code label macro?

In MSVC & C#, #pragma region can be used to label a code section. Similarly, in GCC/Clang, #pragma mark can accomplish the same thing. Is it possible to define a single macro such as CODELABEL(label) which will work for both compilers? Basically,…
RectangleEquals
  • 1,825
  • 2
  • 25
  • 44
5
votes
4 answers

Prism : Change the active view

I've got an little tool similar to the Windows Control Panel. The tool allows us to manage users, configure databases, manage scripts, etc. The home page presents all the sub categories of the application. When you click on a link, it loads the view…
esylvestre
  • 1,850
  • 4
  • 21
  • 30
5
votes
3 answers

Silverlight Navigation using Mvvm-light(oobe)+MEF?

What is the best approach for navigating between UserControls/Pages(out of browser experience)? I'm fairly new to Silverlight and even newer to the mvvm pattern. How well does the Navigation Framework Integrate with the MVVM Light Toolkit? A…
5
votes
1 answer

How do I draw the outline of a collection of rectangles?

As part of a project I'm working on I have to store and restore magic wand regions from an image. To obtain the data for storage, I'm utilizing the GetRegionData method. As the specification specifies, this method: Returns a RegionData that…
aevitas
  • 3,753
  • 2
  • 28
  • 39
5
votes
1 answer

Detect iphone region

In my app, the user is supposed to insert a phone number, which is then displayed somewhere else. In the contacts application, when displaying a phone number, it automatically appears in the format of the language selected by the user. Is there a…
camilo
  • 1,451
  • 3
  • 20
  • 31
5
votes
0 answers

Converting regions/subdivisions (from FIPS to ISO 3166 or vice versa )

I have two databases, one with country and subdivisions (states/regions) and one with cities. The problem is, that they use both a different norm. The Countries subdivisions delivers: ISO 3166-2 Codes (Numbers and Characters) and the Cities…
Jan
  • 12,992
  • 9
  • 53
  • 89
5
votes
2 answers

Style Individual Regions in jvectormap

SO, I've got a custom jVectorMap and I've succeeded in changing the color of the regions using this code from the jVectorMap API: regionStyle: { initial: { fill: '#5e7073', "fill-opacity": 1, stroke: 'none', …
Marcatectura
  • 1,721
  • 5
  • 30
  • 49
5
votes
1 answer

how can I limit the map area to only one country in the latest iOS6?

I am making an app for iOS6 using mapkit. I want to limit the boundaries of the map only to a specific region/country. Is there a way to do this? The problem has already been discussed here: how can I limit the map area to only one country in…
5
votes
2 answers

Better search in emacs with expand region

Suppose we have the following text: (print "thIis-is-a-text") and the cursor is in the word "this" which between char 'h' and 'i'. In emacs, if I type C-s C-w, the text to search is 'is', again C-w is 'is-is', again C-w is 'is-is-a', again C-w is…
Boris
  • 555
  • 7
  • 22
4
votes
1 answer

Best practice for OnPaint, Invalidate, Clipping and Regions

I have a User Control with completely custom drawn graphics of many objects which draw themselves (called from OnPaint), with the background being a large bitmap. I have zoom and pan functionality built in, and all the coordinates for the objects…
Trevor Elliott
  • 11,292
  • 11
  • 63
  • 102
4
votes
1 answer

Why some AWS Regions are disabled by default?

Why are some AWS Regions disabled by default? What is the main reason behind it?
Haider Ali
  • 63
  • 1
  • 4
4
votes
1 answer

How do I change cloud run project region 'us-west1' to 'asia-south1'

I have a Django project running with google cloud run in 'us-west1' region. I want to switch that region to 'asia-south1', How is that possible? Project should run through 'asia-south1' region so that response time will get reduced. ( I don't need…
4
votes
1 answer

Getting A Window's Region

I am trying to a get a window's height and width using this : [DllImport("User32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool PrintWindow(IntPtr hwnd, IntPtr hDC, uint nFlags); …
user779444
  • 1,365
  • 4
  • 21
  • 38
4
votes
4 answers

c# #region/#endregion mismatch

Anyone know a good way to find out where i have an extra #region or #endregion in my code? I have about 5000 lines of c# code and i'm trying to do it manually right now. Any help is appreciated.
toosweetnitemare
  • 2,226
  • 8
  • 33
  • 44
4
votes
0 answers

Android: Problem with the Path Style in Region.Op

My basic goal is to subtract a Path from a predetermined region (also created with a Path) in Android 1.6. Is there anyway to get Region.setPath to treat the path passed to it the same way the canvas treats a stroked path (which is what my users…
Michael
  • 41
  • 3