Skip to content

Commit 93460c4

Browse files
author
joachim.marder
committed
Adapted to V2.0 of Windows Ribbon Framework for Delphi
1 parent 00f01c7 commit 93460c4

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

Samples/Medium Level/01 Simple Ribbon/FMain.dfm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ object FormMain: TFormMain
1313
OldCreateOrder = False
1414
PixelsPerInch = 96
1515
TextHeight = 13
16+
object Ribbon: TUIRibbon
17+
Left = 0
18+
Top = 0
19+
Width = 635
20+
Height = 117
21+
ResourceName = 'SIMPLERIBBON'
22+
end
1623
end

Samples/Medium Level/01 Simple Ribbon/FMain.pas

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ interface
44

55
uses
66
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
7-
Dialogs, UIRibbonForm;
7+
Dialogs, UIRibbon;
88

99
type
10-
TFormMain = class(TUIRibbonForm)
10+
TFormMain = class(TForm)
11+
Ribbon: TUIRibbon;
1112
private
1213
{ Private declarations }
1314
public
14-
{ Public declarations }
15-
class function RibbonResourceName: String; override;
1615
end;
1716

1817
var
@@ -24,9 +23,4 @@ implementation
2423

2524
{ TFormMain }
2625

27-
class function TFormMain.RibbonResourceName: String;
28-
begin
29-
Result := 'SIMPLERIBBON';
30-
end;
31-
3226
end.

Samples/Medium Level/01 Simple Ribbon/SimpleRibbon.dpr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ uses
1010
UIRibbonUtils in '..\..\..\Lib\UIRibbonUtils.pas',
1111
UIRibbonApi in '..\..\..\Lib\UIRibbonApi.pas',
1212
UIRibbonCommands in '..\..\..\Lib\UIRibbonCommands.pas',
13-
WinApiEx in '..\..\..\Lib\WinApiEx.pas';
13+
WinApiEx in '..\..\..\Lib\WinApiEx.pas',
14+
UIRibbonActions in '..\..\..\Lib\UIRibbonActions.pas';
1415

1516
{$R *.res}
1617

Samples/Medium Level/01 Simple Ribbon/SimpleRibbon.dproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
33
<ProjectGuid>{6E0E82F5-3468-4D20-A6F4-9F31565804B1}</ProjectGuid>
4-
<ProjectVersion>14.3</ProjectVersion>
4+
<ProjectVersion>16.0</ProjectVersion>
55
<MainSource>SimpleRibbon.dpr</MainSource>
66
<Config Condition="'$(Config)'==''">Debug</Config>
77
<DCC_DCCCompiler>DCC32</DCC_DCCCompiler>
@@ -43,7 +43,6 @@
4343
<DCC_Platform>x86</DCC_Platform>
4444
</PropertyGroup>
4545
<PropertyGroup Condition="'$(Base_Win32)'!=''">
46-
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
4746
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
4847
<VerInfo_Locale>1033</VerInfo_Locale>
4948
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
@@ -56,7 +55,7 @@
5655
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
5756
<DCC_Define>RELEASE;$(DCC_Define)</DCC_Define>
5857
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
59-
<DCC_DebugInformation>false</DCC_DebugInformation>
58+
6059
</PropertyGroup>
6160
<PropertyGroup Condition="'$(Cfg_2)'!=''">
6261
<BRCC_CompilerToUse>rc</BRCC_CompilerToUse>
-5.16 KB
Binary file not shown.

0 commit comments

Comments
 (0)