Новая иконка приложения
This commit is contained in:
parent
513f5024a6
commit
6550cecc2e
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
||||||
public const string Major = "3";
|
public const string Major = "3";
|
||||||
public const string Minor = "4";
|
public const string Minor = "4";
|
||||||
public const string Build = "2";
|
public const string Build = "2";
|
||||||
public const string Revision = "2000";
|
public const string Revision = "2001";
|
||||||
|
|
||||||
public const string MainVersion = Major + "." + Minor;
|
public const string MainVersion = Major + "." + Minor;
|
||||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%MINOR%=4
|
|
||||||
%REVISION%=2000
|
|
||||||
%COREVERSION%=2
|
%COREVERSION%=2
|
||||||
|
%REVISION%=2001
|
||||||
|
%MINOR%=4
|
||||||
%MAJOR%=3
|
%MAJOR%=3
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
!define VERSION '3.4.2.2000'
|
!define VERSION '3.4.2.2001'
|
||||||
|
|
|
||||||
BIN
VisualPascalABCNET/_ABC13.ico
Normal file
BIN
VisualPascalABCNET/_ABC13.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
|
@ -77,23 +77,31 @@ type
|
||||||
TextLabelT = class(CommonControl)
|
TextLabelT = class(CommonControl)
|
||||||
protected
|
protected
|
||||||
function b: GTextBlock := element as GTextBlock;
|
function b: GTextBlock := element as GTextBlock;
|
||||||
function GetText: string := InvokeString(()->b.Text);
|
|
||||||
procedure SetTextP(t: string) := b.Text := t;
|
|
||||||
procedure SetText(t: string) := Invoke(SetTextP,t);
|
|
||||||
procedure CreateP(Txt: string);
|
procedure CreateP(Txt: string);
|
||||||
begin
|
begin
|
||||||
element := new GTextBlock;
|
var tb := new GTextBlock;
|
||||||
|
element := tb;
|
||||||
//element.Margin := new Thickness(0,0,0,8);
|
//element.Margin := new Thickness(0,0,0,8);
|
||||||
//element.Margin := new Thickness(5,5,5,0);
|
//element.Margin := new Thickness(5,5,5,0);
|
||||||
Text := Txt;
|
Text := Txt;
|
||||||
ActivePanel.Children.Add(b);
|
ActivePanel.Children.Add(b);
|
||||||
end;
|
end;
|
||||||
public
|
procedure CreatePXY(x,y: real; Txt: string);
|
||||||
constructor Create(Txt: string);
|
|
||||||
begin
|
begin
|
||||||
Invoke(CreateP,Txt);
|
var tb := new GTextBlock;
|
||||||
|
element := tb;
|
||||||
|
tb.Background := new SolidColorBrush(Colors.White);
|
||||||
|
tb.FontSize := 20;
|
||||||
|
tb.Opacity := 0.7;
|
||||||
|
Canvas.SetLeft(element,x);
|
||||||
|
Canvas.SetTop(element,y);
|
||||||
|
Text := Txt;
|
||||||
|
ActivePanel.Children.Add(b);
|
||||||
end;
|
end;
|
||||||
property Text: string read GetText write SetText;
|
public
|
||||||
|
constructor Create(Txt: string) := Invoke(CreateP,Txt);
|
||||||
|
constructor Create(x,y: real; Txt: string) := Invoke(CreatePXY,x,y,Txt);
|
||||||
|
property Text: string read InvokeString(()->b.Text) write Invoke(procedure(t: string) -> b.Text := t,value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
///!#
|
///!#
|
||||||
|
|
@ -241,16 +249,18 @@ type
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function Button(Txt: string): ButtonT;
|
function Button(Txt: string): ButtonT;
|
||||||
function TextLabel(Txt: string): TextLabelT;
|
function TextLabel(Txt: string): TextLabelT;
|
||||||
function TextBox(Txt: string := ''; w: real := 0): TextBoxT;
|
function TextLabel(x,y: real; Txt: string): TextLabelT;
|
||||||
function IntegerBox(w: real := 0): IntegerBoxT;
|
function TextBox(Txt: string := ''; w: real := 0): TextBoxT;
|
||||||
function Slider(min: real := 0; max: real := 10; val: real := 0): SliderT;
|
function IntegerBox(w: real := 0): IntegerBoxT;
|
||||||
|
function Slider(min: real := 0; max: real := 10; val: real := 0): SliderT;
|
||||||
procedure EmptyBlock(sz: integer := 16);
|
|
||||||
|
procedure EmptyBlock(sz: integer := 16);
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
uses GraphWPF;
|
||||||
uses System.Windows;
|
uses System.Windows;
|
||||||
uses System.Windows.Controls;
|
uses System.Windows.Controls;
|
||||||
uses System.Windows.Controls.Primitives;
|
uses System.Windows.Controls.Primitives;
|
||||||
|
|
@ -314,6 +324,7 @@ procedure AddStatusBar(Height: real) := Invoke(AddStatusBarP,Height);
|
||||||
|
|
||||||
function Button(Txt: string): ButtonT := ButtonT.Create(Txt);
|
function Button(Txt: string): ButtonT := ButtonT.Create(Txt);
|
||||||
function TextLabel(Txt: string): TextLabelT := TextLabelT.Create(Txt);
|
function TextLabel(Txt: string): TextLabelT := TextLabelT.Create(Txt);
|
||||||
|
function TextLabel(x,y: real; Txt: string): TextLabelT := TextLabelT.Create(x,y,Txt);
|
||||||
function TextBox(Txt: string; w: real): TextBoxT := TextBoxT.Create(Txt,w);
|
function TextBox(Txt: string; w: real): TextBoxT := TextBoxT.Create(Txt,w);
|
||||||
function IntegerBox(w: real): IntegerBoxT := IntegerBoxT.Create(w);
|
function IntegerBox(w: real): IntegerBoxT := IntegerBoxT.Create(w);
|
||||||
function Slider(min,max,val: real): SliderT := SliderT.Create(min,max,val);
|
function Slider(min,max,val: real): SliderT := SliderT.Create(min,max,val);
|
||||||
|
|
@ -325,6 +336,11 @@ begin
|
||||||
e.Width:= sz;
|
e.Width:= sz;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure SetActivePanelInit;
|
||||||
|
begin
|
||||||
|
ActivePanel := MainWindow.MainPanel.Children[0] as Panel
|
||||||
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Invoke(SetActivePanelInit);
|
||||||
end.
|
end.
|
||||||
|
|
@ -478,6 +478,11 @@ procedure AddBottomPanel(Height: real := 100; c: Color := Colors.LightGray);
|
||||||
|
|
||||||
procedure AddStatusBar(Height: real := 24);}
|
procedure AddStatusBar(Height: real := 24);}
|
||||||
|
|
||||||
|
{function GetDC: DrawingContext;
|
||||||
|
procedure ReleaseDC(dc: DrawingContext);
|
||||||
|
procedure FastDraw(d: DrawingContext->());
|
||||||
|
procedure FastClear(var dc: DrawingContext);}
|
||||||
|
|
||||||
procedure __InitModule__;
|
procedure __InitModule__;
|
||||||
procedure __FinalizeModule__;
|
procedure __FinalizeModule__;
|
||||||
|
|
||||||
|
|
@ -551,6 +556,23 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure FastDraw(d: DrawingContext->());
|
||||||
|
begin
|
||||||
|
Invoke(()->
|
||||||
|
begin
|
||||||
|
var dc := GetDC;
|
||||||
|
d(dc);
|
||||||
|
ReleaseDC(dc);
|
||||||
|
end);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure FastClear(var dc: DrawingContext);
|
||||||
|
begin
|
||||||
|
ReleaseDC(dc);
|
||||||
|
Window.Clear;
|
||||||
|
dc := GetDC;
|
||||||
|
end;
|
||||||
|
|
||||||
function GetDC(t: Transform): DrawingContext;
|
function GetDC(t: Transform): DrawingContext;
|
||||||
begin
|
begin
|
||||||
var visual := new DrawingVisual();
|
var visual := new DrawingVisual();
|
||||||
|
|
@ -1313,7 +1335,6 @@ begin
|
||||||
FillRectangle(0,0,Window.Width,Window.Height,c)
|
FillRectangle(0,0,Window.Width,Window.Height,c)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure WindowTypeWPF.Clear := Invoke(WindowTypeClearP);
|
procedure WindowTypeWPF.Clear := Invoke(WindowTypeClearP);
|
||||||
|
|
||||||
procedure WindowTypeWPF.Clear(c: Color) := Invoke(WindowTypeClearPC,c);
|
procedure WindowTypeWPF.Clear(c: Color) := Invoke(WindowTypeClearPC,c);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue