Ermittelt den "cue banner" Text, welcher in einem Edit-Control einer Combobox angezeigt wird
#include <GuiComboBox.au3>
_GUICtrlComboBox_GetCueBanner ( $hWnd )
| $hWnd | Control-ID / Handle des Controls |
| Erfolg: | Der "cue banner" Text |
| Fehler: | ein leerer String "" |
Der "cue banner" ist Text, welcher in dem Edit-Control einer ComboBox dargestellt wird, wenn kein Item markiert ist
Mindestvoraussetzung Betriebssystem: Windows Vista oder neuer
- - - - - - - - Erklärung der Controls - - - - - - - -
#include "Extras\HelpFileInternals.au3"
#include <GuiComboBox.au3>
#include <GUIConstantsEx.au3>
#include <WindowsStylesConstants.au3>
Example()
Func Example()
; Erstellt eine GUI
GUICreate("ComboBox: Setzt und ermittelt den Hinweistext (v" & @AutoItVersion & ")", 500, 296)
Local $idCombo = GUICtrlCreateCombo("", 2, 2, 396, 296)
_GUICtrlComboBox_SetCueBanner($idCombo, "Wähle ein Item aus")
_MemoCreate(10, 50, 376, 234, $WS_VSCROLL)
GUISetState(@SW_SHOW)
; Fügt Dateien hinzu
_GUICtrlComboBox_BeginUpdate($idCombo)
_GUICtrlComboBox_AddDir($idCombo, @WindowsDir & "\*.exe")
_GUICtrlComboBox_EndUpdate($idCombo)
; Liest den Hinweistext aus und schreibt ihn ins Memo
_MemoWrite("Combobox-Hinweis: " & _GUICtrlComboBox_GetCueBanner($idCombo))
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example