Sign in Join

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

Mailing lists / lazarus / 2002-09

Anyone else have broken tab in editor?

10 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro

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.

Earlier message 19 lines
-----Original Message----- From: Tony Maro Sent: Fri 9/27/2002 10:54 PM To: Cc: Subject: [lazarus] Anyone else have broken tab in editor? Looks to me like the latest patches broke using the tab key in the editor window in Lazarus. -Tony _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives <<winmail.dat>>

Reply by email

Tony Maro

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

Earlier message 33 lines
-----Original Message----- From: Tony Maro Sent: Fri 9/27/2002 11:00 PM To: Cc: Subject: RE: [lazarus] Anyone else have broken tab in editor? 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. -----Original Message----- From: Tony Maro Sent: Fri 9/27/2002 10:54 PM To: Cc: Subject: [lazarus] Anyone else have broken tab in editor? Looks to me like the latest patches broke using the tab key in the editor window in Lazarus. -Tony _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives <<winmail.dat>>

Reply by email

Andrew Johnson

On Sat, 28 Sep 2002 07:53:24 -0400
"Andrew Johnson"

Show quoted text 11 lines
On Fri, 27 Sep 2002 23:00:57 -0500 "Tony Maro" wrote: dows >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. Hmm now this is bizaare... I will look into it. I don't think >anthing I modified should have caused this one..

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

Reply by email

Andrew Johnson
Show quoted text 10 lines
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

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

Reply by email

Andrew Johnson
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

Reply by email

Michael A. Hess
to Tony Maro: -----Original Message----- From: Andrew Johnson Okay, here's some test code, but if you…
Tony Maro wrote 9 lines
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!

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.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Andrew Johnson
Show quoted text 5 lines
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.

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

Reply by email

Andrew Johnson
Show quoted text 22 lines
Tony Maro wrote: > 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! 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.

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

Reply by email

Tony Maro

-----Original Message-----
From: Andrew Johnson

Show quoted text 7 lines
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.)

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>>

Reply by email