Thanks PMV, just one more thing
I'm missing something obvious, I know I am...
Using my last small example, how do I enable scrolling/links etc?
The Gadget displays the html, but I can't scroll or use a link on it.
I've looked at your examples and have tried but I can never get the 'Gadget' to be able to scroll (as in your examples).
EDIT:
If I change the main event loop to the following, scrolling now works, but if I hover over a link, the cursor changes back to a normal one too quickly and I can't press the link.
Any ideas as how to rectify that?
(lifted/adapted from AWE_Browser example)
Code: Select all
Repeat
Awesomium_Update()
Event = WaitWindowEvent(10)
Select Event
Case #PB_Event_CloseWindow
QUIT = #True
Default
*AwesomiumGE = Awesomium_GetAwesomium(EventGadget(), #Awe_Type_Gadget)
If *AwesomiumGE
Awesomium_GadgetEvent(*AwesomiumGE, EventType())
EndIf
EndSelect
Until QUIT
Awesomium_Shutdown()
End
EDIT2:
Typical, realised moments after I posted above what I'd (not) done (wasn't checking the PB_Event_Gadget in loop)
Changed to this and now works perfectly.
Code: Select all
Repeat
Awesomium_Update()
Event = WaitWindowEvent(10)
Select Event
Case #PB_Event_CloseWindow
QUIT = #True
Case #PB_Event_Gadget
Select EventGadget()
Case Dummy
Default
*AwesomiumGE = Awesomium_GetAwesomium(EventGadget(), #Awe_Type_Gadget)
If *AwesomiumGE
Awesomium_GadgetEvent(*AwesomiumGE, EventType())
EndIf
EndSelect
EndSelect
Until QUIT
Awesomium_Shutdown()
End
(Dummy is a hidden button gadget, just to aid the Select/Case test, will be 'proper' gadgets in actual program.)