Recent

Author Topic: Message Windows - ListBox bug  (Read 1552 times)

J-23

  • Full Member
  • ***
  • Posts: 108
Message Windows - ListBox bug
« on: May 22, 2020, 08:07:08 pm »
Hello
I think I found a bug in ListBox, namely the receipt of messages from Windows by this component.

I did an example showing a problem.
There are two page Memo and ListBox

each of them contains the "Start" button after pressing which after hovering the mouse over e.g. memo and clicking the button, displays the message (memo, button) in the case of the first tab in the case of the second one (listbox, button) and if everything works correctly for the memo tab, there is a problem on the listbox tab because what we would not click is the message that will be displayed is "listbox"

The program demonstrating the problem is attached

I would try to correct this mistake, but I don't know where to start. Maybe I can tell you something.

ASerge

  • Hero Member
  • *****
  • Posts: 2241
Re: Message Windows - ListBox bug
« Reply #1 on: May 22, 2020, 08:48:49 pm »
The program demonstrating the problem is attached
I don't understand what the problem is?
When I click the Start button on the Memo page, then a message appears when I click in the Memo or Button area. When I also click on the Start button on the ListBox page, and then I click in the ListBox area, the "ListBox" is displayed. When I click the button, of course, nothing is output, because the handler contains:
Code: Pascal  [Select][+][-]
  1. FControllerButton := TControllerEvent.Create(Button1);
I.e. Button1, not Button2.

J-23

  • Full Member
  • ***
  • Posts: 108
Re: Message Windows - ListBox bug
« Reply #2 on: May 22, 2020, 10:56:08 pm »
I will fix this error with the button - attachment.

The problem is that when we press the start button, after clicking on the listbox we have the listbox message and this message also comes out after the button is pressed and the button message should come out.

Generally, then, wherever we click, the ListBox message comes out even when the program is closed and it should not be.

The program should behave as in the Memo tab.

ASerge

  • Hero Member
  • *****
  • Posts: 2241
Re: Message Windows - ListBox bug
« Reply #3 on: May 22, 2020, 11:53:27 pm »
The problem is that when we press the start button, after clicking on the listbox we have the listbox message and this message also comes out after the button is pressed and the button message should come out.
...The program should behave as in the Memo tab.
I still don't understand. The behavior of both tabs is similar: after clicking on the Start button, clicking on the components triggers a handler that shows the message "Memo" and "Button" for the Memo page, and "ListBox" and "Button" for the ListBox page.

J-23

  • Full Member
  • ***
  • Posts: 108
Re: Message Windows - ListBox bug
« Reply #4 on: May 23, 2020, 12:18:05 am »
Check these steps:
1. click the ListBox tab
2. Click the start button
3.Click ListBox

The ListBox message will appear.

4.Click Button (on the right)

The Listbox message appears and the Button message should appear

Now even wherever you click - the ListBox message appears and this should not be.

ASerge

  • Hero Member
  • *****
  • Posts: 2241
Re: Message Windows - ListBox bug
« Reply #5 on: May 23, 2020, 06:22:29 pm »
4.Click Button (on the right)
The Listbox message appears and the Button message should appear
In you last example Button message appear, not Listbox.

J-23

  • Full Member
  • ***
  • Posts: 108
Re: Message Windows - ListBox bug
« Reply #6 on: May 23, 2020, 11:01:34 pm »
4.Click Button (on the right)
The Listbox message appears and the Button message should appear
In you last example Button message appear, not Listbox.

Do you really have the last message - button?

Soon I will film and upload to FTP - which shows that it is different.

This happens on Win7 and Win10
« Last Edit: May 24, 2020, 02:54:37 am by J-23 »

ASerge

  • Hero Member
  • *****
  • Posts: 2241
Re: Message Windows - ListBox bug
« Reply #7 on: May 25, 2020, 03:06:28 pm »
Do you really have the last message - button?
Yes.
1. Start app.
2. Select Listbox page.
3. Click button Start.
4. Click ListBox (in GroupBox3) - message "ListBox".
5. Click Button1 (in GroupBox4) - message "Button".

 

TinyPortal © 2005-2018