First question for bage request: What
is the positive behavior the requested
badge is supposed to encourage?
I can see the merit of the "dialectical badge" more than the "hyperactive badge" in that context, although I'm not sure precisely where the "length" value for triggering the badge could/should be set. Take the following as a hypothetical situation:
I'm writing a C# winforms app and want to flash the titlebar/taskbar button like Messenger does
Use the FlashWindowEx Win32 API call to achieve this.
Use the FlashWindowEx Win32 API call to achieve this. You'll need to use P/Invoke to call out to Windows as it's not a native function available in the .net framework BCL.
To use this you'll need to define a
struct that the API call uses, as well as the signature of the API call. They are (taken from pinvoke.net):
static extern bool FlashWindowEx(ref FLASHWINFO pwfi);
public struct FLASHWINFO
public UInt32 cbSize;
public IntPtr hwnd;
public UInt32 dwFlags;
public UInt32 uCount;
public UInt32 dwTimeout;
You can then call the API to cause the window to flash, like this:
// This code would be a method on the window you want to "flash", taken from
public static bool Flash()
FLASHWINFO fw = new FLASHWINFO();
fw.cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(FLASHWINFO)));
fw.hwnd = this.Handle;
fw.dwFlags = 2;
fw.uCount = UInt32.MaxValue;
Whilst the second answer is essentially the same as the first, but quoting sections of the linked articles it does achieve the desired (in my mind at least) outcome of making the answer on stackoverflow truly comprehensive and the "one-stop shop" to answer that particular question with additional reading provided, should the OP of the question need it.
It's likely that the second answer would receive sufficient up-votes to receive a "Nice Answer", or better, badge which would somewhat reduce the need/purpose of a "Long Answer" badge so, perhaps the badge proposal could be transmuted from that to "Comprehensive Answer":
- Has at least n% of the up-votes for answers on the question
- Is at least n% of the total size of the answers on the question
- Contains at least n links
- Contains at least n code-blocks
I'm not too sure on the last two requirements, but as I've generally found that code examples and "further reading" tend to enhance an answer I've dropped them in there.