Page 1 of 1

Add the Constants for the MessageRequester

Posted: Wed Jun 30, 2004 9:52 pm
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.

Posted: Thu Jul 01, 2004 12:55 am
by Moonshine
What's wrong with using them as they are? :?

Posted: Thu Jul 01, 2004 3:19 am
by PB
> What's wrong with using them as they are?

That's what I was wondering... they work just fine with MessageRequester.

Re: Add the Constants for the MessageRequester

Posted: Thu Jul 01, 2004 3:55 am
by NoahPhense

Code: Select all

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

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

End
- np

Posted: Thu Jul 01, 2004 8:45 am
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.

Posted: Thu Jul 01, 2004 5:20 pm
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?

Posted: Thu Jul 01, 2004 9:38 pm
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.

Posted: Thu Jul 01, 2004 9:54 pm
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.