Page 1 of 1

MessageRequester Font

Posted: Fri Aug 12, 2005 6:12 pm
by BOOGIEMAN
I want to change font of messagebox
How do I do that, because this doesn't work:

Code: Select all

LoadFont (0, "Courier", 12) 
UseFont(0)
MessageRequester("PureBasic", solution$, 0)
:?:

Posted: Sat Aug 13, 2005 5:08 am
by Splondike
Unfortunately, it's not that simple, at least with the normal messagebox API (which I assume Purebasic uses on some level). The long and the short of it is, you can't actually alter anything about the messagebox short of what you can via the flags in the argument -Icon and buttons-. To change the box yourself you actually need to use windows hooks/subclassing, which is quite involved for a pretty simple request.

In my opinion it's not worth it, you'd be better off making your own customised box.

Posted: Sat Aug 13, 2005 6:13 am
by PB
I did some Usenet searching and some people say yes (without giving any
specific working examples) and others say no. Here's two such links:

http://groups.google.com/group/comp.os. ... f7381d4a5a

http://groups.google.com/group/microsof ... 5369a62216

Over to you... :)

Posted: Sat Aug 13, 2005 11:20 am
by Pantcho!!
Welcome BoogieMan.

Posted: Sat Aug 13, 2005 2:08 pm
by BOOGIEMAN
I didn't know that is so complicated, so I'll have to find another way to display my string. I'll reformulate my question in new topic, thanks

Hey thx for wellcome Pantcho and nice avatar you have :D