

| Type | Description | |||
| URL as String | A string expression that indicates the HTTP URL to retrieve. The URL parameter may start with http:// or without. You can specify the web server's port by calling something like: http://www.yourserver.com:8080/cart.gif, where, the 8080 is the port to be used. By default, the control uses the port 80 | |||
| IPictureDisp | A Picture object being retrieved. |
The GETImage can retrieve the following type of pictures:
For instance, the Image1.Picture = http.GETImage("https://exontrol.com/images/exontrol.png"), assigns the picture from giving URL to Picture property of the Image Object, where the http is a global object of EXHTTPLib.HTTP type.
The following samples shows how can you load pictures using URL ( http:// ), into the eXGrid control.
VBA (MS Access, Excell...)
With Grid1
Set http = CreateObject("Exontrol.HTTP")
.PictureDisplay = 34
.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
End With
VB6
With Grid1
Set http = CreateObject("Exontrol.HTTP")
.PictureDisplay = LowerRight
.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
End With
VB.NET
Dim http With Exgrid1 ' Add 'exontrol.exhttp.dll(ExHTTP.dll)' reference to your project. http = New exontrol.EXHTTPLib.exhttp() .PictureDisplay = exontrol.EXGRIDLib.PictureDisplayEnum.LowerRight .Picture = http.get_GETImage("https://exontrol.com/images/exontrol.png") End With
VB.NET for /COM
Dim http
With AxGrid1
http = CreateObject("Exontrol.HTTP")
.PictureDisplay = EXGRIDLib.PictureDisplayEnum.LowerRight
.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
End With
C++
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRIDLib' for the library: 'ExGrid 1.0 Control Library'
#import <ExGrid.dll>
using namespace EXGRIDLib;
*/
EXGRIDLib::IGridPtr spGrid1 = GetDlgItem(IDC_GRID1)->GetControlUnknown();
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXHTTPLib' for the library: 'ExHTTP 1.0 Control Library'
#import <ExHTTP.dll>
using namespace EXHTTPLib;
*/
EXHTTPLib::IHTTPPtr http = ::CreateObject(L"Exontrol.HTTP");
spGrid1->PutPictureDisplay(EXGRIDLib::LowerRight);
spGrid1->PutPicture(IPictureDispPtr(((ObjectPtr)(http->GetGETImage(L"https://exontrol.com/images/exontrol.png")))));
C++ Builder
/* Select the Component\Import Component...\Import a Type Library, to import the following Type Library: ExHTTP 1.0 Control Library TypeLib: ExHTTP.dll to define the namespace: Exhttplib_tlb */ //#include "EXHTTPLIB_TLB.h" Exhttplib_tlb::IHTTPPtr http = Variant::CreateObject(L"Exontrol.HTTP"); Grid1->PictureDisplay = Exgridlib_tlb::PictureDisplayEnum::LowerRight; Grid1->Picture = (IPictureDisp*)(http->get_GETImage(L"https://exontrol.com/images/exontrol.png"));
C#
// Add 'exontrol.exhttp.dll(ExHTTP.dll)' reference to your project. // Add 'ExHTTP 1.0 Control Library(ExHTTP.dll)' reference to your project. exontrol.EXHTTPLib.exhttp http = new exontrol.EXHTTPLib.exhttp(); exgrid1.PictureDisplay = exontrol.EXGRIDLib.PictureDisplayEnum.LowerRight; exgrid1.Picture = (http.get_GETImage("https://exontrol.com/images/exontrol.png") as Object);
JScript/JavaScript
<BODY onload="Init()">
<OBJECT CLASSID="clsid:101EE60F-7B07-48B0-A13A-F32BAE7DA165" id="Grid1"></OBJECT>
<SCRIPT LANGUAGE="JScript">
function Init()
{
var http = new ActiveXObject("Exontrol.HTTP");
Grid1.PictureDisplay = 34;
Grid1.Picture = http.GETImage("https://exontrol.com/images/exontrol.png");
}
</SCRIPT>
</BODY>
VBScript
<BODY onload="Init()">
<OBJECT CLASSID="clsid:101EE60F-7B07-48B0-A13A-F32BAE7DA165" id="Grid1"></OBJECT>
<SCRIPT LANGUAGE="VBScript">
Function Init()
With Grid1
Set http = CreateObject("Exontrol.HTTP")
.PictureDisplay = 34
.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
End With
End Function
</SCRIPT>
</BODY>
C# for /COM
// Add 'ExHTTP 1.0 Control Library(ExHTTP.dll)' reference to your project. EXHTTPLib.HTTP http = new EXHTTPLib.HTTP(); axGrid1.PictureDisplay = EXGRIDLib.PictureDisplayEnum.LowerRight; (axGrid1.GetOcx() as EXGRIDLib.Grid).Picture = (http.get_GETImage("https://exontrol.com/images/exontrol.png") as Object);
X++ (Dynamics Ax 2009)
public void init()
{
anytype http;
;
super();
// Add 'exhttp.dll(ExHTTP.dll)' reference to your project.
// Add 'ExHTTP 1.0 Control Library(ExHTTP.dll)' reference to your project.
http = COM::createFromObject(new EXHTTPLib.exhttp()); http = http;
exgrid1.PictureDisplay(34/*LowerRight*/);
exgrid1.Picture(http.GETImage("https://exontrol.com/images/exontrol.png"));
}
Delphi 8 (.NET only)
with AxGrid1 do
begin
http := (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.HTTP')) as EXHTTPLib.HTTP);
PictureDisplay := EXGRIDLib.PictureDisplayEnum.LowerRight;
(GetOcx() as EXGRIDLib.Grid).Picture := (http.GETImage['https://exontrol.com/images/exontrol.png'] as Object);
end
Delphi (standard)
with Grid1 do
begin
http := (IUnknown(ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.HTTP'))) as EXHTTPLib_TLB.HTTP);
PictureDisplay := EXGRIDLib_TLB.LowerRight;
Picture := (IUnknown(http.GETImage['https://exontrol.com/images/exontrol.png']) as _TLB.Object);
end
VFP
with thisform.Grid1
http = CreateObject("Exontrol.HTTP")
.PictureDisplay = 34
.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
endwith
dBASE Plus
local http,oGrid
oGrid = form.EXGRIDACTIVEXCONTROL1.nativeObject
http = new OleAutoClient("Exontrol.HTTP")
oGrid.PictureDisplay = 34
oGrid.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
XBasic (Alpha Five)
Dim http as P
Dim oGrid as P
oGrid = topparent:CONTROL_ACTIVEX1.activex
http = OLE.Create("Exontrol.HTTP")
oGrid.PictureDisplay = 34
oGrid.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
Visual Objects
local http as IHTTP
// Generate Source for 'ExHTTP 1.0 Control Library(ExHTTP.dll)' server from Tools\Automation Server...
http := IHTTP{"Exontrol.HTTP"}
oDCOCX_Exontrol1:PictureDisplay := LowerRight
oDCOCX_Exontrol1:Picture := http:[GETImage,"https://exontrol.com/images/exontrol.png"]
PowerBuilder
OleObject http,oGrid
oGrid = ole_1.Object
http = CREATE OLEObject
http.ConnectToNewObject("Exontrol.HTTP")
oGrid.PictureDisplay = 34
oGrid.Picture = http.GETImage("https://exontrol.com/images/exontrol.png")
Visual DataFlex
Procedure OnCreate Forward Send OnCreate Variant http Get Comcreateobject "Exontrol.HTTP" to http Set ComPictureDisplay to OLELowerRight Set ComPicture to http End_Procedure
XBase++
#include "AppEvent.ch"
#include "ActiveX.ch"
PROCEDURE Main
LOCAL oForm
LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL
LOCAL oGrid
LOCAL http
oForm := XbpDialog():new( AppDesktop() )
oForm:drawingArea:clipChildren := .T.
oForm:create( ,,{100,100}, {640,480},, .F. )
oForm:close := {|| PostAppEvent( xbeP_Quit )}
oGrid := XbpActiveXControl():new( oForm:drawingArea )
oGrid:CLSID := "Exontrol.Grid.1" /*{101EE60F-7B07-48B0-A13A-F32BAE7DA165}*/
oGrid:create(,, {10,60},{610,370} )
http := CreateObject("Exontrol.HTTP")
oGrid:PictureDisplay := 34/*LowerRight*/
oGrid:Picture := http:GETImage("https://exontrol.com/images/exontrol.png")
oForm:Show()
DO WHILE nEvent != xbeP_Quit
nEvent := AppEvent( @mp1, @mp2, @oXbp )
oXbp:handleEvent( nEvent, mp1, mp2 )
ENDDO
RETURN