Restored from previous forum. Originally posted by talun.
Hi all,
I've two newbie questions related to the flags of MessageRequester
1) The help file reports that the the Flags of the MessageRequester can be:
#PB_MessageRequester_YesNo
#PB_MessageRequester_YesNoCancel
#PB_MessageRequester_Ok
However some of the example files uses other (WINAPI) flags for istance #MB_ICONERROR.
Maybe should be useful to add this chance to the Help file.
2) By trial seems that the result of the buttons of the MessageRequester is:
1: OK
2: Cancel
6: Yes
7: No
It's wrong? (I was not able to find this information in the help file).
Thanks to all
Sergio
about MessageRequester
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
Thank goodness we can get values in variables returned so we can check what they are
:)
Fangles woz ear orright den?
Talun, you are correct, those are the correct values. I worked those out 8 months ago when the documents didn't have them in and they still don't. There is still a lot of PureBasic flags/information missing from the help and API stuff in the examples when they should not be. Confuses beginners even more.Originally posted by talun
Hi all,
I've two newbie questions related to the flags of MessageRequester
1) The help file reports that the the Flags of the MessageRequester can be:
#PB_MessageRequester_YesNo
#PB_MessageRequester_YesNoCancel
#PB_MessageRequester_Ok
However some of the example files uses other (WINAPI) flags for istance #MB_ICONERROR.
Maybe should be useful to add this chance to the Help file.
2) By trial seems that the result of the buttons of the MessageRequester is:
1: OK
2: Cancel
6: Yes
7: No
It's wrong? (I was not able to find this information in the help file).
Thanks to all
Sergio
Thank goodness we can get values in variables returned so we can check what they are
Fangles woz ear orright den?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by redacid.
BTW: isn´t it possible to get a "custom-made-Requester"? On Amiga with AmiBlitz you can get a requester with your own buttontext. So instead of "Yes/No" you could name it "Right/Wrong" or something else. It´s even possible to get a requester with 10 Buttons or more.
Is this possible with PureBasic/Windows?
regards,
Redacid
---
Viva Los Tioz!
registered user of PB3.50 on WinXP SP1
BTW: isn´t it possible to get a "custom-made-Requester"? On Amiga with AmiBlitz you can get a requester with your own buttontext. So instead of "Yes/No" you could name it "Right/Wrong" or something else. It´s even possible to get a requester with 10 Buttons or more.
Is this possible with PureBasic/Windows?
regards,
Redacid
---
Viva Los Tioz!
registered user of PB3.50 on WinXP SP1
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
Probably, but the default under Windows is to use a numeric value for the buttons that are on the requester, so you cannot easily change the text using a standard MessageBox_() callOriginally posted by redacid
Is this possible with PureBasic/Windows?
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
:)
Fangles woz ear orright den?
Didn't PB or someone else recently make a custom requester?? I seem to remember something about it a few months ago... Might be worth checking the forumOriginally posted by tinman
Probably, but the default under Windows is to use a numeric value for the buttons that are on the requester, so you cannot easily change the text using a standard MessageBox_() callOriginally posted by redacid
Is this possible with PureBasic/Windows?
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
Fangles woz ear orright den?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> Didn't PB or someone else recently make a custom requester??
It was InputBox() to replace InputRequester(); not a MessageBox.
Anyway, here is a VB example of replacing a standard MessageBox's
buttons with your own text, but it's probably not worth all the
hassle, and probably much easier to just write your own:
http://www.mvps.org/vbnet/index.html?co ... oxhook.htm
> Didn't PB or someone else recently make a custom requester??
It was InputBox() to replace InputRequester(); not a MessageBox.
Anyway, here is a VB example of replacing a standard MessageBox's
buttons with your own text, but it's probably not worth all the
hassle, and probably much easier to just write your own:
http://www.mvps.org/vbnet/index.html?co ... oxhook.htm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Andre.
To provide some more stuff about message requesters,
here are the possible flags (number based, can be changed to WinAPI equivalents, so don't flame me
):
And here the possible return values:
Regards
André
*** German PureBasic Support ***
To provide some more stuff about message requesters,
here are the possible flags (number based, can be changed to WinAPI equivalents, so don't flame me
Code: Select all
Flag PureBasic-Constant Button(s) shown
0 #PB_MessageRequester_Ok „OK“
1 „OK“ and „Cancel“
2 „Cancel“, „Resume“ and „Ignore“
3 #PB_MessageRequester_YesNoCancel „Yes“, „No“ and „Cancel“
4 #PB_MessageRequester_YesNo „Yes“ and „No“
5 „Resume“ and „Cacnel“
6 „Cancel“, „Resume“ and „Continue“
Code: Select all
Flag Button1 ReturnValue Button2 ReturnValue Button3 ReturnValue
0 OK 1
1 OK 1 Cancel 2
2 Cancel 2 Resume 4 Ignore 5
3 Yes 6 No 7 Cancel 2
4 Yes 6 No 7
5 Resume 4 Cancel 2
6 Cancel 2 Resume 10 Continue 11
Flag = used flag value when calling the MessageRequester
André
*** German PureBasic Support ***
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by talun.
Many to all for the replies. Thanks also to Danilo for the exhaustive list about MesageRequester flags reported in viewtopic.php?t=4765
bye
Sergio
Many to all for the replies. Thanks also to Danilo for the exhaustive list about MesageRequester flags reported in viewtopic.php?t=4765
bye
Sergio