|
You last visited: Today at 12:51
Advertisement
[Autolt] How To Change Color Checkboxs
Discussion on [Autolt] How To Change Color Checkboxs within the Coding Tutorials forum part of the General Coding category.
03/23/2015, 17:12
|
#1
|
elite*gold: 0
Join Date: Mar 2015
Posts: 2
Received Thanks: 1
|
[Autolt] How To Change Color Checkboxs
Its My First Thread Here
I Will Show You How To Change Your Color Checkbox
You Don't Need Any Include Files
Add This To Your Script
StyleToggle(5)
And This The Function of It
Code:
Func StyleToggle($Off = 1)
If Not StringInStr(@OSType, "WIN32_NT") Then Return 0
$XS_n = DllCall("uxtheme.dll", "int", "GetThemeAppProperties")
If $Off Then
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
Return 1
ElseIf IsArray($XS_n) Then
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $XS_n[0])
$XS_n = ""
Return 1
EndIf
Return 0
EndFunc
How You Can Add Your Color?
Code:
$Checkbox1 = GUICtrlCreateCheckbox("", 0, 0, 0, 0)
GUICtrlSetColor($Checkbox1 or -1, 0xFFFFFF)
0xFFFFFF >>White Color
It Will Be Look Like That:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
StyleToggle(5)
#Region
$Checkbox2 = GUICtrlCreateCheckbox("", 0, 0, 0, 0)
GUICtrlSetColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW)
#EndRegion
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func StyleToggle($Off = 1)
If Not StringInStr(@OSType, "WIN32_NT") Then Return 0
$XS_n = DllCall("uxtheme.dll", "int", "GetThemeAppProperties")
If $Off Then
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
Return 1
ElseIf IsArray($XS_n) Then
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $XS_n[0])
$XS_n = ""
Return 1
EndIf
Return 0
EndFunc
Done and Its Very Easy
|
|
|
03/23/2015, 20:45
|
#2
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Sick.
|
|
|
03/25/2015, 22:33
|
#3
|
elite*gold: 0
Join Date: Jan 2012
Posts: 759
Received Thanks: 416
|
Hello,
Thanks For Your Tutorial. I Did Not Know Before That We Use Camel Case In English Too.
|
|
|
03/29/2015, 19:14
|
#4
|
elite*gold: 67
Join Date: Aug 2014
Posts: 1,321
Received Thanks: 927
|
Quote:
Originally Posted by dowhile
Hello,
Thanks For Your Tutorial. I Did Not Know Before That We Use Camel Case In English Too.
|
Thats Pascal casing smartass.
|
|
|
|
Similar Threads
|
Color Change
04/01/2012 - Kal Online - 2 Replies
Hi All :)
Some1 know how to change monster's color to pink- or other (P-Server) ? i alrdy complete script with pixelsearch by at3 , my own attack hack complete too so it's last think left to complete this project ^^
i hope some1 can help me with it :} ty
ImageShack® - Online Photo and Video Hosting small image with my project .. after Go nothing happen except open tablee :} i hope it's color problem ^^
|
[Help]GM color change
12/03/2011 - Shaiya Private Server - 3 Replies
Hello guys im searching an guide to change gm name color ...i remember that someone created a guide for it but i cant find it with search option . can someone help me to find it ? or link it
Thx
|
How to change the color of KO ?
06/07/2007 - Conquer Online 2 - 3 Replies
Can anyone tell me about at simple way of changing the Red Color of KO count on Warriors to something Else ..
Iam using a pixle bot that attacks the RED HP Bar of mobs
But when I use Superman it starts Clicking on the red Color of the KO
|
Want to change color
08/31/2006 - Conquer Online 2 - 4 Replies
Ok so i have photoshop 7.0 and i have the redshadow, i want to change the color but photoshop says its in an unknown format, ive searched and not found anything helpfull, Is there anyway i can change the erdshadows color?
|
Change color
07/28/2005 - Lineage 2 - 1 Replies
hello i whont make one question in c2 and c3 drops are write in yellow c1 all font colors and size are same how can i change in c1 the font color to make it yellow or other color ty for the help
|
All times are GMT +2. The time now is 12:51.
|
|