Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

ShowMessage not Modal

3 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Mace

Hi All,
I have a strange problem.
If I use ShowModal (or MessageDlg) in my application, the code is being executed, but it is not Modal.

e.g.

If I coded

ShowMessage('Hello');
Close;
Exit;

The message would not show (or just flicker) and the application would close.

What's puzzling is that if I create a new app, and they do the same code, it works as expected!

Any ideas?

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150426/519af7e6/attachment.html>

Reply by email

Richard Mace
to Richard Mace

Sorry, I should have also added...

Lazarus 1.4 Windows 7 fpc 2.6.4

Richard

Richard Mace wrote 23 lines
Hi All, I have a strange problem. If I use ShowModal (or MessageDlg) in my application, the code is being executed, but it is not Modal. e.g. If I coded ShowMessage('Hello'); Close; Exit; The message would not show (or just flicker) and the application would close. What's puzzling is that if I create a new app, and they do the same code, it works as expected! Any ideas? Richard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150426/02c6c65b/attachment.html>

Reply by email

Richard Mace
to Richard Mace

Ok, it's definitely a bug because if I put a show message in the form activate event, then all other show messages work. If I remove it again, they stop working.
Very strange

Richard

"Richard Mace" wrote 33 lines
Sorry, I should have also added... Lazarus 1.4 Windows 7 fpc 2.6.4 Richard On 26 April 2015 at 06:56, Richard Mace wrote: > Hi All, > I have a strange problem. > If I use ShowModal (or MessageDlg) in my application, the code is being > executed, but it is not Modal. > > e.g. > > If I coded > > ShowMessage('Hello'); > Close; > Exit; > > The message would not show (or just flicker) and the application would > close. > > What's puzzling is that if I create a new app, and they do the same code, > it works as expected! > > Any ideas? > > Richard >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150427/bc46136d/attachment.html>

Reply by email