Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (181 - 183 of 3866)

Ticket Resolution Summary Owner Reporter
#182 Completed Add GUISetColor() by analogue of GUISetFont() Jpm MsCreatoR <mscreator@…>
Description

GUISetFont cover all controls that will be created and set Font for them, i believe we need the same but with the Color.

Syntax:

GUISetColor(textcolor[, winhandle])

Example:

#include <GuiConstants.au3>

Global $GUI_BK_COLOR = 0x000000 ;This value changes via IniRead

GUICreate("Test Script")

GUISetBkColor($GUI_BK_COLOR)
GUISetColor(0x000000)
If $GUI_BK_COLOR = 0x000000 Then GUISetColor(0xFFFFFF) ;to adapt the controls color to the window color

GUICtrlCreateLabel("Some text", 20, 40)

GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
	EndSwitch
WEnd

Purpose:

We creating the gui and set the Background, but now we need to create a lot of controls, they needs to be adapdet to the background color of the window. This function will avoid the need to set color for every control.

Thanks!

#183 Fixed Event of radio control fired when the GUI is reactivated Jpm MsCreatoR <mscreator@…>
Description

For some reason, when we create a radio control, the same event is triggered when the GUI is unactivated and then activated again.

Bug reproduction:

Run the example bellow, then minimize the GUI, and then activate it back. You should see the message box...

#include <GuiConstants.au3>

$hGUI = GUICreate("Test GUI", 360, 220)

$My_Radio = GUICtrlCreateRadio("Radio", 20, 110)

$Cancel_Button = GUICtrlCreateButton("Cancel", 20, 180, 80, 20)

GUISetState(@SW_SHOW, $hGUI)

While 1
	Switch GUIGetMsg()
		Case $GUI_EVENT_CLOSE, $Cancel_Button
			Exit
		Case $My_Radio
			MsgBox(0, "", "Is this normal?")
			
			Exit ;We need to exit because the message will popup every time
	EndSwitch
WEnd

The same with OnEvent mode, and also if we use advanced mode, i.e GUIGetMsg(1).

It seems that this happening only with Raio control, but i am not 100% sure, tested only few basic controls (label, button, etc.).

BTW, the same bug appears in AutoIt v3.2.8.1.

Thanks.

#184 No Bug Child window must use GUICtrlSetTip() if the parent uses it too MsCreatoR <mscreator@…>
Description

Forum link...

When the parent window have GUICtrlSetTip() for at least one control, then the child window must have it as well, otherwise when we reactivate the app, we can see only the child window.

Reproduction:

Run example bellow, activate some other window (not the desktop), and activate the GUI back (by clicking on the button on tasks panel), you will see only the child window.

#include <GuiConstants.au3>

$GUI = GUICreate("Test Script", 300, 200)
GUICtrlCreateButton("Button", 20, 40, 60, 20)
GUICtrlSetTip(-1, "TipText")
GUISetState(@SW_SHOW, $GUI)


GUISetState(@SW_DISABLE, $GUI)
$Child_GUI = GUICreate("Child", 200, 120, -1, -1, -1, -1, $GUI)
;GUICtrlCreateLabel("Label", -99, -99)
;GUICtrlSetTip(-1, "Child TipText")
GUISetState(@SW_SHOW, $Child_GUI)

While 1
    $nMsg = GUIGetMsg(1)
    Switch $nMsg[0]
        Case $GUI_EVENT_CLOSE
            If $nMsg[1] = $GUI Then Exit
            
            GUISetState(@SW_ENABLE, $GUI)
            GUIDelete($Child_GUI)
    EndSwitch
WEnd

If you uncomment two lines in the code, this "effect" is gone...

Tested with AutoIt v3.2.8.1/3.2.10.0.

Thanks.

Note: See TracQuery for help on using queries.