OnMouse Over Container
Posted: Fri May 28, 2021 12:55 pm
I need the function 'OnMouseOver Container'
- reaction to moving the mouse over the yellow container, similar to 'GadgetToolTip (...)'.
Unfortunately, after hovering over the checkbox, the tooltip from the container stops working
https://drive.google.com/file/d/10JPIof ... sp=sharing
I want to be able to, for example, highlight the selected country contour on the map after MouseOver a given container.
- reaction to moving the mouse over the yellow container, similar to 'GadgetToolTip (...)'.
Unfortunately, after hovering over the checkbox, the tooltip from the container stops working
https://drive.google.com/file/d/10JPIof ... sp=sharing
I want to be able to, for example, highlight the selected country contour on the map after MouseOver a given container.
Code: Select all
LoadImage(0, "PureBasic.bmp")
OpenWindow(#PB_Any, 0, 0, 600,600, "OnMouseOver Container", #PB_Window_SystemMenu)
Container_A0 = ContainerGadget(#PB_Any, 50,30, 480,260)
SetGadgetColor(Container_A0, #PB_Gadget_BackColor, #Green)
t_A=TextGadget(#PB_Any, 50,5, 300,20, "Group A")
SetGadgetColor(t_A, #PB_Gadget_BackColor, #Green)
Container_A1 = ContainerGadget(#PB_Any, 10,30, 460,45)
SetGadgetColor(Container_A1, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_A1, "Container_A1")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox A1 ...")
CloseGadgetList()
Container_A2 = ContainerGadget(#PB_Any, 10,80, 460,45)
SetGadgetColor(Container_A2, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_A2, "Container_A2")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox A2 ...")
CloseGadgetList()
Container_A3 = ContainerGadget(#PB_Any, 10,130, 460,45)
SetGadgetColor(Container_A3, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_A3, "Container_A3")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox A3 ...")
CloseGadgetList()
t_A_=TextGadget(#PB_Any, 50,180, 300,20, ". . . ")
SetGadgetColor(t_A_, #PB_Gadget_BackColor, #Green)
Container_A99 = ContainerGadget(#PB_Any, 10,205, 460,45)
SetGadgetColor(Container_A99, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_A99, "Container_A99")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox A99 ...")
CloseGadgetList()
CloseGadgetList()
Container_B0 = ContainerGadget(#PB_Any, 50,320, 480,260)
SetGadgetColor(Container_B0, #PB_Gadget_BackColor, #Green)
t_B=TextGadget(#PB_Any, 50,5, 300,20, "Group B")
SetGadgetColor(t_B, #PB_Gadget_BackColor, #Green)
Container_B1 = ContainerGadget(#PB_Any, 10,30, 460,45)
SetGadgetColor(Container_B1, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_B1, "Container_B1")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox B1 ...")
CloseGadgetList()
Container_B2 = ContainerGadget(#PB_Any, 10,80, 460,45)
SetGadgetColor(Container_B2, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_B2, "Container_B2")
Im_B2=ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
Ch_B2=CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox B2 ...")
CloseGadgetList()
Container_B3 = ContainerGadget(#PB_Any, 10,130, 460,45)
SetGadgetColor(Container_B3, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_B3, "Container_B3")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox B3 ...")
CloseGadgetList()
t_A_=TextGadget(#PB_Any, 50,180, 300,20, ". . . ")
SetGadgetColor(t_A_, #PB_Gadget_BackColor, #Green)
Container_B99 = ContainerGadget(#PB_Any, 10,205, 460,45)
SetGadgetColor(Container_B99, #PB_Gadget_BackColor, #Yellow)
GadgetToolTip(Container_B99, "Container_B99")
ImageGadget(#PB_Any, 5,5, 100, 30, ImageID(0))
CheckBoxGadget(#PB_Any, 185,10, 265,25, "CheckBox B99 ...")
CloseGadgetList()
CloseGadgetList()
Repeat
Event = WindowEvent()
Until Event = #PB_Event_CloseWindow