You've already forked lazarus-ccr
* Use OpenURL, adjust toolbar style and clear WindowsXPStyleDemo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1088 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -11,7 +11,7 @@ object WindowsXPForm: TWindowsXPForm
|
|||||||
Font.Height = -13
|
Font.Height = -13
|
||||||
Font.Name = 'Microsoft Sans Serif'
|
Font.Name = 'Microsoft Sans Serif'
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
LCLVersion = '0.9.27'
|
LCLVersion = '0.9.29'
|
||||||
object Label1: TLabel
|
object Label1: TLabel
|
||||||
Left = 575
|
Left = 575
|
||||||
Height = 80
|
Height = 80
|
||||||
@@ -54,11 +54,11 @@ object WindowsXPForm: TWindowsXPForm
|
|||||||
end
|
end
|
||||||
object XPTree: TVirtualStringTree
|
object XPTree: TVirtualStringTree
|
||||||
Cursor = 63
|
Cursor = 63
|
||||||
|
Left = 0
|
||||||
Height = 408
|
Height = 408
|
||||||
Top = 40
|
Top = 40
|
||||||
Width = 554
|
Width = 554
|
||||||
AutoScrollDelay = 500
|
AutoScrollDelay = 500
|
||||||
BorderStyle = bsSingle
|
|
||||||
ButtonFillMode = fmShaded
|
ButtonFillMode = fmShaded
|
||||||
CheckImageKind = ckXP
|
CheckImageKind = ckXP
|
||||||
ClipboardFormats.Strings = (
|
ClipboardFormats.Strings = (
|
||||||
@@ -80,6 +80,7 @@ object WindowsXPForm: TWindowsXPForm
|
|||||||
item
|
item
|
||||||
Color = 16250871
|
Color = 16250871
|
||||||
Options = [coAllowClick, coEnabled, coParentBidiMode, coResizable, coShowDropMark, coVisible]
|
Options = [coAllowClick, coEnabled, coParentBidiMode, coResizable, coShowDropMark, coVisible]
|
||||||
|
Position = 0
|
||||||
Text = 'Name'
|
Text = 'Name'
|
||||||
Width = 200
|
Width = 200
|
||||||
end
|
end
|
||||||
@@ -94,6 +95,7 @@ object WindowsXPForm: TWindowsXPForm
|
|||||||
Text = 'Type'
|
Text = 'Type'
|
||||||
Width = 100
|
Width = 100
|
||||||
end>
|
end>
|
||||||
|
Header.DefaultHeight = 17
|
||||||
Header.Font.CharSet = ANSI_CHARSET
|
Header.Font.CharSet = ANSI_CHARSET
|
||||||
Header.Font.Height = -12
|
Header.Font.Height = -12
|
||||||
Header.Font.Name = 'Microsoft Sans Serif'
|
Header.Font.Name = 'Microsoft Sans Serif'
|
||||||
@@ -122,12 +124,15 @@ object WindowsXPForm: TWindowsXPForm
|
|||||||
OnStateChange = XPTreeStateChange
|
OnStateChange = XPTreeStateChange
|
||||||
end
|
end
|
||||||
object ToolBar2: TToolBar
|
object ToolBar2: TToolBar
|
||||||
|
Left = 0
|
||||||
Height = 34
|
Height = 34
|
||||||
|
Top = 0
|
||||||
Width = 839
|
Width = 839
|
||||||
ButtonHeight = 32
|
ButtonHeight = 32
|
||||||
ButtonWidth = 32
|
ButtonWidth = 32
|
||||||
Caption = 'ToolBar2'
|
Caption = 'ToolBar2'
|
||||||
Images = SmallImages
|
Images = SmallImages
|
||||||
|
List = True
|
||||||
ShowCaptions = True
|
ShowCaptions = True
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
object ToolButton7: TToolButton
|
object ToolButton7: TToolButton
|
||||||
@@ -137,44 +142,45 @@ object WindowsXPForm: TWindowsXPForm
|
|||||||
Style = tbsDropDown
|
Style = tbsDropDown
|
||||||
end
|
end
|
||||||
object ToolButton10: TToolButton
|
object ToolButton10: TToolButton
|
||||||
Left = 41
|
Left = 47
|
||||||
Top = 2
|
Top = 2
|
||||||
ImageIndex = 10
|
ImageIndex = 10
|
||||||
Style = tbsDropDown
|
Style = tbsDropDown
|
||||||
end
|
end
|
||||||
object ToolButton11: TToolButton
|
object ToolButton11: TToolButton
|
||||||
Left = 81
|
Left = 93
|
||||||
Top = 2
|
Top = 2
|
||||||
ImageIndex = 18
|
ImageIndex = 18
|
||||||
end
|
end
|
||||||
object ToolButton12: TToolButton
|
object ToolButton12: TToolButton
|
||||||
Left = 113
|
Left = 127
|
||||||
Top = 2
|
Top = 2
|
||||||
ImageIndex = 14
|
ImageIndex = 14
|
||||||
end
|
end
|
||||||
object ToolButton13: TToolButton
|
object ToolButton13: TToolButton
|
||||||
Left = 145
|
Left = 161
|
||||||
Top = 2
|
Top = 2
|
||||||
ImageIndex = 21
|
ImageIndex = 21
|
||||||
end
|
end
|
||||||
object ToolButton14: TToolButton
|
object ToolButton14: TToolButton
|
||||||
Left = 177
|
Left = 195
|
||||||
Top = 2
|
Top = 2
|
||||||
ImageIndex = 8
|
ImageIndex = 8
|
||||||
Style = tbsDropDown
|
Style = tbsDropDown
|
||||||
end
|
end
|
||||||
object ToolButton15: TToolButton
|
object ToolButton15: TToolButton
|
||||||
Left = 217
|
Left = 241
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 8
|
Width = 8
|
||||||
Caption = 'ToolButton15'
|
Caption = 'ToolButton15'
|
||||||
Style = tbsSeparator
|
Style = tbsSeparator
|
||||||
end
|
end
|
||||||
object ToolButton16: TToolButton
|
object ToolButton16: TToolButton
|
||||||
Left = 225
|
Left = 249
|
||||||
Top = 2
|
Top = 2
|
||||||
Caption = 'Click here to print the treeview.'
|
Caption = 'Click here to print the treeview.'
|
||||||
ImageIndex = 24
|
ImageIndex = 24
|
||||||
|
OnClick = ToolButton9Click
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object LargeImages: TImageList
|
object LargeImages: TImageList
|
||||||
|
@@ -8,17 +8,7 @@ unit WindowsXPStyleDemo;
|
|||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
{$ifdef COMPILER_7_UP}
|
|
||||||
// For some things to work we need code, which is classified as being unsafe for .NET.
|
|
||||||
{$warn UNSAFE_TYPE off}
|
|
||||||
{$warn UNSAFE_CAST off}
|
|
||||||
{$warn UNSAFE_CODE off}
|
|
||||||
{$endif COMPILER_7_UP}
|
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$ifdef VER140}
|
|
||||||
Variants,
|
|
||||||
{$endif}
|
|
||||||
LCLIntf, SysUtils, Classes, Graphics, Controls, Forms,
|
LCLIntf, SysUtils, Classes, Graphics, Controls, Forms,
|
||||||
Dialogs, VirtualTrees, ComCtrls, Menus, StdCtrls,
|
Dialogs, VirtualTrees, ComCtrls, Menus, StdCtrls,
|
||||||
LResources, Printers, PrintersDlgs, ExtCtrls;
|
LResources, Printers, PrintersDlgs, ExtCtrls;
|
||||||
@@ -71,9 +61,6 @@ var
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$ifdef Windows}
|
|
||||||
ShellAPI,
|
|
||||||
{$endif}
|
|
||||||
Main, States;
|
Main, States;
|
||||||
|
|
||||||
|
|
||||||
@@ -265,8 +252,7 @@ end;
|
|||||||
procedure TWindowsXPForm.Label4Click(Sender: TObject);
|
procedure TWindowsXPForm.Label4Click(Sender: TObject);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
//todo
|
OpenURL('http://groups.yahoo.com/group/VirtualExplorerTree');
|
||||||
//ShellExecute(0, 'open', 'http://groups.yahoo.com/group/VirtualExplorerTree', nil, nil, SW_SHOW);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -274,8 +260,8 @@ end;
|
|||||||
procedure TWindowsXPForm.ToolButton9Click(Sender: TObject);
|
procedure TWindowsXPForm.ToolButton9Click(Sender: TObject);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
//todo
|
//todo: implement Print support in VTV
|
||||||
//if PrintDialog.Execute then
|
//if PrintDialog.Execute then ;
|
||||||
// XPTree.Print(Printer, False);
|
// XPTree.Print(Printer, False);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user