Add the Constants for the MessageRequester

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Add the Constants for the MessageRequester

Post by RJP Computing »

Can you add the icon constants to the 'MessageRequester'?

I think it would be as easy as adding the constant definitions and adding them to the help file.

Here is the list the need to be made into PureBasic equivalents:
To display an icon in the message box, specify one of the following values.
MB_ICONEXCLAMATION
An exclamation-point icon appears in the message box.
MB_ICONWARNING
An exclamation-point icon appears in the message box.
MB_ICONINFORMATION
An icon consisting of a lowercase letter i in a circle appears in the message box.
MB_ICONASTERISK
An icon consisting of a lowercase letter i in a circle appears in the message box.
MB_ICONQUESTION
A question-mark icon appears in the message box.
MB_ICONSTOP
A stop-sign icon appears in the message box.
MB_ICONERROR
A stop-sign icon appears in the message box.
MB_ICONHAND
A stop-sign icon appears in the message box.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

What's wrong with using them as they are? :?
Mark my words, when you least expect it, your uppance will come...
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> What's wrong with using them as they are?

That's what I was wondering... they work just fine with MessageRequester.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: Add the Constants for the MessageRequester

Post by NoahPhense »

Code: Select all

MessageBox_(0, "test", "test", #MB_ICONSTOP|#MB_SYSTEMMODAL)

MessageRequester("test", "test", #MB_ICONSTOP|#MB_SYSTEMMODAL)

End
- np
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

PB wrote:> What's wrong with using them as they are?

That's what I was wondering... they work just fine with MessageRequester.
They probably won't work under Linux, Mac or Amiga. Better to have PureBasic-ified constants (which would also imply that the command will check for and handle them) such as #PB_MessageRequester_Exclamation.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Much more important:

Equals for

Code: Select all

#IdYes
#IdNo
#IdCancel
#IdIgnore
#IdOk
and btw.
for example #PB_MessageRequester_Ok is much so long... maybe a short alternate? #PB_MR_Ok?
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

tinman wrote:
PB wrote:> What's wrong with using them as they are?

That's what I was wondering... they work just fine with MessageRequester.
They probably won't work under Linux, Mac or Amiga. Better to have PureBasic-ified constants (which would also imply that the command will check for and handle them) such as #PB_MessageRequester_Exclamation.
This is exactly what I was meaning. Sorry for being unclear.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

RJP Computing wrote:This is exactly what I was meaning. Sorry for being unclear.
No, my bad. I missed part of your request and saw PB suggesting them as they were and got it wrong.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Post Reply