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




Users browsing this thread: 1 Guest(s)