FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour OLE Object Title
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
OLE Object Title
Posted: Wed May 17, 2017 07:51 PM

Hello Everyone,

Is it possible to set the name of the window that displays Google map
oOle:=CreateObject("InternetExplorer.Application")
oOle:width:=675
oOle:height:=675
oOle:Visible:=.t. // Displays the Browser
oOle:ToolBar:=.f. // Disables the toolbar
oOle:StatusBar:=.f. // Disables status bar
oOle:MenuBar:=.f. // Disables the menu bar
oOle:Navigate(cMapFile) // Open the Webpage
SysRefresh()

Thank you,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: OLE Object Title
Posted: Fri May 19, 2017 10:22 AM
Darrell,

Thankfully, the InternetExplorer.Application COM type exposes a HWND property, which contains the handle to the window.


Try this:

SetWindowText( oOle:HWND, "This is a test" )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: OLE Object Title
Posted: Fri Jun 02, 2017 12:33 AM

Darrell

Have you solved the problem?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion