ManagedMessageBox 2.0
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?
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.
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?

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)

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.
PB Forums : Proof positive that 2 heads (or more...) are better than one 

- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada