View previous topic :: View next topic |
Author |
Message |
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Dec 07, 2019 4:19 am Post subject: How to make panel and other controls transparent |
|
|
As shown in the figure, this is the Lazarus IDE programming interface。
I also think that since the cheat engine was developed by Lazarus, it should also inherit many of its functions
Description: |
|
Filesize: |
22.05 KB |
Viewed: |
4778 Time(s) |
|
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Dec 07, 2019 8:19 am Post subject: |
|
|
There are no problems with Panel in CE. Just be sure you have ParentBackground set to true.
Problem is with other controls. Try with TEdit inside Lazarus IDE.
_________________
|
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Dec 07, 2019 8:53 am Post subject: |
|
|
mgr.inz.Player wrote: | There are no problems with Panel in CE. Just be sure you have ParentBackground set to true.
| Panel does not appear to have parentbackground property
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Dec 07, 2019 9:36 am Post subject: |
|
|
Lol. You are right. CE7.0+ has it. Well, there is workaround for official CE7.0.
_________________
|
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Dec 07, 2019 9:44 am Post subject: |
|
|
mgr.inz.Player wrote: | Lol. You are right. CE7.0+ has it. Well, there is workaround for official CE7.0. | The CE7.0 panel is transparent by default, but my code will report an error when it runs in 7.0
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Dec 07, 2019 10:32 am Post subject: |
|
|
Code: | function setParentBackground(panel,v)
if inheritsFromWinControl(panel) then
local offset = cheatEngineIs64Bit() and 0x158 or 0xD0
local FControlStyleAddress = userDataToInteger(panel) + offset
local FControlStyle = readIntegerLocal(FControlStyleAddress)
if v then
FControlStyle = FControlStyle | 0x200000
FControlStyle = FControlStyle & (~0x40)
else
FControlStyle = FControlStyle & (~0x200000)
FControlStyle = FControlStyle | 0x40
end
writeIntegerLocal(FControlStyleAddress, FControlStyle)
panel.repaint()
end
end
-- CE7.1 and above
-- UDF1.CEPanel1.ParentBackground = true
-- CE7.0
setParentBackground(UDF1.CEPanel1, true) |
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sat Dec 07, 2019 10:34 am Post subject: |
|
|
try panel=createComponentClass("TPanel", udf1)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Dec 07, 2019 10:49 am Post subject: |
|
|
Right. There is TPanel and TCEPanel. And in CE7.0+ there are the same.
In CE7.0 you can select TCEPanel in form designer, just click on panel then press CTRL+X
paste to notepad and change line with
Code: | object CEPanel1: TCEPanel |
to (last word in that line)
Code: | object CEPanel1: TPanel |
copy from notepad then click UDF1 window and press CTRL+V
That way you can convert from TCEPanel to TPanel.
EDIT:
Better method: with form designer, click menu file, save LFM, edit LFM file with notepad (replace TCEPanel with TPanel), form designer, click menu file, "load LFM".
_________________
Last edited by mgr.inz.Player on Sat Dec 07, 2019 11:55 am; edited 2 times in total |
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Dec 07, 2019 10:57 am Post subject: |
|
|
Are other controls, such as edit, the same
Description: |
|
Filesize: |
11.75 KB |
Viewed: |
4706 Time(s) |
|
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Dec 07, 2019 11:12 am Post subject: |
|
|
You have Lazarus IDE. If you find an easy way to do transparent TEdit, we can replicate it in CE, I guess.
_________________
|
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sat Dec 07, 2019 11:26 am Post subject: |
|
|
mgr.inz.Player wrote: | You have Lazarus IDE. If you find an easy way to do transparent TEdit, we can replicate it in CE, I guess. | If I find a way, I will announce it as soon as possible
|
|
Back to top |
|
|
.lua Expert Cheater Reputation: 1
Joined: 13 Sep 2018 Posts: 189
|
Posted: Sun Dec 08, 2019 12:16 pm Post subject: |
|
|
mgr.inz.Player wrote: | You have Lazarus IDE. If you find an easy way to do transparent TEdit, we can replicate it in CE, I guess. | I found that when the edit box is disabled or read-only, it can be transparent, but it can't edit the text Code: | form.edit.Enabled=false
form.edit.ReadOnly=true |
|
|
Back to top |
|
|
|