Sign in to follow this  
Followers 0
AustrianOak

Coloring group box lines to set color

5 posts in this topic

Is there anyway to specify a color for the lines in my group? I'm asking this because people who run different themes, the group lines might show up a different color and I want it to be a set color.

Share this post


Link to post
Share on other sites



Bump.

:)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thank you for your help Xeno, it has helped spawn some ideas but I will continue to search for an answer.

Share this post


Link to post
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
Sign in to follow this  
Followers 0