Jump to content

Recommended Posts

Posted
  • 2 weeks later...
Posted (edited)

Hi StatQuo,

delete the button with GUICtrlDelete($File_Button) and create it new with different text.

But i have used the GuiFlatButton UDF. ( GuiFlatButton_SetData ...............: Set the display text of the button)

KR,

Marcel

Edited by gmmg
  • 6 months later...
Posted (edited)

Hi is there any "modern with ball" slider added to this UDF, as main author a=talk about in 1first thread ?

Edited by Ebola57
  • 9 months later...
  • 2 months later...
Posted (edited)

Great project! But adjustments need to be made. The background color of the elements can be transparent! To do this, first of all, you need to represent all colors in numeric format, not in string format. Exclude all such lines:

$BG_Color = "0xFF" & Hex($BG_Color, 6)

Next, to draw the transparent background correctly, add _WinAPI_DrawThemeParentBackground to the animation code.

Func _Metro_ToggleUnCheck($Toggle, $NoAnimation = False)
    Local $hControl = GUICtrlGetHandle($Toggle)
    Local $hDC = _WinAPI_GetWindowDC($hControl)
    For $i = 0 To (UBound($iHoverReg) - 1) Step +1
        If $iHoverReg[$i][0] = $Toggle Then
            If $iHoverReg[$i][2] Then
                If Not $NoAnimation Then
                    For $i2 = 12 To 6 Step -1
                        _WinAPI_DrawThemeParentBackground($hControl, $hDC)
                        _WinAPI_DeleteObject(GUICtrlSendMsg($Toggle, 0x0172, 0, $iHoverReg[$i][$i2]))
                        Sleep(1)
                    Next
                    _WinAPI_DrawThemeParentBackground($hControl, $hDC)
                    _WinAPI_DeleteObject(GUICtrlSendMsg($Toggle, 0x0172, 0, $iHoverReg[$i][13]))
                Else
                    _WinAPI_DrawThemeParentBackground($hControl, $hDC)
                    _WinAPI_DeleteObject(GUICtrlSendMsg($Toggle, 0x0172, 0, $iHoverReg[$i][13]))
                EndIf
                $iHoverReg[$i][1] = True
                $iHoverReg[$i][2] = False
                ExitLoop
            EndIf
        EndIf
    Next
    _WinAPI_ReleaseDC($hControl, $hDC)
EndFunc   ;==>_Metro_ToggleUnCheck

 

Edited by musicstashall

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
×
×
  • Create New...