I have components based on TAdvPanel. As of version 2.5.10.5, there is a problem.
TjstDatePicker = class (TAdvPanel)
if I change it to
TjstDatePicker = class (TPanel)
so there is no problem. I enclose a list of errors.
Control 'TjstDatePicker($0304DFC0)' has no parent window. Path:
AppBuilder
^PanelFrame
^DockBottomPanel
^EditWindow_0
^PanelContainsMiddleStuff
^Panel1
^ModuleEditorsContainer
^pnlBottomCode
^CodePanel
^EditorPanel
^EditorFormDesigner
^TFormContainerForm($28F8A470)
^Form1
.TjstDatePicker($0304DFC0).
[50CF1803]{vcl270.bpl } Vcl.Controls.InvalidControlOperation (Line 3360, "Vcl.Controls.pas" + 1) + $63
[50CFA6FD]{vcl270.bpl } Vcl.Controls.TWinControl.CreateWnd (Line 9727, "Vcl.Controls.pas" + 13) + $7
[2527A46E]{TMSVCLUIPackPkgDXE13.bpl} Advpanel.TCustomAdvPanel.CreateWnd + $6
[50CFAC7A]{vcl270.bpl } Vcl.Controls.TWinControl.CreateHandle (Line 9908, "Vcl.Controls.pas" + 3) + $4
I forgot about the problematic place
procedure TjstDatePicker.CreatePanelBasic;
begin
FPanelBasic := TPanel.Create(Self);
FPanelBasic.Parent := Self;
(again) insufficient information / details.
Cannot be reproduced.
Test code
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, AdvPanel;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
TMyPanel = class(TAdvPanel)
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
mp: TMyPanel;
begin
mp := TMyPanel.Create(Self);
mp.Parent := Self;
end;
works without issues.
I sent everything I have.
Your demo is not a component, but a class!
I'm just giving up. With TPanel OK, with TAdvPanel NO!
Will it not be something like "
HTML POPUP "Invalid window handle"
I sent you via direct email a screenshot showing this working.
After cleanup up your erratic code, this works here as expected.
We created a project with the HTMLPopup as well and no problem can be seen in this project.