Author Topic: Problem with showmodal and showmessage in WinCE  (Read 4742 times)


  • Full Member
  • ***
  • Posts: 156
Problem with showmodal and showmessage in WinCE
« on: July 15, 2009, 03:50:09 am »

I ran away (for now, at least) from Prism b/c I could not find a TstringGrid equivalent component (TListView  is useless as you cannot detect what cells is clicked by the user in the Compact Framework version).
I have adapted a considerable amount of Delphi code to Lazarus
for WinCE use and worked fairly nicely on the Win32 platform.
But here I have a problem that I have not been able to solve
after countless web searches.
I hope someone can help.
Often a showmessage() windows remains hidden underneath the current window. Furthermore, if I have something like this:
then when I close Form2 (modalResult=MrOk or modalResult=mrCancel, makes  no difference) it is not Form1 that
is shown on WM 6.1 emulator, but the File Explorer window itself.
(If I close it, I see Form1 underneath it).
How can I ensure that the z-order of the forms (including the system windows like the File Explorer) is respected?
The showmessage() behaviour also happens in the Win32 version,
maybe with less frequency. Amy idea as to how to rectify this
wrong behaviour? Thanks


  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: Problem with showmodal and showmessage in WinCE
« Reply #1 on: August 08, 2009, 03:13:40 pm »
Please post a bug report with an example program.

To accelerate solving the bug you can find out what is going wrong and send a patch.


TinyPortal © 2005-2018