#PB_MessageRequester_Question

Just starting out? Need help? Post your questions and find answers here.
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

#PB_MessageRequester_Question

Post 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:
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: #PB_MessageRequester_Question

Post 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.
User avatar
Caronte3D
Addict
Addict
Posts: 1371
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: #PB_MessageRequester_Question

Post by Caronte3D »

User avatar
jacdelad
Addict
Addict
Posts: 2031
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: #PB_MessageRequester_Question

Post 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:
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply