﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
765	Tip Text for label not shown after using GUICtrlSetStyle() on that label	MrCreatoR <mscreator@…>		"Hi,

First please check [http://www.autoitscript.com/forum/index.php?s=&showtopic=87232&view=findpost&p=625891 this thread], where the bug(?) is found.

It seems that when we using GUICtrlSetStyle on Label control (i checked only few more, such as button, checkbox, radio etc.), the tip that was/is set by GUICtrlSetTip() before/after using SetStyle function is not shown (destroyed?).

Reproducing example:


{{{
#include <GUIConstants.au3>
#include <StaticConstants.au3>

GUICreate(""Test GUI"", 250, 150)

$Label = GUICtrlCreateLabel(""Test"", 70, 45, 53, 15)

GUICtrlSetTip($Label, ""My TIP"")
GUICtrlSetStyle($Label, BitOr($GUI_SS_DEFAULT_LABEL, $SS_CENTER)) ;That's it, tip is not shown

GUISetState()

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
}}}


'''P.S'''

There is a workaround for this issue:


{{{
#include <GUIConstants.au3>
#include <Constants.au3>
#include <StaticConstants.au3>
#include <WinAPI.au3>

GUICreate(""Test GUI"", 250, 150)

$Label = GUICtrlCreateLabel(""Test"", 70, 45, 53, 15)
GUICtrlSetTip($Label, ""My TIP"")

$iStyle = _WinAPI_GetWindowLong(GUICtrlGetHandle($Label), $GWL_STYLE)
GUICtrlSetStyle($Label, BitOr($iStyle, $SS_CENTER))

GUISetState()

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
}}}


So my geuss that it's f problem in GUICtrlSetStyle()...
Any way, the function should not affect on the Tip creation for the control."	Bug	closed		AutoIt	3.3.0.0	None	No Bug	GUICtrlSetTip GUICtrlSetStyle	
