Page 1 of 1

#PB_MessageRequester_Question

Posted: Thu Sep 05, 2024 2:28 pm
by Marc56us
Hi,

We always have no constant defined for 32 (icon '?') for MessageRequester()
#PB_MessageRequester_Question does not exist.

But the standard numeric value exists (32) and works.

Code: Select all

MessageRequester("", "64 : #PB_MessageRequester_Info",       #PB_MessageRequester_Info)      
MessageRequester("", "48 : #PB_MessageRequester_Warning",    #PB_MessageRequester_Warning)   
MessageRequester("", "32 : #PB_MessageRequester_Question ?", 32)                             
MessageRequester("", "16 : #PB_MessageRequester_Error",      #PB_MessageRequester_Error)     

; MsgBox arguments (VBA)
; vbCritical 	    16 	Critical message
; vbQuestion 	    32 	Warning query
; vbExclamation 	48 	Warning message
; vbInformation 	64 	Information message
Tested on Windows version.
(If this is not a bug, please remove this topic)
:wink:

Re: #PB_MessageRequester_Question

Posted: Thu Sep 05, 2024 2:30 pm
by Fred
Sometimes we pass the flags directly to the underlying API, so it can work. But it's mostly history and we don't do that anymore as it can be annoying to change PureBasic functions when code are relying on undocumented feature.

Re: #PB_MessageRequester_Question

Posted: Thu Sep 05, 2024 5:11 pm
by Caronte3D

Re: #PB_MessageRequester_Question

Posted: Thu Sep 05, 2024 6:08 pm
by jacdelad
Caronte3D wrote: Thu Sep 05, 2024 5:11 pm viewtopic.php?p=617945#p617945
I was just about to write this again. :mrgreen:

Btw, I use this regularly. :twisted: