mhmda Posted May 1, 2017 Posted May 1, 2017 procedure TMainForm.UniButton1Click(Sender: TObject); var s:TUniBitBtn; begin s:=TuniBitBtn.Create(pnlStatus); s.Parent:=pnlStatus; s.Width:=120; s.LayoutConfig.Height:='100%'; s.ClientEvents.UniEvents.Values['beforeInit']:='function (sender, config){config.icon="files/images/3.png";}'; end; In chrome debugger the events are ignored !!!!!!! why???? O3C=new Ext.button.Button({id:"O3C_id",height:"100%",scale:"medium",width:120});O3C.nm="O3C";_cdo_("O3C_C",O3C,null,MainForm);O25.add(O3C); Quote
Sherzod Posted May 1, 2017 Posted May 1, 2017 Hi mohammad, You must assign a name to the component Best regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.