Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4125

Define the form as transparent

$
0
0

I want to define the form as transparent how to do that, control and form transparency separate

import Eto
import Eto.Forms as ef
import Eto.Drawing as ed
from eto_image_py import Images_form
form = ef.Form()
form.Width = 300
form.Height = 300
form.WindowStyle = ef.WindowStyle.NONE
form.Location = ed.PointF(120,120)

img = ef.ImageView()
img.Image = Images_form.title_bar_icon()

but = ef.Button()
but.Text = "Transparency"

layout = ef.DynamicLayout()
layout.Spacing = ed.Size(1,1)
layout.AddRow(img)
layout.AddRow(but,None)
form.Content = layout

form.Show()

7 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4125