Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » problem with IEBrowser from Control4U (Problem using IEBrowser from Control4U)
problem with IEBrowser from Control4U [message #50421] Thu, 25 October 2018 16:20 Go to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Everyone !

Today I'm trying to use InternetExplorerBrowser from Control4U.
Here is my code :
IeController.lay
LAYOUT(IeControllerLayout, 328, 272)
	ITEM(InternetExplorerBrowser, myIe, SetStatus(false).LeftPosZ(16, 296).VSizePosZ(28, 28))
END_LAYOUT

main.cpp
#include "IeController.h"
#include <Controls4U/Controls4U.h>
#include <Controls4U/ActiveX.h>
#include <Controls4U/ActiveX_base.h>
IeController::IeController()
{
	CtrlLayout(*this, "Window title");
	myIe.SetStatus("true");
	myIe.Browse("www.google.fr");

}

GUI_APP_MAIN
{
	IeController().Run();
}


IeController.h
#ifndef _IeController_IeController_h
#define _IeController_IeController_h

#include <CtrlLib/CtrlLib.h>
#include <Controls4U/Controls4U.h>
#include <Controls4U/ActiveX.h>
#include <Controls4U/ActiveX_base.h>
using namespace Upp;

#define LAYOUTFILE <IeController/IeController.lay>
#include <CtrlCore/lay.h>

class IeController : public WithIeControllerLayout<TopWindow> {
	InternetExplorerBrowser ie;
	
public:
	typedef IeController CLASSNAME;
	IeController();
};

#endif


This small code work but my IEBrowser do not appear in my TopWindow (the Control4U_Demo worked perfectly).
Can someone help me guess why the problem occure ?

Thanks in advance, have a good day !
  • Attachment: unknown.png
    (Size: 17.16KB, Downloaded 218 times)
Re: problem with IEBrowser from Control4U [message #50423 is a reply to message #50421] Fri, 26 October 2018 08:47 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hi Xemuth

Oooh, this old code still works!

Please send your demo package in a zip to test it easier.


Best regards
Iñaki
Re: problem with IEBrowser from Control4U [message #50424 is a reply to message #50421] Fri, 26 October 2018 09:41 Go to previous messageGo to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Koldo, thanks for the reply,

here is the demo package I used.

I suspect an non initialisation of ActiveX Controls.
But it seems like I'm doing the same thing than Control4U_Demo.

Thanks in advance.

[Updated on: Fri, 26 October 2018 09:42]

Report message to a moderator

Re: problem with IEBrowser from Control4U [message #50426 is a reply to message #50424] Fri, 26 October 2018 23:26 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Solved.
The detail is that control is started in its constructor.
However then the window is not totally initialized, so control start fails. In fact, myIe.SetStatus(true) returns false.
Here I enclose you the modified version.

index.php?t=getfile&id=5679&private=0


Best regards
Iñaki
Re: problem with IEBrowser from Control4U [message #50430 is a reply to message #50421] Mon, 29 October 2018 08:47 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Koldo,

Thanks a lot, you unlocked me Razz !

Have a good day !
Previous Topic: Control4U issue with IExplorer
Next Topic: Problem with DHCTRL on Windows
Goto Forum:
  


Current Time: Fri Mar 29 09:48:57 CET 2024

Total time taken to generate the page: 0.01863 seconds