{"id":5,"date":"2012-01-28T00:38:20","date_gmt":"2012-01-27T23:38:20","guid":{"rendered":"http:\/\/www.infobyte.hr\/blog\/?p=5"},"modified":"2020-05-15T19:57:27","modified_gmt":"2020-05-15T18:57:27","slug":"another-bug-in-delphi-popupactionbar-vertical-menu-shows-no-scrolling-arrows","status":"publish","type":"post","link":"https:\/\/www.infobyte.hr\/blog\/5\/another-bug-in-delphi-popupactionbar-vertical-menu-shows-no-scrolling-arrows\/","title":{"rendered":"Another bug in Delphi PopupActionBar &#8211; Vertical menu shows no scrolling arrows"},"content":{"rendered":"<a href=\"https:\/\/www.oeclassic.com\/\" style=\"border:2px solid #000;border-radius:12px;background:#f5df79;color:#000;padding:8px;margin:36px 0;text-align:center;font-size:20px;font-family:Helvetica, Tahoma, Verdana, Arial, sans-serif;font-weight:bold;text-decoration:none;display:block;\">At last, perfect replacement for Outlook Express and Windows Live Mail is available, called OE Classic - Click here to download!<\/a><p>Today I encountered another problem with TPopupActionBar in Delphi \/ C++ Builder &#8211; vertical menu arrow was invisible. I was using it because it is apparently the best component to be used with ActionManager but as it seems, it is half-baked.<\/p>\n<p>Here are bugs I discovered so far (with a little help from our customers):<\/p>\n<ol>\n<li>When menu is very tall, taller than screen height, PopupActionBar won&#8217;t show up\/down arrows for scrolling content as first and last items, while regular PopupMenu does show them (thanks Carroll for notifying me).<\/li>\n<li>Furthermore, PopupActionBar is <strong>very slow<\/strong> and unresponsive (opening very tall menu takes visible amount of time &#8211; I did&#8217;t measure it but it looks like more than half a second) while the regular PopupMenu opens instantly. Selecting another item in PopupActionBar can sometimes be very laggy (sometimes old menu item that has subitems does not close as you move mouse over another item so you have to move around again until it updates).<\/li>\n<li>When menu item has subitems and it is disabled &#8211; it is still displayed as enabled during runtime.<\/li>\n<\/ol>\n<p>Here is a simple C++ Builder code to generate very tall menu to demonstrate the above point 1:<\/p>\n<pre>for (int i=0; i&lt;100; i++)\n  {\n  TMenuItem *mi = new TMenuItem(PopupActionBar1);\n  mi-&gt;Name      = \"TestName_\"   +IntToStr(i);\n  mi-&gt;Caption   = \"TestCaption_\"+IntToStr(i);\n  PopupActionBar1-&gt;Items-&gt;Add(mi);\n  }\n<\/pre>\n<p>And this picture show point 3 in action:<\/p>\n<figure id=\"attachment_21\" aria-describedby=\"caption-attachment-21\" style=\"width: 358px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.infobyte.hr\/blog\/wp-content\/uploads\/2012\/01\/popupactionbar-bug.png\" alt=\"Delphi PopupActionBar Bug\" title=\"Delphi PopupActionBar Bug\" class=\"size-full wp-image-21\" width=\"358\" height=\"219\" srcset=\"https:\/\/www.infobyte.hr\/blog\/wp-content\/uploads\/2012\/01\/popupactionbar-bug.png 358w, https:\/\/www.infobyte.hr\/blog\/wp-content\/uploads\/2012\/01\/popupactionbar-bug-300x183.png 300w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><figcaption id=\"caption-attachment-21\" class=\"wp-caption-text\">Delphi PopupActionBar Bug<\/figcaption><\/figure>\n<p>Obviously, we are moving away from PopupActionBar. And as it seems it is not the only thing related to ActionManager controls that has bugs &#8211; if I remember correctly &#8211; ActionToolBar also had some issues. So I might very well guess that ActionMainMenuBar might have similar problems with vertical arrows or speed.<\/p>\n<p>ActionManager is very nice way to organize code but the components designed to work with it are half-finished and I wouldn&#8217;t recommend them.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>At last, perfect replacement for Outlook Express and Windows Live Mail is available, called OE Classic &#8211; Click here to download!Today I encountered another problem with TPopupActionBar in Delphi \/ C++ Builder &#8211; vertical menu arrow was invisible. I was using it because it is apparently the best component to be used with ActionManager but &hellip; <a href=\"https:\/\/www.infobyte.hr\/blog\/5\/another-bug-in-delphi-popupactionbar-vertical-menu-shows-no-scrolling-arrows\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Another bug in Delphi PopupActionBar &#8211; Vertical menu shows no scrolling arrows<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,3],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-cpp-builder","category-delphi","category-programming"],"_links":{"self":[{"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":0,"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infobyte.hr\/blog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}