Function Reference


_GUICtrlSlider_SetUnicodeFormat

Sets the Unicode character format flag for the control

#include <GuiSlider.au3>
_GUICtrlSlider_SetUnicodeFormat ( $hWnd, $bUnicode )

Parameters

$hWnd Control ID/Handle to the control
$bUnicode Determines the character set that is used by the control:
    True - The control will use Unicode characters
    False - The control will use ANSI characters

Return Value

Returns the previous Unicode format flag for the control.

Related

_GUICtrlSlider_GetUnicodeFormat

Example

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

Example()

Func Example()
    Local $idSlider

    ; Create GUI
    GUICreate("Slider Set Unicode Format", 400, 296)
    $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE))
    GUISetState(@SW_SHOW)

    ; Get Unicode Format
    MsgBox($MB_SYSTEMMODAL, "Information", "Unicode Format: " & _GUICtrlSlider_GetUnicodeFormat($idSlider))

    ; Set Unicode Format
    MsgBox($MB_SYSTEMMODAL, "Information", "Previous Unicode Format: " & _GUICtrlSlider_SetUnicodeFormat($idSlider, False))

    ; Get Unicode Format
    MsgBox($MB_SYSTEMMODAL, "Information", "Unicode Format: " & _GUICtrlSlider_GetUnicodeFormat($idSlider))

    ; Loop until the user exits.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>Example