Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


panels transparent

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Sun May 05, 2019 2:42 pm    Post subject: panels transparent Reply with quote

how do i make only specific panels transparent
_________________
hi
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun May 05, 2019 8:04 pm    Post subject: Re: panels transparent Reply with quote

For now Panels "AlphaFlag" does not support,
You can use the transparent color setting of the form for Panels.

Code:
form = createForm(true)
form.Position = poDesktopCenter
form.Width = 320
form.Height = 240
form.Color = 0xf60110
--form.AlphaBlend = true

p1 = createPanel(form)
p1.Height = 140
p1.Left = 5
p1.Top = 5
p1.Width = 150
p1.Color=0x050100
p1.BorderStyle = "bsSingle"
p1.BorderWidth = "3"

p2 = createPanel(form)
p2.Height = 140
p2.Left = 165
p2.Top = 5
p2.Width = 150
p2.Color=0x050100
p2.BorderStyle = "bsSingle"
p2.BorderWidth = "3"

b1 = createButton(form)
b1.Left = 40
b1.Top = 160
b1.Caption = 'Enable'
b1.OnClick = function()
if p1.Color==0x000100 then
p1.Color=0x050100
else
p1.Color=0x000100
end
end

b2 = createButton(form)
b2.Left = 205
b2.Top = 160
b2.Caption = 'Enable'
b2.OnClick = function()
if p2.Color==0x000100 then
p2.Color=0x000101
else
p2.Color=0x000100
end
end

form.setLayeredAttributes(0x000100, 255, LWA_COLORKEY | LWA_ALPHA )

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites