* * *

Author Topic: Possible bug I want to be sure Editing Menus  (Read 588 times)

lainz

  • Hero Member
  • *****
  • Posts: 2717
  • I'm coding :)
    • Lainz
Possible bug I want to be sure Editing Menus
« on: March 06, 2018, 02:24:23 pm »
Hi, say you have a TPopupMenu called 'popupmenu1' and it has MenuItem1 and MenuItem2.

Code: Pascal  [Select]
  1. popuomenu1
  2. - menuitem1
  3. - menuitem2

You use the Object Inspector to search for 'popupmenu1' (the filter edit box), then is displayed alone without MenuItem1 and MenuItem2 in the object inspector.

Code: Pascal  [Select]
  1. popupmenu1

When you double click on 'popupmenu1' the menu editor appears.

When you click on an item in the menu editor, it vanishes all the items inside!

WooBean

  • Jr. Member
  • **
  • Posts: 71
Re: Possible bug I want to be sure Editing Menus
« Reply #1 on: March 06, 2018, 03:18:51 pm »
Hi,
I tried to reproduce the popup menu problem (at Win7/64, Lazarus 1.8.0, FPC 3.0.4) and I confirm that such behaviour exists.

It is no problem for Lazarus usability or stability. In the future changing focus from designer window/tabsheet back to object inspector (with previously set some filter expression) should, at first, check if filter condition is met (now object inspector enables access to menu items which do not meet filter condition).

For now, use the filter editor in object inspector only when you have tens of components with similar names just to find a proper one and then clear the filter.

WooBean
   
« Last Edit: March 06, 2018, 03:26:21 pm by WooBean »
Win7/64, Lazarus 1.8 win64-win64, FPC 3.0.4

lainz

  • Hero Member
  • *****
  • Posts: 2717
  • I'm coding :)
    • Lainz
Re: Possible bug I want to be sure Editing Menus
« Reply #2 on: March 06, 2018, 06:44:05 pm »
Code: Pascal  [Select]
  1. For now, use the filter editor in object inspector only when you have tens of components with similar names just to find a proper one and then clear the filter.

Ok, I will do that, until get's fixed. I will open a bug report later.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus