OLE Object Title

OLE Object Title

Postby cdmmaui » Wed May 17, 2017 7: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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: OLE Object Title

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: OLE Object Title

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Silvio.Falconi and 50 guests