Followers 0

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 on other sites

Pretty hard to tell with-out any code to look at.

Don't argue with an idiot; people watching may not be able to tell the difference.

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 on other sites

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

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