Page 1 of 1

Tooltips not working on editable Combogadget

Posted: Wed Sep 28, 2005 7:44 pm
by PB&J Lover
Why don't tooltips work if I set my combogadget to "editable"?

Is this a bug? :shock:

Posted: Wed Sep 28, 2005 8:54 pm
by Trond
Confirmed but no idea why.

Posted: Wed Sep 28, 2005 11:52 pm
by jb
This code displays the tooltip. The tooltip appears when the mouse cursor is on the down arrow. It will not display when the mouse is on the entry part of the combobox.

Code: Select all

  If OpenWindow(0,0,0,270,140,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ComboBoxGadget")
    CreateGadgetList(WindowID(0))
    ComboBoxGadget(0,10,10,250,100,#PB_ComboBox_Editable)
    GadgetToolTip(0,"Editable ComboBox")    
    AddGadgetItem(0,-1,"ComboBox editable...")
    ComboBoxGadget(1,10,40,250,100)
    GadgetToolTip(1,"Tooltip for ComboBox")    
    For a=1 To 5
      AddGadgetItem(1,-1,"ComboBox item "+Str(a))
    Next
    SetGadgetState(1,2)
    Repeat
    Until WaitWindowEvent()=#PB_Event_CloseWindow
  EndIf

Posted: Thu Sep 29, 2005 12:02 am
by jb
Actually after further testing it will display when the mouse cursor hovers over the text portion of the combobox gadget. It will not display when the mouse cursor is displayed as an insertion point. :oops: