Centered MessageRequester() / MessageBox()

Posted by on July 2, 2009

As usual, I was browsing the PureBasic forums to see what was new, nothing much (heh…) but something caught my attention, the fact that some user requested for the IDE’s message dialogs to be “centered” ( because he had multiple displays and the messages would appear in between them ) just to get shit-faced by an actual staff member!

You can’t just say “it’s Microsoft’s fault” — Are you in some sort of mac-only cleanse?, What’s your #%&%#$ problem?!

Those who “pass the ball” (as the user suggested) are part of the problem. You, being a programmer can certainly code a simple CBT hook, right?. Are you against hooks, perhaps – you are a purist, I hear… Sorry, but sometimes solutions are “dirty” and you have to live with them.

Just for the record, I too use a split-screen and I find it annoying that dialog boxes are not centered to their parent.

Just for the record, I too use a split-screen and I find it annoying that dialog boxes are not centered to their parent.

I certainly think that this sort of behavior is not good for a business, but then again they’ve been cat-walking away from reality for years now (Look at their website if not, look at the fact that they haven’t implemented basic functionality to their language and by basic I mean a proper container library and whatnot!). Most of their user-base consists of people who are afraid of real, world-class languages. That’s my opinion, take it or leave it.

But before you throw crap at me do remember that I support them, I just don’t like the way they’re doing things. Pretty much like Apple does (they do crap) however the fanboys don’t realize this and they see any criticism as bad for the company image, when in fact what damages the company is that nonsense wall they put up when anybody, and I do mean “anybody” says “anything” that appears to be “against” their product/s.

Even if you don’t like it at least have the decency to hear those who are genuinely interested in your product, those who are giving away (and for free) true and useful suggestions for you to improve them. I don’t give a damn about this particular user but I do care when a so called company does this sort of things to their own users, it’s just uncalled for and plainly unprofessional.

Have a nice day, code follows.

And a small example:

The “Programmer” can now copy&paste and compile.

Cheers.

PS: You can also find the source in here: http://gushh.net/dev/?file=pb/centermessagebox.pb As usual, that’s my code repository for PB.