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 Go to next message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/34388.png) |
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 241 times)
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Sep 01 07:32:33 CEST 2024
Total time taken to generate the page: 0.04447 seconds
|