And while we're at it...
The changes seem to also have broken the lostfocus event for forms. My calendar pop-up has stopped functioning properly again. It doesn't catch the lostfocus event to go away if you click back on a form.

Mailing lists / lazarus / 2002-09
10 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
And while we're at it...
The changes seem to also have broken the lostfocus event for forms. My calendar pop-up has stopped functioning properly again. It doesn't catch the lostfocus event to go away if you click back on a form.
Looks to me like the latest patches broke using the tab key in the editor window in Lazarus.
-Tony
And one more...
Show a modal form. Close it. Show it again. Boom... crash!
Error:
An unhandled exception occurred at 0x080BB703 :
TCustomForm.ShowModal impossible
0x080BB703 TCUSTOMFORM__SHOWMODAL, line 1074 of ./include/customform.inc
On Sat, 28 Sep 2002 07:53:24 -0400
"Andrew Johnson"
Okay found.. in GTK/GDK popup(stay-on-top borderless) windows don't handle focus events properly. So for now I have switched bsNone back to bsDialog, and simply remove the border flags on show. As soon as I can figure out how to make popup's work, then I will add it back in so that bsNone and fsStayOnTop will behave properly. I am testing out a fix to Tabbing, and soon as I have one I will post a small patch to fix these two issues.( I still haven't figured out your modal problem.)
Andrew
_________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com
I have tried and tried... I cannot reproduce this.. can you give me an example?
Andrew
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Looks to me like the latest patches broke using the tab key in the editor window in Lazarus.
DOH! I never even caught that.. I so rarely use tab there.. It means that no tabbing occurs, but my code still handles it, and when done sets the key value to 0. I will have to add a If tabed then key = 0; so that it only resets the value if there was success.
Andrew
_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
-----Original Message----- From: Andrew Johnson Okay, here's some test code, but if you…
This also blows up for me. Also as a note I had the same project file issues with this as I did before. If I tried to open the project Lazarus crashed. I had to delete the .lpi file and recreate it with Lazarus to work with the code.
Now on to this problem. As I said the app crashes for me just as you indicate so I don't think it is your setup. Thinking that maybe it wasn't closing the modal correctly I placed a button on the second form which performed a clean close of the modal window but the same thing happens. Not that I have fixed it or found the bug just confirmed that it does exist.
Hmm now this is bizaare... I will look into it. I don't think anthing I modified should have caused this one..
Andrew
_________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com
This is an Easy problem. I just misunderstood what it was.. so basically this isn't my code causing the probem, but a flaw in the close code. When close is set to caHide, it simply calls to Hide, which means that the ShowModal code is never finished.. What should happen is if Hide is called when in modal if the form is closed the modal result is set mrcanel, (I think its mrCancel anyway) which cause the Showmodal to finish as though you had clicked a cancel button, and everything works a-ok.. all we have to do is in hide(or close), if fsModal in FormState then ModalResult := mrCancel;
Andrew
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
-----Original Message-----
From: Andrew Johnson
Okay, here's some test code, but if you can't reproduce it then it's another linking issue. This includes both my compiled test app and the sources, so if the test app bombs (try it first) then try recompiling and see if it still does.
http://members.telocity.com/~tonymaro/boom.tar.gz
Really though it's just a button that calls form2.showmodal. Click that button, close the modal, then click the button again... boom!
-Tony
<<winmail.dat>>