You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Added Views Framework support #244
Added ToolBoxBrowser2 demo Added TCEFBrowserViewComponent. Added TCEFLabelButtonComponent. Added TCEFMenuButtonComponent. Added TCEFPanelComponent. Added TCEFTextfieldComponent. Added TCEFScrollViewComponent. Added TCEFWindowComponent.
This commit is contained in:
@ -98,10 +98,19 @@ end;
|
||||
class function TCefMenuButtonRef.CreateMenuButton(const delegate : ICefMenuButtonDelegate;
|
||||
const text : ustring): ICefMenuButton;
|
||||
var
|
||||
TempText : TCefString;
|
||||
TempText : TCefString;
|
||||
TempButton : PCefMenuButton;
|
||||
begin
|
||||
TempText := CefString(text);
|
||||
UnWrap(cef_menu_button_create(CefGetData(delegate), @TempText));
|
||||
Result := nil;
|
||||
|
||||
if (delegate <> nil) then
|
||||
begin
|
||||
TempText := CefString(text);
|
||||
TempButton := cef_menu_button_create(CefGetData(delegate), @TempText);
|
||||
|
||||
if (TempButton <> nil) then
|
||||
Result := Create(TempButton) as ICefMenuButton;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user