![]() |
_MessageBox ignores default button - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: _MessageBox ignores default button (/showthread.php?tid=3641) |
_MessageBox ignores default button - johngreening - 04-27-2025 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 RE: _MessageBox ignores default button - Kernelpanic - 04-27-2025 It's probably due to Linux. It works on Windows. ![]() RE: _MessageBox ignores default button - hsiangch_ong - 04-27-2025 (04-27-2025, 10:28 AM)johngreening Wrote: 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. |