Tooltips not working on editable Combogadget

Windows specific forum
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Tooltips not working on editable Combogadget

Post by PB&J Lover »

Why don't tooltips work if I set my combogadget to "editable"?

Is this a bug? :shock:
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Confirmed but no idea why.
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post 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
-jb
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post 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:
-jb
Post Reply