Sign in Join

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

Mailing lists / lazarus / 2009-09

problem with form2.showmodal.

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Héctor Fiandor Rosario

Dear profesors:

I have a Form1, and I call to Form2 as ShowModal.

Then I close the Form2 with the command ModalResult=1 and then program return were Form2 was called. (this is what I want)

I discovered than the Form2 close, but remain a "ghost" of this Form2 in the screen were it was previusly showed, and I
can?t write over this "ghost".

I try many solutions, but the only one that work was to call a ShowMessagePos() in Form1 after come back from Form2 and the "ghost" dissapear. I hope that this was unnessesary and there is another pretty solution.

I am using Lazarus 0.9.27 beta FPC 2.2.3 Date 2008-12-29 i386-win32-win32/win64

I will appreciate very much any help with this.

thanks in advance,

yours truly,

Ing. H?ctor F. Fiandor

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/

Reply by email

Hans-Peter Diettrich
to Héctor Fiandor Rosario
I discovered than the Form2 close, but remain a "ghost" of this Form2 in the screen were it was previusly showed, and I can?t write over this "ghost".

This sounds like window ghosting, introduced in Vista(?).

But I've no idea what to do :-(

DoDi

Reply by email