DelphinSoftware / vcl-styles-utils

Automatically exported from code.google.com/p/vcl-styles-utils
0 stars 0 forks source link

Main menu submenu cursor jumps to bottom #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create mainmenu with submenus and add a style to the app
2.click top menuitem then point at submenu so submenu items appear
3.point to next menuitem below submenu item

What is the expected output? What do you see instead?
Expect menuitem pointed at to be active but the highlight jumps to bottom menu 
item

What version of the product are you using? On what operating system?
Delphi XE6 Pro on Win7 Pro

Please provide any additional information below.

Original issue reported on code.google.com by tony.chr...@gmail.com on 26 Oct 2014 at 11:56

Attachments:

GoogleCodeExporter commented 9 years ago
Similar here - after a sub-menu opens and cursor moves further along parent 
menu 
the menu item selection suddenly jumps to the top and scrolls down the parent 
menu, see video;

http://www.screencast.com/t/Tz7qeQVmouas

Notice also flickering along the vertical intersection line of menu and submenu

Original comment by everyb...@gmail.com on 27 Oct 2014 at 9:50

GoogleCodeExporter commented 9 years ago
Attached is a preliminary version that avoids loosing originally selected 
menuitem.
The idea is to inform the parent after child close that parent redraw will 
follow (rather than actual selection by mouse)

Original comment by everyb...@gmail.com on 29 Oct 2014 at 2:22

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for updating Rodrigo.
However my demo app still displays the same problem of the jumping highlight 
(jumps to the last subitem) and also my hidden subitems are being displayed. I 
am using R274 AFAICS
Regards

Original comment by tony.chr...@gmail.com on 29 Oct 2014 at 11:53

GoogleCodeExporter commented 9 years ago
Latest fixes solved this problem (for me)

Original comment by everyb...@gmail.com on 3 Nov 2014 at 1:20

GoogleCodeExporter commented 9 years ago
The highlight still jumps for me in R277. The code is too complex for me to 
debug (sorry) but it seems that when a submenuitem is highlighted the submenu 
paints fine. When you move to the next menuitem the submenu is destroyed and 
the menu repainted with the highlight for each item set. Problem is the 
highlight is left on the bottommost menuitem instead of repositioning back to 
the item that was highlighted when the submenu was destroyed. Hope you can 
follow my explanation. Best regards

Original comment by tony.chr...@gmail.com on 4 Nov 2014 at 1:58

GoogleCodeExporter commented 9 years ago
The problem reappeared on the computer of one tester, on my machine with the 
same code everything is OK. 

I can only think of uninitialized variable(s) as the primary cause.

Original comment by everyb...@gmail.com on 28 Jan 2015 at 2:06

GoogleCodeExporter commented 9 years ago
Attached here is a version of Vcl.Styles.Utils.Menus unit that solves the 
problem

Original comment by everyb...@gmail.com on 3 Feb 2015 at 12:56

Attachments: