Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
6682 00 JVCL Components major always 2019-05-30 12:07 2019-06-15 16:16
OuatuBogdan  
 
normal  
new  
open  
none    
none  
0006682: loop on WM_DRAWITEM
From last update:
at line: 1839 SetDefaultMenuFont(Screen.MenuFont)
in JvMenus: TJvPopupMenu.WMDrawItem starts a infinite loop with FORMS: TCustomForm.WndProc at WM_DRAWITEM.

Just right-click to get pop-up menu, draws menu items again an again.
remedy:
Canvas.Font := Screen.MenuFont;
instead of offending line
zip file icon PopupTest.zip [^] (54,740 bytes) 2019-05-31 18:56
Issue History
2019-05-30 12:07 OuatuBogdan New Issue
2019-05-31 18:56 mh File Added: PopupTest.zip
2019-05-31 18:58 mh Note Added: 0021855
2019-06-15 16:16 mh Note Added: 0021857

Notes
(0021855)
mh   
2019-05-31 18:58   
Hello,

I cannot reproduce your problem.
What I did can be seen in the attached demo.

1. Unzip it and run it.
2. right click into the edit at the bottom

On my Windows 10 x64 VM this opens a TJvPopupMenu with 2 entries, both call ShowMessage each and I do not see any flicker. I can click them and they bring up their message each.

=> how does your test case differ?
(0021857)
mh   
2019-06-15 16:16   
@OuatuBogdan: did you check my demo in order to tell us what you make different in order to actually show the bug?