[LAMW] OnClickOptionMenuItem do not work lazarus / 43-Android ---------------------------------------------------------------------- Odanka · 2020-12-03 03:17 Hi All, Theme AppCompat.Light.NoActionBar  I use jsToolbar as ActionBar. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAMMain.AMMainCreateOptionMenu(Sender: TObject; jObjMenu: jObject);begin  Menu.Add(jObjMenu, 100, 'Seting');end; procedure TAMMain.AMMainClickOptionMenuItem(Sender: TObject;  jObjMenuItem: jObject; itemID: integer; itemCaption: string;  Checked: boolean);begin  ShowMessage(itemCaption); //not workend;    OnClickOptionMenuItem do not work. Any solution? Thank you very much ---------------------------------------------------------------------- jmpessoa · 2020-12-03 05:48 Hi, Odanka! Can you, please,  make reference in some "AppCompat..."  demo? ---------------------------------------------------------------------- Odanka · 2020-12-03 06:22 Attached use jMenu and jsToolbar component (jni folder) ---------------------------------------------------------------------- juank1971 · 2020-12-03 13:55 Yes, coincidentally I am writing to the forum that same question. I did some tests and I see that if you change the  project options / themes to AppCompat.Light.DarkActionBar it works but cannot use jsToolsbar ---------------------------------------------------------------------- jmpessoa · 2020-12-03 15:57 Maybe, you can use jsToolbar, but not "as ActionBar".... then you need put it on top of parent (or other position as any component...) yes,  AppCompat.Light.NoActionBar is the pure "material design"  guide line.... (old "menu" is out....) ---------------------------------------------------------------------- Odanka · 2020-12-04 07:18 Thank you every one. ---------------------------------------------------------------------- Odanka · 2020-12-09 07:05 I try to bring back the procedure SetAsActionBar of jsToolbar in unit stoolbar and uncomment procedure SetAsActionBar(). So far I get the OnClickOptionMenu work properly. But I don't know what the side effect of this.