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 


CE Form & Form Designer Color Craft V2

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 35

Joined: 16 Feb 2017
Posts: 1478

PostPosted: Mon Mar 17, 2025 11:31 am    Post subject: CE Form & Form Designer Color Craft V2 Reply with quote



A color palette plugin that you can use in the Cheat Engine Form Designer,
with the option to make the colors you specify "Default" when using the listed controls.


When creating a form in the form designer, most of the controls (Panel, Edit, Label etc.) are deployed with the default color "clDefault".

With this plugin, you can set your default colors to be different for each control, and every time you open and use the form designer, you will continue to use the controls with the colors you specified.

You can also use the Color Palette with 16 and hex rgb outputs in forms you create with Lua Script and to color your controls.

How to use;

Download the "FrmDesgnrClrs1.lua" plugin file below. Copy the plugin file, open the folder where CE is installed (Program Files etc.) Paste it into the "autorun" folder in the CE folder and open CE and start using it.

Color Palette functions in the picture;
(If you can't see the picture, reach it from this link: https://i.hizliresim.com/crtvbr6.PNG )



    1) It was a project where I created a general color table and started coding with an idea.
    But I think Alexander Mashin's coding help that calculates this algorithm will be useful for me and you.
    It will print the rgb hex and 16 color codes in the edit boxes (6, 7 boxes) for each color you click.
    If the 2nd control selection combobox is active or a control is selected, the colors you click will optionally be reflected in the 3rd or 4th box.


    2) Select a control from the list.
    Click on box 3 for color, then on the color palette.
    Click on box 4 for font color, then on the color palette and edit your personal color for that control.


    3) The panel that creates the visual in determining the color of the selected control.
    Click on the panel and then on a color in the color palette.


    4) The panel that creates the visual for determining the font color of the selected control.
    Click on the panel and then click on a color in the color palette.


    5) When you are done editing your personal colors, click on this button and save the new default colors for the control.
    Each control must be clicked once and saved.


    6) When you click on a color in the color palette, it prints the rgb hex value. (0xFFFFFF)


    7) When you click on a color in the color palette, it prints the color value. (16215711)


    8 ) Use to reset any control to its default colors. (Default color: clDefault, FontColor: clBlack)
    Select a control from list number 2 and click on this button to reset it to its default color.



Note: Color change records do not require restarting CE.
Can be applied and used at Form Design time.


This is a code that I coded very complicated and surprisingly works. Smile

And we have come to the end of another article.
Until we meet on a more related topic, enjoy it.



FrmDesgnrClrs2.lua
 Description:
Version 2 has been released with some fixes.

Download
 Filename:  FrmDesgnrClrs2.lua
 Filesize:  17.67 KB
 Downloaded:  31476 Time(s)


_________________
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


Last edited by AylinCE on Wed Mar 19, 2025 9:06 am; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
paul44
Expert Cheater
Reputation: 2

Joined: 20 Jul 2017
Posts: 190

PostPosted: Wed Mar 19, 2025 5:32 am    Post subject: even more color... Reply with quote

+1000 for this one !

I'll give this one a try coming weekend (time permitting)

Some additional feedback from my own experience:
1. I was not able to change the bckgrd_color for the scrollbox (tried this manually and using script ~ tested v7.3, 7.5 & 7.6). However: if this also happens on your end, then just add a panel to the controlbox...
2. in that respect: ALWAYS make use of a "principal" panel - covering the "full" page - so you can be (almost) certain to change the backgrd_color.
(eg: scollbox, pagecontrol/tabsheet/other ?). Make sure that this panel sits at the back !
3. for some reason, i could not "remove" the white line (or perhaps black in darkmode) on the left side of the form (for some reason). And I did try to change colors of the form itself...
(even added/tried_with a "main" panel)
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 35

Joined: 16 Feb 2017
Posts: 1478

PostPosted: Wed Mar 19, 2025 9:59 am    Post subject: Reply with quote

Updated to V2 with some minor fixes.

There is no coloring problem for "scollbox".
But as you said for PageControl, "Background Panel" should be used.

Also, although the form borders have a distinct line on the right and left, this is usually due to Windows shading.
So the change you will make in this regard may differ for each PC.

If you see the image of the Color Palette form above, you will notice that the form is hidden and is only installed in Panels.
You can reset the borders in Panels, but if there is still shading, one edge will definitely be distinct.

_________________
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
paul44
Expert Cheater
Reputation: 2

Joined: 20 Jul 2017
Posts: 190

PostPosted: Sat Mar 22, 2025 3:52 am    Post subject: v2 tested Reply with quote

and i had no probs with the script... kudos !

Also you might want to have a look at attached script. It basically can do following:
1. list all objects of a specific form (you'll need to edit the script !)
(now set to produce list for mainform)
2. same list as 1., but includes all properties (which can take some time to finish ~ edit: bShort = 0)

a. is based on a small project #Panraven and I worked on some years back
(when i was working on my table template ~ still serious beginner back then ~ tried to find/link that post, but no cigar)

b. => why can this be interesting to you: you can use the 'objectlist' to quickly "paint" specific/selected object_types with selected color...
(i understand that your script sets the color for the currently selected/created object here, right ?)

c. why do i mention this in the first place: you got me thinking about 'collecting them objects' and remembered earlier this week i actually could do that using that "old" script ! So did some work yesterday and this morning: [ https://ibb.co/album/w01YhD ]
=> if you recall my initial img/script, i had panels, etc manually added to respective arrays.
(i no longer have to worry about adding new elements - primarily labels/fields - to "some" list as these will be picked up automatically now)

script: [ https://www.mediafire.com/file/hxu3wchu38abglb/_CE_Form_CompList_1.CT/file ]
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 35

Joined: 16 Feb 2017
Posts: 1478

PostPosted: Sat Mar 22, 2025 6:32 am    Post subject: Reply with quote

Actually, there was a detail that I forgot to mention in the article and it came to my mind with your comprehensive comment;

Including the control list table, save and restore settings, you can add the "Default setting" scope to the default list with many changes in the code, from colors, "Font size", "Bevel Width" (for panels), "Stretch" (for images) and many other frequently used settings.

I saw in your comment that you made extensive changes specific to you.
I guess I may not agree with the general usage requirement.

The new thing I am thinking of for V3 is to add a code that includes (lists) the form created in the Form Designer as a "Create" list (createForm() etc.) in the script.

Apart from these, I am thinking of updating a plugin that I have previously published.

Since the problem is solved, good luck to you. Smile

_________________
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 Extensions 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