Jump to content

GUI color ?


Recommended Posts

Can anyone tell me why I can't get the color to show? It works fine with beta run in SciTE but not when running the script or compiling it.

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("_thebox_", 469, 250, 186, 114)
$List = GUICtrlCreateGroup("List", 16, 16, 433, 217)
$Namebox = GUICtrlCreateInput("Bill Gates", 32, 80, 393, 25, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetFont(-1, 11, 400, 0, "Arial")
$emailbox = GUICtrlCreateInput("bill_gates@microsoft.com", 32, 168, 393, 21, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetFont(-1, 8, 800, 0, "Times New Roman")
GUICtrlSetColor(-1, 0x800000);;; <<<<<<<<<<< THIS LINE <<<<<<<<<<<
GUICtrlCreateLabel("Name", 32, 56, 32, 17)
GUICtrlCreateLabel("Email", 32, 144, 22, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit
Link to comment
Share on other sites

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("_thebox_", 469, 250, 186, 114)
$List = GUICtrlCreateGroup("List", 16, 16, 433, 217)
$Namebox = GUICtrlCreateInput("Bill Gates", 32, 80, 393, 25, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetFont(-1, 11, 400, 0, "Arial")
$emailbox = GUICtrlCreateInput("bill_gates@microsoft.com", 32, 168, 393, 21, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetFont(-1, 8, 800, 0, "Times New Roman")
GUICtrlSetColor($emailbox , 0x800000)
GUICtrlSetColor( $Namebox , 0x800000 )
GUICtrlCreateLabel("Name", 32, 56, 32, 17)
GUICtrlCreateLabel("Email", 32, 144, 22, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit

If you want it for both inputs :D

Else remove the one you dont want.

-1 calls the last created controll

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

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...