Function Reference


_GUICtrlSlider_SetTipSide

Positions a ToolTip control

#include <GuiSlider.au3>
_GUICtrlSlider_SetTipSide ( $hWnd, $iLocation )

Parameters

$hWnd Control ID/Handle to the control
$iLocation The location at which to display the ToolTip control. This value can be one of the following:
    $TBTS_TOP - Will be positioned above the slider. This flag is for use with horizontal sliders.
    $TBTS_LEFT - Will be positioned to the left of the slider. This flag is for use with vertical sliders.
    $TBTS_BOTTOM - Will be positioned below the slider This flag is for use with horizontal sliders.
    $TBTS_RIGHT - Will be positioned to the right of the slider. This flag is for use with vertical sliders.

Return Value

Returns the ToolTip control's previous location.
The return value equals one of the possible values for $iLocation.

Remarks

Use the $TBS_TOOLTIPS style display ToolTips.

Example

#include <GUIConstantsEx.au3>
#include <GuiSlider.au3>

Example()

Func Example()
    Local $idRdoBottom, $idRdoLeft, $idRdoRight, $idRdoTop, $idSlider, $idSlider2

    ; Create GUI
    GUICreate("Slider Set Tip Side", 400, 296)
    $idSlider = GUICtrlCreateSlider(2, 2, 375, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS))
    $idSlider2 = GUICtrlCreateSlider(380, 2, 20, 292, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_VERT))
    GUISetState(@SW_SHOW)

    GUICtrlCreateGroup("Tip Side Horiz", 2, 25, 120, 120)
    $idRdoBottom = GUICtrlCreateRadio("Bottom", 5, 40, 108, 20)
    $idRdoTop = GUICtrlCreateRadio("Top", 5, 115, 108, 20)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    GUICtrlSetState($idRdoTop, $GUI_CHECKED)

    GUICtrlCreateGroup("Tip Side Vert", 130, 25, 120, 120)
    $idRdoLeft = GUICtrlCreateRadio("Left", 132, 65, 108, 20)
    $idRdoRight = GUICtrlCreateRadio("Right", 132, 90, 108, 20)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    GUICtrlSetState($idRdoLeft, $GUI_CHECKED)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
            Case $idRdoBottom
                _GUICtrlSlider_SetTipSide($idSlider, $TBTS_BOTTOM)
            Case $idRdoLeft
                _GUICtrlSlider_SetTipSide($idSlider2, $TBTS_LEFT)
            Case $idRdoRight
                _GUICtrlSlider_SetTipSide($idSlider2, $TBTS_RIGHT)
            Case $idRdoTop
                _GUICtrlSlider_SetTipSide($idSlider, $TBTS_TOP)
        EndSwitch
    WEnd
    GUIDelete()
EndFunc   ;==>Example