You've already forked lazarus-ccr
* Update Unicode Demo: replace TNotebook by TPageControl + minor improvements
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1487 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3,21 +3,25 @@ object MainForm: TMainForm
|
|||||||
Height = 504
|
Height = 504
|
||||||
Top = 166
|
Top = 166
|
||||||
Width = 613
|
Width = 613
|
||||||
Caption = 'Unicode Demo'
|
Caption = 'VirtualTreeView Unicode Demo'
|
||||||
ClientHeight = 504
|
ClientHeight = 504
|
||||||
ClientWidth = 613
|
ClientWidth = 613
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
LCLVersion = '0.9.27'
|
Position = poDesktopCenter
|
||||||
object MainNotebook: TNotebook
|
LCLVersion = '0.9.31'
|
||||||
|
object MainNotebook: TPageControl
|
||||||
|
Left = 0
|
||||||
Height = 504
|
Height = 504
|
||||||
|
Top = 0
|
||||||
Width = 613
|
Width = 613
|
||||||
|
ActivePage = WelcomePage
|
||||||
Align = alClient
|
Align = alClient
|
||||||
PageIndex = 0
|
TabIndex = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object WelcomePage: TPage
|
object WelcomePage: TTabSheet
|
||||||
Caption = 'Welcome Translations'
|
Caption = 'Welcome Translations'
|
||||||
ClientWidth = 605
|
|
||||||
ClientHeight = 478
|
ClientHeight = 478
|
||||||
|
ClientWidth = 605
|
||||||
object WelcomeTree: TVirtualStringTree
|
object WelcomeTree: TVirtualStringTree
|
||||||
Left = 3
|
Left = 3
|
||||||
Height = 444
|
Height = 444
|
||||||
@ -25,10 +29,11 @@ object MainForm: TMainForm
|
|||||||
Width = 599
|
Width = 599
|
||||||
Align = alClient
|
Align = alClient
|
||||||
BorderSpacing.Around = 3
|
BorderSpacing.Around = 3
|
||||||
BorderStyle = bsSingle
|
|
||||||
DefaultText = 'Node'
|
DefaultText = 'Node'
|
||||||
|
Header.AutoSizeIndex = 0
|
||||||
Header.Columns = <
|
Header.Columns = <
|
||||||
item
|
item
|
||||||
|
Position = 0
|
||||||
Text = 'Language'
|
Text = 'Language'
|
||||||
Width = 200
|
Width = 200
|
||||||
end
|
end
|
||||||
@ -37,13 +42,16 @@ object MainForm: TMainForm
|
|||||||
Text = 'Translation'
|
Text = 'Translation'
|
||||||
Width = 200
|
Width = 200
|
||||||
end>
|
end>
|
||||||
|
Header.DefaultHeight = 17
|
||||||
Header.Options = [hoColumnResize, hoDrag, hoVisible]
|
Header.Options = [hoColumnResize, hoDrag, hoVisible]
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
OnFreeNode = WelcomeTreeFreeNode
|
OnFreeNode = WelcomeTreeFreeNode
|
||||||
OnGetText = WelcomeTreeGetText
|
OnGetText = WelcomeTreeGetText
|
||||||
end
|
end
|
||||||
object WelcomeTopPanel: TPanel
|
object WelcomeTopPanel: TPanel
|
||||||
|
Left = 0
|
||||||
Height = 28
|
Height = 28
|
||||||
|
Top = 0
|
||||||
Width = 605
|
Width = 605
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelOuter = bvNone
|
BevelOuter = bvNone
|
||||||
@ -63,19 +71,20 @@ object MainForm: TMainForm
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object LCLTextPage: TPage
|
object LCLTextPage: TTabSheet
|
||||||
Caption = 'LCL Text'
|
Caption = 'LCL Text'
|
||||||
ClientWidth = 605
|
|
||||||
ClientHeight = 478
|
ClientHeight = 478
|
||||||
|
ClientWidth = 605
|
||||||
object LCLTextTree: TVirtualStringTree
|
object LCLTextTree: TVirtualStringTree
|
||||||
Left = 3
|
Left = 3
|
||||||
Height = 440
|
Height = 440
|
||||||
Top = 3
|
Top = 3
|
||||||
Width = 272
|
Width = 272
|
||||||
BorderSpacing.Around = 3
|
BorderSpacing.Around = 3
|
||||||
BorderStyle = bsSingle
|
|
||||||
DefaultText = 'Node'
|
DefaultText = 'Node'
|
||||||
|
Header.AutoSizeIndex = 0
|
||||||
Header.Columns = <>
|
Header.Columns = <>
|
||||||
|
Header.DefaultHeight = 17
|
||||||
Header.MainColumn = -1
|
Header.MainColumn = -1
|
||||||
Header.Options = [hoColumnResize, hoDrag]
|
Header.Options = [hoColumnResize, hoDrag]
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
@ -95,7 +104,7 @@ object MainForm: TMainForm
|
|||||||
end
|
end
|
||||||
object TextEdit: TEdit
|
object TextEdit: TEdit
|
||||||
Left = 284
|
Left = 284
|
||||||
Height = 23
|
Height = 21
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 184
|
Width = 184
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
@ -172,6 +181,8 @@ object MainForm: TMainForm
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
object FontDialog1: TFontDialog
|
object FontDialog1: TFontDialog
|
||||||
|
MinFontSize = 0
|
||||||
|
MaxFontSize = 0
|
||||||
left = 136
|
left = 136
|
||||||
top = 24
|
top = 24
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
||||||
ExtCtrls, VirtualTrees, StdCtrls, LCLProc;
|
ExtCtrls, VirtualTrees, StdCtrls, LCLProc, ComCtrls;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -24,12 +24,12 @@ type
|
|||||||
TextComboBox: TComboBox;
|
TextComboBox: TComboBox;
|
||||||
TextEdit: TEdit;
|
TextEdit: TEdit;
|
||||||
FontDialog1: TFontDialog;
|
FontDialog1: TFontDialog;
|
||||||
MainNotebook: TNotebook;
|
MainNotebook: TPageControl;
|
||||||
LCLTextPage: TPage;
|
LCLTextPage: TTabsheet;
|
||||||
LCLTextTree: TVirtualStringTree;
|
LCLTextTree: TVirtualStringTree;
|
||||||
WelcomeTopPanel: TPanel;
|
WelcomeTopPanel: TPanel;
|
||||||
WelcomeTree: TVirtualStringTree;
|
WelcomeTree: TVirtualStringTree;
|
||||||
WelcomePage: TPage;
|
WelcomePage: TTabsheet;
|
||||||
procedure AddComboTextButtonClick(Sender: TObject);
|
procedure AddComboTextButtonClick(Sender: TObject);
|
||||||
procedure AddEditTextButtonClick(Sender: TObject);
|
procedure AddEditTextButtonClick(Sender: TObject);
|
||||||
procedure AddListTextButtonClick(Sender: TObject);
|
procedure AddListTextButtonClick(Sender: TObject);
|
||||||
|
@ -1,21 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
|
<Version Value="9"/>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Version Value="7"/>
|
|
||||||
<General>
|
<General>
|
||||||
<Flags>
|
|
||||||
<AlwaysBuild Value="False"/>
|
|
||||||
<LRSInOutputDirectory Value="False"/>
|
|
||||||
</Flags>
|
|
||||||
<SessionStorage Value="InProjectDir"/>
|
<SessionStorage Value="InProjectDir"/>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
<TargetFileExt Value=".exe"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
</General>
|
</General>
|
||||||
<VersionInfo>
|
<VersionInfo>
|
||||||
<ProjectVersion Value=""/>
|
<StringTable ProductVersion=""/>
|
||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
|
<BuildModes Count="1">
|
||||||
|
<Item1 Name="default" Default="True"/>
|
||||||
|
</BuildModes>
|
||||||
<PublishOptions>
|
<PublishOptions>
|
||||||
<Version Value="2"/>
|
<Version Value="2"/>
|
||||||
<IgnoreBinaries Value="False"/>
|
<IgnoreBinaries Value="False"/>
|
||||||
@ -53,8 +52,16 @@
|
|||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="8"/>
|
<Version Value="10"/>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
|
<SearchPaths>
|
||||||
|
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||||
|
</SearchPaths>
|
||||||
|
<Parsing>
|
||||||
|
<SyntaxOptions>
|
||||||
|
<UseAnsiStrings Value="False"/>
|
||||||
|
</SyntaxOptions>
|
||||||
|
</Parsing>
|
||||||
<Linking>
|
<Linking>
|
||||||
<Options>
|
<Options>
|
||||||
<Win32>
|
<Win32>
|
||||||
@ -63,6 +70,9 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
|
<CompilerMessages>
|
||||||
|
<UseMsgFile Value="True"/>
|
||||||
|
</CompilerMessages>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
|
@ -8,12 +8,12 @@ uses
|
|||||||
{$ENDIF}{$ENDIF}
|
{$ENDIF}{$ENDIF}
|
||||||
Interfaces, // this includes the LCL widgetset
|
Interfaces, // this includes the LCL widgetset
|
||||||
Forms
|
Forms
|
||||||
{ you can add units after this }, fMain, LResources, virtualtreeview_package;
|
{ you can add units after this }, fMain;
|
||||||
|
|
||||||
{$IFDEF WINDOWS}{$R unicode.rc}{$ENDIF}
|
|
||||||
|
{$R *.res}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{$I unicode.lrs}
|
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.CreateForm(TMainForm, MainForm);
|
Application.CreateForm(TMainForm, MainForm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
|
Reference in New Issue
Block a user