summaryrefslogtreecommitdiff
path: root/examples/apps/uidesigner/vfdwidgetclass.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-09-07 14:56:47 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-09-07 14:56:47 +0000
commit1e7af73a67cff669d2b5801f5097e71b30673adc (patch)
tree1a8a9dc39e475c9e4c429f8d7ef59c729dc44f5d /examples/apps/uidesigner/vfdwidgetclass.pas
parentc05c7618ddfcf94117efaae8c83dfa2738f5d0a3 (diff)
downloadfpGUI-1e7af73a67cff669d2b5801f5097e71b30673adc.tar.xz
GFX: Added support for handle component creation at runtime correct
while the parent component is already visible. * GUI: Introduced the usage of ComponentState so that the components react correctly in the GUI Designer. Not all components are tested yet. * GUI Designer almost paints the designed form correctly. When placing a component, they are invisible, but as soon as you resize them, they are painted correctly. This is still work
Diffstat (limited to 'examples/apps/uidesigner/vfdwidgetclass.pas')
-rw-r--r--examples/apps/uidesigner/vfdwidgetclass.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/apps/uidesigner/vfdwidgetclass.pas b/examples/apps/uidesigner/vfdwidgetclass.pas
index 94751810..39b5493b 100644
--- a/examples/apps/uidesigner/vfdwidgetclass.pas
+++ b/examples/apps/uidesigner/vfdwidgetclass.pas
@@ -116,6 +116,7 @@ end;
function TVFDWidgetClass.CreateWidget(AOwner: TComponent): TfpgWidget;
begin
Result := WidgetClass.Create(AOwner);
+ Include(Result.ComponentState, csDesigning);
end;
destructor TVFDWidgetClass.Destroy;