Page 1 of 1

[GUI ComboBox] Sets the textual cue, or tip

Posted: 04 Aug 2021, 02:54
by jNizM
Sets the cue banner text that is displayed for the edit control of a combo box.

Send the CB_SETCUEBANNER message to the ComboBox control

Code: Select all

MyGui := Gui()

MyGui.AddEdit("w300")   ; focused control to show the combobox cue text

Cb01 := MyGui.AddComboBox("w300", ["CB 1", "CB 2", "CB 3"])
CB_SETCUEBANNER(Cb01, "ComboBox Control Cue Text")

MyGui.Show()


CB_SETCUEBANNER(handle, string)
{
	static CBM_FIRST       := 0x1700
	static CB_SETCUEBANNER := CBM_FIRST + 3

	SendMessage(CB_SETCUEBANNER, 0, StrPtr(string), handle)
}

Image


It is already on the wish list for v2 (https://www.autohotkey.com/boards/viewtopic.php?t=70852)

Re: [GUI ComboBox] Sets the textual cue, or tip

Posted: 06 Aug 2021, 06:28
by Drugwash
Remember this...? 8-)
I wonder if it still works at all under Win10+.