Jump to content

TransParent Form Oluşturma


alp.yilmaz

Recommended Posts

Merhaba Arkadaşlar

 

Borderı Olmayan ve Zemini Tamamen Transparent Bir Form Oluşturmak istiyorum.

Normal Delphi de Bu İşlemi Yapabiliyoz ...

 

UniGui de Böyle birşey Yapabilen yada Fikir Verebilecek Varmı?

 

Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...