Page 2 of 2

Posted: Fri Jun 06, 2008 2:03 pm
by Fangbeast
Very sexy stuff netmaestro. Will come in as useful as all of your stuff. Thanks you!

Posted: Sat Jun 28, 2008 10:17 pm
by harff182
@netmaestro:
What do you think about a checkbox for "Don't ask me this again." or questions like this, that the program can react on?

Posted: Mon Jul 07, 2008 4:56 am
by loadstone
Very like you!!!!!! :D
good !!!

Posted: Mon Jul 07, 2008 9:01 am
by Blue
Thanks, NetMaestro.

This is a neat improvement to a common coding element that was in bad need of spiffying up.

I particularly love the box produced by your sample program, the one with the pale green circle in the background.
So simple, yet very eye-catching.

Question: In the sample code, you say you retrieved the size (w:257, h:95) by using the #MMB_TEST constant.
But when I use that constant, I get (w:334, h:136) (which I have verified as indeed correct and exact).
Using those values (rather than yours) results in (almost) the same drawing in the box. (I coloured the box red just to follow the changes...)

So my question boils down to:
• how did you end up with your values ?
• how come such different values produce the same result? :shock:

What am I missing or misunderstanding here ?

(running Windows Vista SP1 FR, standard fonts, standard everything....)

--------------------------------------------------------
mystery solved (I think):
The strings in English (Abandon, Retry, Ignore) :?: are a lot shorter than in French (Abandonner, Recommencer, Ignorer).
Hence the shorter sizes reported by #MMB_TEST on your machine. Right?
So, on a different locale, the managed message box will certainly work, but the grahics may end up slightly distorted.

Posted: Mon Dec 22, 2008 12:36 am
by netmaestro
Updated code to work with PB 4.30 Final.