Jump to content

Coloring group box lines to set color


Recommended Posts

  • Moderators

Bump.

:)

You assume we know what you are talking about with your question, and have failed miserably to supply any code to go off of for any type of help anyway (and or your attempts of hunting down the answer yourself and attempted code).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Hi,

I dunno how to colour the lines, but maybe this is a start:

Global $GUI = GUICreate("my GUI")
XPStyle(1)
Global $group = GUICtrlCreateGroup(" This is a group", 40, 40, 300, 300)
GUICtrlSetColor($group, 0xff0000)

XPStyle(0)
GUISetState()
Sleep(2000)

$group = GUICtrlCreateGroup(" This is a group with bk color", 40, 40, 300, 300)
GUICtrlSetColor($group, 0x0ff)
GUICtrlSetBkColor($group, 0xff0000)

While 1
    If GUIGetMsg() = -3 Then Exit
WEnd

Func XPStyle($OnOff = 1)
    Local $XS_n
    If $OnOff And StringInStr(@OSTYPE, "WIN32_NT") Then
        $XS_n = DllCall("uxtheme.dll", "int", "GetThemeAppProperties")
        DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
        Return 1
    ElseIf StringInStr(@OSTYPE, "WIN32_NT") And IsArray($XS_n) Then
        DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $XS_n[0])
        $XS_n = ""
        Return 1
    EndIf
    Return 0
EndFunc   ;==>XPStyle

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...