Jump to content

before init runtime on unibutton with create runtime


donlego

Recommended Posts

hi i have procedure like this call a form and

create runtime unibutton on my form

 

myprocedure();

var funitoolbar: TUniPanel;
  funitoolbutton_close, funitoolbutton_xls, funitoolbutton_filter: TUniButton;

begin

   funitoolbutton_close := TUniButton.Create(funitoolbar);
      funitoolbutton_close.ClientEvents.UniEvents.Values['beforeInit'] := 'function (sender, config) {config.cls="_customCls"}';
      funitoolbutton_close.Parent := funitoolbar;
      funitoolbutton_close.Caption := 'Tutup';
      funitoolbutton_close.Width := 80;
      funitoolbutton_close.Align := alLeft;
      funitoolbutton_close.BorderStyle := ubsNone;
      funitoolbutton_close.Cursor := crHandPoint;

end;

 

but when i set client event there is nothing chenge with my runtime buton style ,

how can i change the runtime create unibutton beforeinit  on runtime ?

 

 

 

unigui version : profesional edition v.1.0.0.1424 (trial)

Edited by donlego
Link to comment
Share on other sites

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...