Jump to content

Recommended Posts

Posted

Merhaba;

 

Herhangi bir unibuton'u yuvarlak yapma ihtimalimiz var mıdır?

Url frame'i nasıl yuvarlak yapabiliriz?

Color Button var nasıl kullanılıyor? Özellikler içinde arkaplan rengini değiştirme yok...

Posted

Merhabalar

 

CSS ile uniButton'u yuvarlak yapabilirsiniz.

 

ServerModule'de CustomCSS'e aşağıdaki gibi bir CSS ekleyin

.circle {
    border-radius: 50%;
}

sonra butonun olduğu formda uses kısmına "uniGUIJSInterface" ekleyerek formun create eventine aşağıdaki kodu yazın.

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  (UniButton1 as IUniJSInterface).JSConfig('cls', ['circle']);
end;

bu kod diger componentlerde de işe yarayacaktır. CustomCSS'e eklediğiniz CSS class'ını istediğiniz componente bu şekilde ekleyebilirsiniz.

 

CollorButton'un kullanımı için ../Demos/Desktop/ColorButton yolu altındaki demoyu inceleyin.

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