Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Balázs Székely via lazarus
Hi Bo, Please check the following forum post: https://forum.lazarus.freepascal.org/index.php/topic,52155.msg383939.html#msg383939 On Mon, Nov 16, 2020 at 8:30 PM Bo Berglund via lazarus < lazarus@lists.lazarus-ide.org> wrote: > For some reason my news reader would not transfer the zipped archive

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bo Berglund via lazarus
For some reason my news reader would not transfer the zipped archive with the sources. So here goes another attempt using my email instead. Attached is the zipped project. /Bo B -Original Message- From: Bart Sent: Monday, 16 November 2020 18:31 To: bo.bergl...@gmail.com; Lazarus maili

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button... - TestTransparency.zip (1/1)

2020-11-16 Thread Bo Berglund via lazarus
begin 644 TestTransparency.zip M4$L#!!0``@`(`/::<%&H)6P2FP(``!P(```45&5S=%1R86YS<&%R96YC M>2YL<&FM54UOVD`0O5?J?["L',(AF(]+#YM&Q$"$E`04(.TAE\4,L,UZU]U= MM^'?=Q;\L3:82E4/ENS9F?=FWLRLR=U'S+U?H#23XM;OMCN^!R*2:R:VM_YR M,;[YXM]]_?R)A-/G\>0!WSR/S)3\`9&9)@:#],&&UM0H(U?6#_&A& MS6X(G,7YX5MY]@`"%.79)QKFH

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button... - TestTransparency.zip (0/1)

2020-11-16 Thread Bo Berglund via lazarus
On Mon, 16 Nov 2020 18:31:13 +0100, Bart via lazarus wrote: >On Mon, Nov 16, 2020 at 6:21 PM Bart wrote: > >Can you upload a basic example (1 form, 1 bitbutton) where you set the >transparency of the form. >Without actual code (also the lfm) it's hard to test. > Attaching a zip with the test cod

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 6:21 PM Bart wrote: Can you upload a basic example (1 form, 1 bitbutton) where you set the transparency of the form. Without actual code (also the lfm) it's hard to test. -- Bart -- ___ lazarus mailing list lazarus@lists.laza

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 1:04 PM Bart wrote: > IIRC then having a button with a ModalResult on the application's main > form in Delphi does not close that form. I just tested (Delphi and Lazarus): a TBitButton with Lind = bkClose on the MainForm indeed closes the application. Furthermore, the OnC

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 3:06 PM Bo Berglund via lazarus wrote: > But... > If I place for instance a ShowMessage() call in the OnClick event of > the button it DOES NOT show up! > And if I place a breakpoint there it too does not break. > > So somehow this business of setting the form transparent r

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bo Berglund via lazarus
On Mon, 16 Nov 2020 13:04:04 +0100, Bart via lazarus wrote: >On Mon, Nov 16, 2020 at 11:43 AM Bo Berglund via lazarus > wrote: > >> I create a new application and place a TBitBtn on a panel at the >> bottom of the main form. I set the Kind property to bkClose. >> >> Now I expect the application t

Re: [Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bart via lazarus
On Mon, Nov 16, 2020 at 11:43 AM Bo Berglund via lazarus wrote: > I create a new application and place a TBitBtn on a panel at the > bottom of the main form. I set the Kind property to bkClose. > > Now I expect the application to close when I click this button, like > it does on Delphi for the sa

[Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

2020-11-16 Thread Bo Berglund via lazarus
Lazarus 2.0.10 FPC 3.2.0 on Windows 10 I create a new application and place a TBitBtn on a panel at the bottom of the main form. I set the Kind property to bkClose. Now I expect the application to close when I click this button, like it does on Delphi for the same type of button. But when I run