Sign in to follow this  
Followers 0
Vert

GUICtrlSetBkColor

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


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

Share this post


Link to post
Share on other sites

Sounds like you're running good old 3.1.1 at default when running them from explorer.

Share this post


Link to post
Share on other sites

Sounds like you're running good old 3.1.1 at default when running them from explorer.

I could swear up and down I already updated a LONG time ago, but apparently I didn't.

Problem solved, thanks for the help.

Share this post


Link to post
Share on other sites

No problem. Btw, incase you didn't know the following file toggles stable/beta :

%programfiles%\AutoIt3\beta\Extras\Toggle AU3 Beta.au3

I don' think beta sets itself to run scripts when installing it, at least it didn't before.

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