Sign in to follow this  
Followers 0
dj9866

GUICtrlCreateCombo and GUICtrlSetTip...

5 posts in this topic

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")

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Ok...thanks...hadn't tried that...certainly does narrow the effective area of the tooltip.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Gary,

is GuiCtrlSetTip supported on any OS - especially 2K?

I am not getting the tooltip.

Edited by is8591

Share this post


Link to post
Share on other sites

Can add a lable to the control and add same tooltip to that label to increase the tooltip sensitvity area.

Share this post


Link to post
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
Sign in to follow this  
Followers 0