I would suggest that you read through the "How to Ask" page.
One of the major parts of that page is the section "Do your homework". What it tells you is that you should search for your answer, and research your problem before asking your question here. Looking at the question you linked, it fails in this regard. You might have done extensive research, but if so, you don't tell us.
In your question you state what you want. And though that is nice, it's not enough for us. A good question also contains "this is what I've researched", "this is what I've come up with" and ideally "this is what I've tried". The last part often being relevant code.
Then you have a good and appropriate question. Failing to include these parts does not mean you will never get an answer. After all, you did. However, you do run an increased risk of getting downvoted, or perhaps your question being closed for the appropriate reasons.
So if you want to avoid it, put some more effort into researching your own problem before bringing it to Stack Overflow. You'll see that your questions will significantly improve and that the response to them will be more positive.