Jump to content

Dynamic button ClientEvents->UniEvents ignored at runtime !!!


Recommended Posts

Posted
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);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...