Problem: Listicon and webgadget with #PB_Web_HtmlCode
Posted: Sat Mar 29, 2008 1:13 pm
Having trouble with webgadget, check this:
Run this code and use listicon, it works ok with mouse and keyboard.
Then click webgadget with mouse left button, and after that listicon doesn't act normally anymore! It doesn't get activated, and keyboard isn't working.
So, is anyone else having same problem, or is this just me?
Timo
Code: Select all
If OpenWindow(0, 0, 0, 320, 300, "ListIconGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
ListIconGadget(0, 10, 25, 300, 100, "Column 1", 100)
For b = 0 To 10
AddGadgetItem(0, b, "Row " + Str(b))
Next
WebGadget(1,10,140,300,150,"")
Repeat
event = WaitWindowEvent()
event_gadget = EventGadget()
If event = #PB_Event_Gadget And event_gadget = 0
SetGadgetItemText(1, #PB_Web_HtmlCode , "Row " + Str(GetGadgetState(0)))
EndIf
Until event = #PB_Event_CloseWindow
EndIf
Then click webgadget with mouse left button, and after that listicon doesn't act normally anymore! It doesn't get activated, and keyboard isn't working.
So, is anyone else having same problem, or is this just me?
Timo