Jump to content

GUICtrlCreateCombo and GUICtrlSetTip...


dj9866
 Share

Recommended Posts

Any thoughts as to why a tooltip associated with a combo dropdown doesn't function. All other controls are working as expected. OS is Win2k.

Script sample...

$Combo2 = GUICtrlCreateCombo("", 105, 124, 400, 240, BitOR$CBS_DROPDOWN,$CBS_AUTOHSCROLL,$WS_GROUP))

GUICtrlSetTip(-1, "Select amount of advance notice from dropdown or enter the number of days...")

GUICtrlSetFont(-1, 10, 800, 0, "Garamond")

GUICtrlSetData(-1, "30 days|15 days|7 days|3 days|1 day")

Link to comment
Share on other sites

Put the mouse over the down arrow on the combo and see what happens:

#include <GuiConstants.au3>

$Gui = GUICreate("Demo", 417, 356, 192, 125, BitOR($WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU))
$Combo2 = GUICtrlCreateCombo("", 10, 124, 400, 240, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL,$WS_GROUP))
GUICtrlSetTip(-1, "Select amount of advance notice from dropdown or enter the number of days...")
GUICtrlSetFont(-1, 10, 800, 0, "Garamond")
GUICtrlSetData(-1, "30 days|15 days|7 days|3 days|1 day")
GUISetState(@SW_SHOW)
$win_pos = WinGetPos($Gui)
$tmp_pos = $win_pos
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case Else
    EndSelect
WEnd

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...