Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_MessageBox ignores default button
#1
I am using linux mint and version 4.1 of QB64PE

my problem is QB64pe seems to ignore the default button, does not highlight anything and selects [yes] 1 as the default.

Dim As Long q

q = _MessageBox("caution", "lose edits?", "yesno", "question", 0)
Print q
Reply
#2
It's probably due to Linux. It works on Windows.

[Image: Messagebox2025-04-27-143003.jpg]
Reply
#3
(04-27-2025, 10:28 AM)johngreening Wrote:
Code: (Select All)
Dim As Long q

q = _MessageBox("caution", "lose edits?", "yesno", "question", 0)
Print q

it happened to me too.  on linux i expected it to select "no".  for the last parameter set to zero specifically.  this was on debian with mate desktop.

it's understandable that zero for last parameter.  or if that parameter is omitted.  is supposed to select the "default" option.  but for a yes/no question.  it is a bit confusing if "yes" has to be the "default" option.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Do Loop, Sleep and Mouse Button Dimster 5 583 09-06-2025, 12:57 PM
Last Post: Dimster
  _messagebox Z-Order ahenry3068 4 795 03-23-2025, 06:32 PM
Last Post: Kernelpanic
  How to find Default Web Browser in Linux ? ahenry3068 3 884 09-20-2024, 01:51 PM
Last Post: ahenry3068
  Add buttons to _MESSAGEBOX function? tothebin 4 891 05-11-2024, 04:29 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)