Recent

Author Topic: Windows 10 desktops behaviour with showmessage active  (Read 880 times)

MikeFinch

  • Jr. Member
  • **
  • Posts: 79
Windows 10 desktops behaviour with showmessage active
« on: February 06, 2021, 02:14:42 am »
Tried googling and impossible to find exactly my situation.

I have four desktops and was using number 2 (D2) for the lazarus IDE. I noticed that when showmessage dialogue was displayed that D1 and D3 showed the exact same display and D4 showed same but WITHOUT showmessage!! And the displays are not seen in the desktop bar - apart from D2 which is the one being used.

My program running from a desktop icon produced the same effect (with sometimes toggling in D1 where I had Firefox open).

Is this a quirk in Lazarus or is it solely a Windows issue? It strikes me as weird.

Any comment will be welcome. Thanks, MF.

jamie

  • Hero Member
  • *****
  • Posts: 7695
Re: Windows 10 desktops behaviour with showmessage active
« Reply #1 on: February 06, 2021, 03:48:24 am »
It is a MODAL form, it does grab all the keyboard so I guess if what you mean is all the desktops are taking note of the ShowMessage then I guess it would be normal


The only true wisdom is knowing you know nothing

lucamar

  • Hero Member
  • *****
  • Posts: 4217
Re: Windows 10 desktops behaviour with showmessage active
« Reply #2 on: February 06, 2021, 08:45:37 am »
It is a MODAL form, it does grab all the keyboard so I guess if what you mean is all the desktops are taking note of the ShowMessage then I guess it would be normal

No, it's NOT normal.

It's application modal, not system modal. It "blocks" user interaction with the rest of the application and should appear only in the desktop where the application is run, not intrude elsewhere.

To the OP, are you doing anything strange in your program that might be causing this? Playing with any little used API calls or such?
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018