mirror of https://gitlab.com/basile.b/dexed.git
added a 3rd option container kind
This commit is contained in:
parent
55ce01af2d
commit
1d26658a7b
|
@ -140,8 +140,10 @@ type
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
// the option editor use this value as a hint to cast and display an option container
|
||||||
TOptionEditorKind = (oekGeneric, oekForm);
|
TOptionEditorKind = (oekGeneric, oekForm, oekControl);
|
||||||
|
// event generated by the option editor and passed to an ICEEditableOptions.
|
||||||
|
// the oeeChange event only happends if the container is oekGeneric.
|
||||||
TOptionEditorEvent = (oeeCancel, oeeAccept, oeeChange);
|
TOptionEditorEvent = (oeeCancel, oeeAccept, oeeChange);
|
||||||
(**
|
(**
|
||||||
* An implementer can expose some options to be edited in a dedicated widget.
|
* An implementer can expose some options to be edited in a dedicated widget.
|
||||||
|
|
|
@ -119,12 +119,17 @@ begin
|
||||||
dt := PCategoryData(selCat.Selected.Data);
|
dt := PCategoryData(selCat.Selected.Data);
|
||||||
if dt^.container = nil then exit;
|
if dt^.container = nil then exit;
|
||||||
case dt^.kind of
|
case dt^.kind of
|
||||||
|
oekControl:
|
||||||
|
begin
|
||||||
|
TWinControl(dt^.container).Parent := pnlEd;
|
||||||
|
TWinControl(dt^.container).Align := alClient;
|
||||||
|
end;
|
||||||
oekForm:
|
oekForm:
|
||||||
begin
|
begin
|
||||||
TForm(dt^.container).Parent := pnlEd;
|
TCustomForm(dt^.container).Parent := pnlEd;
|
||||||
TForm(dt^.container).Align := alClient;
|
TCustomForm(dt^.container).Align := alClient;
|
||||||
//TForm(dt^.container).BorderIcons:= [];
|
TCustomForm(dt^.container).BorderIcons:= [];
|
||||||
//TForm(dt^.container).BorderStyle:= bsNone;
|
TCustomForm(dt^.container).BorderStyle:= bsNone;
|
||||||
end;
|
end;
|
||||||
oekGeneric:
|
oekGeneric:
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue