mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:59:07 +02:00
published some Font properties, that now works under win32 and gtk1
git-svn-id: trunk@9165 -
This commit is contained in:
parent
422e644e54
commit
96da86f260
@ -381,7 +381,7 @@ end;
|
|||||||
|
|
||||||
procedure TXMLObjectWriter.WriteMethodName(const Name: String);
|
procedure TXMLObjectWriter.WriteMethodName(const Name: String);
|
||||||
begin
|
begin
|
||||||
GetPropertyElement('method-name')['value'] := Name;
|
GetPropertyElement('method')['value'] := Name;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TXMLObjectWriter.WriteSet(Value: LongInt; SetType: Pointer);
|
procedure TXMLObjectWriter.WriteSet(Value: LongInt; SetType: Pointer);
|
||||||
@ -605,7 +605,9 @@ begin
|
|||||||
Result:=vaTrue
|
Result:=vaTrue
|
||||||
else
|
else
|
||||||
Result:=vaFalse;
|
Result:=vaFalse;
|
||||||
end else if FElement.NodeName='set' then
|
end else if FElement.NodeName='method' then
|
||||||
|
Result:=vaIdent
|
||||||
|
else if FElement.NodeName='set' then
|
||||||
Result:=vaSet
|
Result:=vaSet
|
||||||
else if FElement.NodeName='extended' then
|
else if FElement.NodeName='extended' then
|
||||||
Result:=vaExtended
|
Result:=vaExtended
|
||||||
|
@ -29,16 +29,6 @@ object StreamAsXMLForm: TStreamAsXMLForm
|
|||||||
Top = 14
|
Top = 14
|
||||||
Width = 75
|
Width = 75
|
||||||
end
|
end
|
||||||
object DemoGroupBox: TGroupBox
|
|
||||||
Caption = 'DemoGroupBox'
|
|
||||||
ClientHeight = 150
|
|
||||||
ClientWidth = 353
|
|
||||||
TabOrder = 1
|
|
||||||
Left = 97
|
|
||||||
Height = 167
|
|
||||||
Top = -1
|
|
||||||
Width = 357
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
object DestinationGroupBox: TGroupBox
|
object DestinationGroupBox: TGroupBox
|
||||||
Caption = 'DestinationGroupBox'
|
Caption = 'DestinationGroupBox'
|
||||||
|
@ -10,10 +10,7 @@ LazarusResources.Add('TStreamAsXMLForm','FORMDATA',[
|
|||||||
+'TabOrder'#2#0#4'Left'#2#16#6'Height'#3#190#0#3'Top'#2#16#5'Width'#3#213#1#0
|
+'TabOrder'#2#0#4'Left'#2#16#6'Height'#3#190#0#3'Top'#2#16#5'Width'#3#213#1#0
|
||||||
+#7'TButton'#7'Button1'#25'BorderSpacing.InnerBorder'#2#2#7'Caption'#6#7'Butt'
|
+#7'TButton'#7'Button1'#25'BorderSpacing.InnerBorder'#2#2#7'Caption'#6#7'Butt'
|
||||||
+'on1'#8'TabOrder'#2#0#4'Left'#2#12#6'Height'#2#25#3'Top'#2#14#5'Width'#2'K'#0
|
+'on1'#8'TabOrder'#2#0#4'Left'#2#12#6'Height'#2#25#3'Top'#2#14#5'Width'#2'K'#0
|
||||||
+#0#9'TGroupBox'#12'DemoGroupBox'#7'Caption'#6#12'DemoGroupBox'#12'ClientHeig'
|
+#0#0#9'TGroupBox'#19'DestinationGroupBox'#7'Caption'#6#19'DestinationGroupBo'
|
||||||
+'ht'#3#150#0#11'ClientWidth'#3'a'#1#8'TabOrder'#2#1#4'Left'#2'a'#6'Height'#3
|
+'x'#12'ClientHeight'#3#203#0#11'ClientWidth'#3#211#1#8'TabOrder'#2#1#4'Left'
|
||||||
+#167#0#3'Top'#2#255#5'Width'#3'e'#1#0#0#0#9'TGroupBox'#19'DestinationGroupBo'
|
+#2#16#6'Height'#3#220#0#3'Top'#3#210#0#5'Width'#3#215#1#0#0#0
|
||||||
+'x'#7'Caption'#6#19'DestinationGroupBox'#12'ClientHeight'#3#203#0#11'ClientW'
|
|
||||||
+'idth'#3#211#1#8'TabOrder'#2#1#4'Left'#2#16#6'Height'#3#220#0#3'Top'#3#210#0
|
|
||||||
+#5'Width'#3#215#1#0#0#0
|
|
||||||
]);
|
]);
|
||||||
|
@ -50,6 +50,13 @@ type
|
|||||||
property MyEnum: TMyEnum read FMyEnum write FMyEnum;
|
property MyEnum: TMyEnum read FMyEnum write FMyEnum;
|
||||||
property MyCollection: TCollection read FMyCollection write FMyCollection;
|
property MyCollection: TCollection read FMyCollection write FMyCollection;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{ TMyGroupBox }
|
||||||
|
|
||||||
|
TMyGroupBox = class(TGroupBox)
|
||||||
|
published
|
||||||
|
procedure AnEvent(Sender: TObject);
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TStreamAsXMLForm }
|
{ TStreamAsXMLForm }
|
||||||
@ -57,7 +64,6 @@ type
|
|||||||
TStreamAsXMLForm = class(TForm)
|
TStreamAsXMLForm = class(TForm)
|
||||||
Button1: TButton;
|
Button1: TButton;
|
||||||
SourceGroupBox: TGroupBox;
|
SourceGroupBox: TGroupBox;
|
||||||
DemoGroupBox: TGroupBox;
|
|
||||||
DestinationGroupBox: TGroupBox;
|
DestinationGroupBox: TGroupBox;
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
@ -65,6 +71,8 @@ type
|
|||||||
procedure SetFilename(const AValue: string);
|
procedure SetFilename(const AValue: string);
|
||||||
public
|
public
|
||||||
MyComponent: TMyComponent;
|
MyComponent: TMyComponent;
|
||||||
|
DemoGroupBox: TMyGroupBox;
|
||||||
|
|
||||||
procedure WriteComponents;
|
procedure WriteComponents;
|
||||||
procedure ReadComponents;
|
procedure ReadComponents;
|
||||||
procedure OnFindComponentClass(Reader: TReader; const AClassName: string;
|
procedure OnFindComponentClass(Reader: TReader; const AClassName: string;
|
||||||
@ -208,6 +216,14 @@ begin
|
|||||||
Name:='MySubComponent';
|
Name:='MySubComponent';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
DemoGroupBox:=TMyGroupBox.Create(Self);
|
||||||
|
with DemoGroupBox do begin
|
||||||
|
Name:='DemoGroupBox';
|
||||||
|
SetBounds(100,2,320,180);
|
||||||
|
Parent:=SourceGroupBox;
|
||||||
|
OnClick:=@DemoGroupBox.AnEvent;
|
||||||
|
end;
|
||||||
|
|
||||||
// create nested controls
|
// create nested controls
|
||||||
DemoGroupBox_1:=TGroupBox.Create(DemoGroupBox);
|
DemoGroupBox_1:=TGroupBox.Create(DemoGroupBox);
|
||||||
with DemoGroupBox_1 do begin
|
with DemoGroupBox_1 do begin
|
||||||
@ -309,7 +325,9 @@ begin
|
|||||||
else if CompareText(AClassName,'TButton')=0 then
|
else if CompareText(AClassName,'TButton')=0 then
|
||||||
ComponentClass:=TButton
|
ComponentClass:=TButton
|
||||||
else if CompareText(AClassName,'TMyComponent')=0 then
|
else if CompareText(AClassName,'TMyComponent')=0 then
|
||||||
ComponentClass:=TMyComponent;
|
ComponentClass:=TMyComponent
|
||||||
|
else if CompareText(AClassName,'TMyGroupBox')=0 then
|
||||||
|
ComponentClass:=TMyGroupBox;
|
||||||
DebugLn('TStreamAsXMLForm.OnFindComponentClass ',AClassName,' ',dbgs(ComponentClass));
|
DebugLn('TStreamAsXMLForm.OnFindComponentClass ',AClassName,' ',dbgs(ComponentClass));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -354,6 +372,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{ TMyGroupBox }
|
||||||
|
|
||||||
|
procedure TMyGroupBox.AnEvent(Sender: TObject);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
{$I mainunit.lrs}
|
{$I mainunit.lrs}
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// Created by Svn2RevisionInc
|
// Created by Svn2RevisionInc
|
||||||
const RevisionStr = '8897:8904M';
|
const RevisionStr = '9007';
|
||||||
|
@ -132,6 +132,7 @@ type
|
|||||||
property OnMouseMove;
|
property OnMouseMove;
|
||||||
property OnMouseUp;
|
property OnMouseUp;
|
||||||
property OnResize;
|
property OnResize;
|
||||||
|
property ParentFont;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
property PopupMenu;
|
property PopupMenu;
|
||||||
property ShowHint;
|
property ShowHint;
|
||||||
|
@ -694,6 +694,7 @@ type
|
|||||||
property Constraints;
|
property Constraints;
|
||||||
property Ctl3D;
|
property Ctl3D;
|
||||||
property Enabled;
|
property Enabled;
|
||||||
|
property Font;
|
||||||
property ItemIndex;
|
property ItemIndex;
|
||||||
property Items;
|
property Items;
|
||||||
property OnChangeBounds;
|
property OnChangeBounds;
|
||||||
@ -708,6 +709,7 @@ type
|
|||||||
property OnMouseMove;
|
property OnMouseMove;
|
||||||
property OnMouseUp;
|
property OnMouseUp;
|
||||||
property OnResize;
|
property OnResize;
|
||||||
|
property ParentFont;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
@ -782,6 +784,7 @@ type
|
|||||||
property Constraints;
|
property Constraints;
|
||||||
property Ctl3D;
|
property Ctl3D;
|
||||||
property Enabled;
|
property Enabled;
|
||||||
|
property Font;
|
||||||
property Items;
|
property Items;
|
||||||
property OnChangeBounds;
|
property OnChangeBounds;
|
||||||
property OnClick;
|
property OnClick;
|
||||||
@ -796,6 +799,7 @@ type
|
|||||||
property OnMouseMove;
|
property OnMouseMove;
|
||||||
property OnMouseUp;
|
property OnMouseUp;
|
||||||
property OnResize;
|
property OnResize;
|
||||||
|
property ParentFont;
|
||||||
property ParentColor;
|
property ParentColor;
|
||||||
property ParentCtl3D;
|
property ParentCtl3D;
|
||||||
property ParentShowHint;
|
property ParentShowHint;
|
||||||
|
Loading…
Reference in New Issue
Block a user