
#Purebasic activex code#
#PB_Web_HtmlCode : Get the html code from the gadget. GetGadgetItemText(): The following constants can be used to get information (Windows only): SetGadgetItemText(): With #PB_Web_HtmlCode as 'Item' html code can be streamed into the Gadget. #PB_Web_Refresh: Refresh the current page. #PB_Web_Stop : Stop loading the current page. #PB_Web_Forward: One step forward in the navigation history. #PB_Web_Back : One step back in the navigation history. SetGadgetState(): Perform an action on the gadget. SetGadgetText(): Change the current URL. The following functions can be used to act on a WebGadget: This component comes with the operating system. The WebGadget uses the WebKit component on Mac OSX. If your distribution does not include a package for this library, the sources can be downloaded from the

Some distributions may include an old version of this package which is named 'WebKitGtk'. The package with this library is named 'libwebkit'. The WebGadget uses the WebKitGtk library on Linux. The WebGadget uses the Internet Explorer 4.0+ ActiveX object on Windows. WebGadget, not only for the compilation of the program. The following components are required to use the WebGadget on each OS. Requirements for the WebGadget on each OS. This function fails if the required components for the WebGadget cannot be loaded. Then the return-value is the auto-generated gadget number on success.

If #PB_Any was used as the #Gadget parameter

Returns nonzero on success and zero on failure. The url to load after the gadget is created. The position and dimensions of the new gadget. It can display html pages.Ī number to identify the new gadget. Result = WebGadget(#Gadget, x, y, Width, Height, URL$) DescriptionĬreates a Web gadget in the current GadgetList.
