ManagedMessageBox 2.0

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Very sexy stuff netmaestro. Will come in as useful as all of your stuff. Thanks you!
harff182
Enthusiast
Enthusiast
Posts: 105
Joined: Thu Dec 08, 2005 4:58 pm
Location: Duesseldorf, Germany

Post 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?
Sorry 4 my poor English, it's the only one I learned 40 years ago...
since 17.12.08: XPHome(SP3) + PB 4.30
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Post by loadstone »

Very like you!!!!!! :D
good !!!
User avatar
Blue
Addict
Addict
Posts: 966
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post 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.
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Updated code to work with PB 4.30 Final.
BERESHEIT
Post Reply