MessageRequester Font

Just starting out? Need help? Post your questions and find answers here.
BOOGIEMAN
User
User
Posts: 24
Joined: Sun Aug 07, 2005 10:29 pm
Location: Earth

MessageRequester Font

Post 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)
:?:
Splondike
New User
New User
Posts: 6
Joined: Mon Aug 01, 2005 1:47 pm

Post 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.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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... :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Welcome BoogieMan.
BOOGIEMAN
User
User
Posts: 24
Joined: Sun Aug 07, 2005 10:29 pm
Location: Earth

Post 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
Post Reply