Jump to content

TransParent Form Oluşturma


alp.yilmaz

Recommended Posts

Merhaba,

 

You can use css 'background-color' with rgba(x,x,x,alpha), alpha is transparent percent (0-1) 0.5=semi transparent, but first you must set color of the form to 'clNone' it will convert to black, it is ok and then assign a css class to the panel.

.clsTransparent {
 background-color: rgba(200,0,0,0.4) !important;
}

You must know how unigui builds the view it doesn't only displays a window it builds the basic window view from 3 layers:

 

  • Container (view)
  • window
  • form

wnd.png

  • Upvote 1
Link to comment
Share on other sites

Merhaba,

buda benim kullandığım borderlarla ilgili kod. Radius larda sıkıntı var biraz  yuvarlamıyor sanırım.

function window.afterrender(sender, eOpts)
{
  Ext.get(sender.id).el.setStyle("padding", 0);
  Ext.get(sender.id).el.setStyle("border-width", 0);
  Ext.get(sender.id).el.setStyle("-webkit-border-radius", 15);
  Ext.get(sender.id).el.setStyle("-moz-border-radius", 15);
  Ext.get(sender.id).el.setStyle("border-radius", 15);  
}
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...