salvadordf/CEF4Delphi

Ask me about using ICefView

sxmxta opened this issue · 1 comments

Hello @salvadordf

I've tried to use ICefView, ICefButton, ICefMenuButton, and I'm using them as UI widgets, I think they can be used on the screen window, like LCL widgets

But I don't understand them, they don't appear in the window, and I can't show them in ViewFramework.

Can you provide an example for reference? Just provide how they can be used.

Thank you.

Hello,

We have two demos that use the views framework : TinyBrowser and ToolBoxBrowser2. If I remember correctly, TinyBrowser is a translation of cefsimple.

I just created the Views Framework components as TComponent descendants because I haven't investigated how to edit them graphically in the IDE. If you know how to do that, please, let me know! :D

The demos show how to use them when you create them at runtime.

See this graphic to understand their relationship.

Notice that only the components with a CEF creation function are registered in the IDE.

Read the code comments in the uCEFInterfaces unit.

Read the code comments in uCEFBrowserViewComponent, uCEFLabelButtonComponent, uCEFMenuButtonComponent, uCEFPanelComponent, uCEFTextfieldComponent, uCEFScrollViewComponent and uCEFWindowComponent for more information about the registered components.

The official cefclient application has all the code to create all the UI using the views framework but we only have 2 demos at the moment.

If you have more questions, please use our forum.