Jump to content

GUICtrlSetBkColor


Vert
 Share

Recommended Posts

Recently, I have built a program that changes the background color of a particular Input box whenever the mouse cursor runs over a certain color.

For example, if the user's mouse is placed on the navy-blue banner at the top of these forums, the box should change to that exact color.

When I do a debug run in Scite, it changes color and works perfectly, but if I run it without the debugger, it will not change color at all. Anyone know if that would be a programming error on my part, or if there is something I'm missing?

Thanks.

Edit: Doesn't look like I can change the background color of my input boxes as a whole when running outside of the standard Scite "Beta Run" mode...which means it wasn't a programming error on my side.

Edited by Vert
Link to comment
Share on other sites

#include <GUIConstants.au3>
$Form1 = GUICreate("Example", 622, 441, 192, 125)
$Input1 = GUICtrlCreateInput("", 88, 24, 105, 21, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetColor($Input1, 0)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit

Just as a smaller example.

It should turn the input box black. It does when I do a beta run, but open compilation or by running it standardly, it does nothing.

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