-
Notifications
You must be signed in to change notification settings - Fork 2
/
Marvin.Comps.MDL.Frame.Button.Flat.pas
661 lines (586 loc) · 19.1 KB
/
Marvin.Comps.MDL.Frame.Button.Flat.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
{ /------------------------------------------------------------------/
/ Por Marcus Vinicius Braga - Marvinbraga Youtube Channel - Brazil /
/------------------------------------------------------------------/ }
unit Marvin.Comps.MDL.Frame.Button.Flat;
interface
uses
{ marvin }
Marvin.Comps.MDL.Intf.Button,
{ embarcadero }
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
System.Generics.Collections,
System.Generics.Defaults,
{ firemonkey }
FMX.Types,
FMX.ActnList,
FMX.Graphics,
FMX.Controls,
FMX.Forms,
FMX.Dialogs,
FMX.StdCtrls,
FMX.Controls.Presentation,
FMX.Ani,
FMX.Effects,
FMX.Objects,
FMX.Layouts;
type
coFactoryRaisedFlatButtonMDL = class
public
class function Create(AOwner: TComponent): IMRVButtonMDL;
end;
{ classe para comparar os valores dos itens da lista }
TNotifyEventComparer = class(TComparer<TNotifyEvent>)
public
function Compare(const Left, Right: TNotifyEvent): Integer; override;
end;
{ classe do botão MDL raised, flat }
TfraMRVRaisedFlatButtonMDL = class(TFrame, IMRVButtonMDL, IFont, ITextSettings,
ICaption)
retButton: TRectangle;
sdwButton: TShadowEffect;
FloatAnimationOpacity: TFloatAnimation;
FloatAnimationClick: TFloatAnimation;
lblText: TLabel;
crcRipple: TCircle;
FloatAnimationRippleOpacity: TFloatAnimation;
FloatAnimationRippleSize: TFloatAnimation;
procedure retButtonClick(Sender: TObject);
procedure FloatAnimationRippleOpacityFinish(Sender: TObject);
procedure FloatAnimationRippleSizeProcess(Sender: TObject);
procedure retButtonMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Single);
procedure FloatAnimationOpacityProcess(Sender: TObject);
strict private
FOnClickEvents: TList<TNotifyEvent>;
FRipple: Boolean;
FPrimaryColor: TAlphaColor;
FAccentColor: TAlphaColor;
FDefaultColor: TAlphaColor;
FButtonColor: TMRVColorMDLType;
FBackgroundStyle: TMRVBackgroundStyle;
private
procedure StartRipple(X: Single; Y: Single);
{ métodos da interface }
function GetRipple: Boolean;
procedure SetRipple(const Value: Boolean);
function GetPrimaryColor: TAlphaColor;
procedure SetPrimaryColor(const Value: TAlphaColor);
function GetAccentColor: TAlphaColor;
procedure SetAccentColor(const Value: TAlphaColor);
function GetButtonColor: TMRVColorMDLType;
procedure SetButtonColor(const Value: TMRVColorMDLType);
function GetXRadius: Single;
function GetYRadius: Single;
procedure SetXRadius(const Value: Single);
procedure SetYRadius(const Value: Single);
{ multiplos eventos }
function GetOnClickEvents: TList<TNotifyEvent>;
procedure SetOnClickEvents(const Value: TList<TNotifyEvent>);
function AddOnClickEvent(AEvent: TNotifyEvent): Boolean;
{ métodos da interface ICaption }
function GetText: string;
procedure SetText(const Value: string);
function TextStored: Boolean;
{ métodos da fonte }
function GetFont: TFont;
procedure SetFont(const Value: TFont);
function GetFontColor: TAlphaColor;
procedure SetFontColor(const Value: TAlphaColor);
function GetTextAlign: TTextAlign;
procedure SetTextAlign(const Value: TTextAlign);
function GetTrimming: TTextTrimming;
procedure SetTrimming(const Value: TTextTrimming);
function GetVertTextAlign: TTextAlign;
procedure SetVertTextAlign(const Value: TTextAlign);
function GetWordWrap: Boolean;
procedure SetWordWrap(const Value: Boolean);
function GetPrefixStyle: TPrefixStyle;
procedure SetPrefixStyle(const Value: TPrefixStyle);
{ métodos da interface ITextSettings }
function GetDefaultTextSettings: TTextSettings;
function GetTextSettings: TTextSettings;
procedure SetTextSettings(const Value: TTextSettings);
function GetResultingTextSettings: TTextSettings;
function GetStyledSettings: TStyledSettings;
procedure SetStyledSettings(const Value: TStyledSettings);
function GetBackgroundStyle: TMRVBackgroundStyle;
procedure SetBackgroundStyle(const Value: TMRVBackgroundStyle);
procedure UpdateDefaultColor;
procedure AdjustOpacityEffect(AClick: Single; AMouseMove: Single;
ARipple: Single);
protected
function MaxValue(AValue1: Single; AValue2: Single): Single;
function GetEnabled: Boolean;
procedure SetEnabled(const Value: Boolean); override;
procedure ChangeButtonColor; virtual;
procedure ExecuteClickEvents(Sender: TObject);
procedure ConfigDarkColor;
procedure ConfigCleanColor;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Click; override;
{ propriedades da interface ITextSettings }
property DefaultTextSettings: TTextSettings read GetDefaultTextSettings;
property TextSettings: TTextSettings read GetTextSettings write SetTextSettings;
property ResultingTextSettings: TTextSettings read GetResultingTextSettings;
property StyledSettings: TStyledSettings read GetStyledSettings write SetStyledSettings;
{ prporpiedades da interface ICaption }
property Text: string read GetText write SetText stored TextStored;
{ propriedades da font }
property Font: TFont read GetFont write SetFont;
property FontColor: TAlphaColor read GetFontColor write SetFontColor default TAlphaColorRec.Black;
property VertTextAlign: TTextAlign read GetVertTextAlign write SetVertTextAlign default TTextAlign.Center;
property TextAlign: TTextAlign read GetTextAlign write SetTextAlign default TTextAlign.Leading;
property WordWrap: Boolean read GetWordWrap write SetWordWrap default False;
property Trimming: TTextTrimming read GetTrimming write SetTrimming default TTextTrimming.None;
property PrefixStyle: TPrefixStyle read GetPrefixStyle write SetPrefixStyle default TPrefixStyle.HidePrefix;
{ métodos da interface IMRVButtonMDL }
procedure SetParentControl(const AParent: TFmxObject);
{ propriedades da interface IMRVButtonMDL}
property Ripple: Boolean read GetRipple write SetRipple;
property Enabled: Boolean read GetEnabled write SetEnabled;
property PrimaryColor: TAlphaColor read GetPrimaryColor write SetPrimaryColor;
property AccentColor: TAlphaColor read GetAccentColor write SetAccentColor;
property ButtonColor: TMRVColorMDLType read GetButtonColor write SetButtonColor;
property BackgroundStyle: TMRVBackgroundStyle read GetBackgroundStyle write SetBackgroundStyle;
property XRadius: Single read GetXRadius write SetXRadius;
property YRadius: Single read GetYRadius write SetYRadius;
{ eventos }
property OnClickEvents: TList<TNotifyEvent> read GetOnClickEvents write SetOnClickEvents;
end;
implementation
{$R *.fmx}
function TfraMRVRaisedFlatButtonMDL.AddOnClickEvent(
AEvent: TNotifyEvent): Boolean;
var
LAchou, LResult: Boolean;
begin
LResult := False;
{ verifica se o evento já foi incluído }
LAchou := FOnClickEvents.Contains(AEvent);
{ se evento não foi incluído então inclui }
if not(LAchou) then
begin
FOnClickEvents.Add(AEvent);
LResult := True;
end;
{ informa o resultado }
Result := LResult;
end;
procedure TfraMRVRaisedFlatButtonMDL.ChangeButtonColor;
begin
{ ajusta a cor do label }
case FButtonColor of
{ preta }
clNone: lblText.FontColor := FDefaultColor;
{ cor primária }
clColored: lblText.FontColor := FPrimaryColor;
{ cor secundária }
clAccent: lblText.FontColor := FAccentColor;
end;
end;
procedure TfraMRVRaisedFlatButtonMDL.Click;
begin
inherited;
{ falta ajustar }
retButtonClick(Self);
end;
procedure TfraMRVRaisedFlatButtonMDL.ConfigCleanColor;
begin
{ informa a cor }
FDefaultColor := TAlphaColors.White;
{ cores dos objetos }
Self.UpdateDefaultColor;
{ ajusta o Ripple }
crcRipple.Fill.Color := FDefaultColor;
{ ajusta a opacidade dos efeitos }
Self.AdjustOpacityEffect(0.7, 0.4, 1);
end;
procedure TfraMRVRaisedFlatButtonMDL.ConfigDarkColor;
begin
{ informa a cor }
FDefaultColor := TAlphaColors.Black;
{ cores dos objetos }
Self.UpdateDefaultColor;
{ ajusta o Ripple }
crcRipple.Fill.Color := FDefaultColor;
{ ajusta os níveis de opacidade dos efeitos }
Self.AdjustOpacityEffect(0.4, 0.2, 1);
end;
constructor TfraMRVRaisedFlatButtonMDL.Create(AOwner: TComponent);
var
LComparer: TNotifyEventComparer;
begin
inherited Create(AOwner);
{ frame não vai ser salvo no arquivo .XFM }
Self.Stored := False;
{ controle bloqueado em design time }
Self.Locked := True;
{ desabilita o clique }
Self.HitTest := False;
{ ret }
retButton.Stored := False;
retButton.Locked := True;
retButton.HitTest := True;
{ label }
lblText.Stored := False;
lblText.Locked := True;
lblText.HitTest := False;
{ círculo }
crcRipple.Stored := False;
crcRipple.Locked := True;
crcRipple.HitTest := False;
{ cria multieventos }
LComparer := TNotifyEventComparer.Create;
FOnClickEvents := TList<TNotifyEvent>.Create(LComparer);
end;
destructor TfraMRVRaisedFlatButtonMDL.Destroy;
begin
FOnClickEvents.Clear;
FreeAndNil(FOnClickEvents);
inherited;
end;
procedure TfraMRVRaisedFlatButtonMDL.FloatAnimationOpacityProcess(Sender: TObject);
begin
sdwButton.UpdateParentEffects;
end;
procedure TfraMRVRaisedFlatButtonMDL.FloatAnimationRippleOpacityFinish(
Sender: TObject);
begin
crcRipple.Visible := False;
end;
procedure TfraMRVRaisedFlatButtonMDL.FloatAnimationRippleSizeProcess(Sender: TObject);
var
LTamanho: Single;
begin
{ recupera o ajuste para o novo tamanho }
LTamanho := crcRipple.Size.Width - crcRipple.Size.Height;
{ ajusta o tamanho }
crcRipple.Size.Height := crcRipple.Size.Width;
{ ajusta o posicionamento para centralizar com o clique }
crcRipple.Position.X := crcRipple.Position.X - (LTamanho / 2);
crcRipple.Position.Y := crcRipple.Position.Y - (LTamanho / 2);
end;
function TfraMRVRaisedFlatButtonMDL.GetResultingTextSettings: TTextSettings;
begin
Result := lblText.ResultingTextSettings;
end;
function TfraMRVRaisedFlatButtonMDL.GetRipple: Boolean;
begin
Result := FRipple;
end;
function TfraMRVRaisedFlatButtonMDL.GetAccentColor: TAlphaColor;
begin
Result := FAccentColor;
end;
function TfraMRVRaisedFlatButtonMDL.GetBackgroundStyle: TMRVBackgroundStyle;
begin
Result := FBackgroundStyle;
end;
function TfraMRVRaisedFlatButtonMDL.GetButtonColor: TMRVColorMDLType;
begin
Result := FButtonColor;
end;
function TfraMRVRaisedFlatButtonMDL.GetDefaultTextSettings: TTextSettings;
begin
Result := lblText.DefaultTextSettings;
end;
function TfraMRVRaisedFlatButtonMDL.GetEnabled: Boolean;
begin
Result := inherited Enabled;
end;
function TfraMRVRaisedFlatButtonMDL.GetFont: TFont;
begin
Result := lblText.Font;
end;
function TfraMRVRaisedFlatButtonMDL.GetFontColor: TAlphaColor;
begin
Result := lblText.FontColor;
end;
function TfraMRVRaisedFlatButtonMDL.GetStyledSettings: TStyledSettings;
begin
Result := lblText.StyledSettings;
end;
function TfraMRVRaisedFlatButtonMDL.GetText: string;
begin
Result := lblText.Text;
end;
function TfraMRVRaisedFlatButtonMDL.GetTextAlign: TTextAlign;
begin
Result := lblText.TextAlign;
end;
function TfraMRVRaisedFlatButtonMDL.GetTextSettings: TTextSettings;
begin
Result := lblText.TextSettings;
end;
function TfraMRVRaisedFlatButtonMDL.GetTrimming: TTextTrimming;
begin
Result := lblText.Trimming;
end;
function TfraMRVRaisedFlatButtonMDL.GetVertTextAlign: TTextAlign;
begin
Result := lblText.VertTextAlign;
end;
function TfraMRVRaisedFlatButtonMDL.GetWordWrap: Boolean;
begin
Result := lblText.WordWrap;
end;
function TfraMRVRaisedFlatButtonMDL.GetXRadius: Single;
begin
Result := retButton.XRadius;
end;
function TfraMRVRaisedFlatButtonMDL.GetYRadius: Single;
begin
Result := retButton.YRadius;
end;
function TfraMRVRaisedFlatButtonMDL.GetOnClickEvents: TList<TNotifyEvent>;
begin
Result := FOnClickEvents;
end;
function TfraMRVRaisedFlatButtonMDL.GetPrefixStyle: TPrefixStyle;
begin
Result := lblText.PrefixStyle;
end;
function TfraMRVRaisedFlatButtonMDL.GetPrimaryColor: TAlphaColor;
begin
Result := FPrimaryColor;
end;
function TfraMRVRaisedFlatButtonMDL.MaxValue(AValue1, AValue2: Single): Single;
begin
{ retorna o primeiro valor }
Result := AValue1;
{ se o segundo valor for maior que o primeiro então retorne-o. }
if (AValue2 > AValue1) then
begin
Result := AValue2;
end;
end;
procedure TfraMRVRaisedFlatButtonMDL.retButtonClick(Sender: TObject);
begin
{ executa a animação }
if not(FRipple) then
begin
FloatAnimationClick.Start;
end;
{ executa eventos de clique }
Self.ExecuteClickEvents(Sender);
end;
procedure TfraMRVRaisedFlatButtonMDL.retButtonMouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Single);
begin
if FRipple then
begin
Self.StartRipple(X, Y);
end;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetRipple(const Value: Boolean);
begin
FRipple := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetStyledSettings(const Value: TStyledSettings);
begin
lblText.StyledSettings := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetText(const Value: string);
begin
lblText.Text := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetTextAlign(const Value: TTextAlign);
begin
lblText.TextAlign := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetTextSettings(const Value: TTextSettings);
begin
lblText.TextSettings.Assign(Value);
end;
procedure TfraMRVRaisedFlatButtonMDL.SetAccentColor(const Value: TAlphaColor);
begin
FAccentColor := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetBackgroundStyle(
const Value: TMRVBackgroundStyle);
begin
FBackgroundStyle := Value;
{ ajusta os fundos }
case FBackgroundStyle of
bsDark: Self.ConfigDarkColor;
bsClean: Self.ConfigCleanColor;
end;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetButtonColor(
const Value: TMRVColorMDLType);
begin
FButtonColor := Value;
{ altera a cor do controle }
Self.ChangeButtonColor;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetEnabled(const Value: Boolean);
begin
inherited;
lblText.Enabled := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetFont(const Value: TFont);
begin
lblText.Font := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetFontColor(const Value: TAlphaColor);
begin
{ ajusta a cor da fonte de acordo com o tipo do botão }
Self.ChangeButtonColor;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetTrimming(const Value: TTextTrimming);
begin
lblText.Trimming := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetVertTextAlign(const Value: TTextAlign);
begin
lblText.VertTextAlign := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetWordWrap(const Value: Boolean);
begin
lblText.WordWrap := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetXRadius(const Value: Single);
begin
retButton.XRadius := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetYRadius(const Value: Single);
begin
retButton.YRadius := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetOnClickEvents(
const Value: TList<TNotifyEvent>);
var
LOnClickEvent: TNotifyEvent;
begin
{ limpa a lista }
FOnClickEvents.Clear;
{ se existe um valor }
if Assigned(Value) then
begin
{ adiciona todos os itens }
for LOnClickEvent in Value do
begin
{ se o item ainda não foi incluído }
Self.AddOnClickEvent(LOnClickEvent);
end;
end;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetParentControl(const AParent: TFmxObject);
begin
Self.Parent := AParent;
end;
procedure TfraMRVRaisedFlatButtonMDL.AdjustOpacityEffect(AClick: Single;
AMouseMove: Single; ARipple: Single);
begin
{ ajusta os níveis de opacidade dos efeitos }
FloatAnimationClick.StopValue := AClick;
FloatAnimationOpacity.StopValue := AMouseMove;
FloatAnimationRippleOpacity.StopValue := ARipple;
end;
procedure TfraMRVRaisedFlatButtonMDL.UpdateDefaultColor;
begin
{ cores dos objetos }
retButton.Fill.Color := FDefaultColor;
Self.FontColor := FDefaultColor;
end;
procedure TfraMRVRaisedFlatButtonMDL.ExecuteClickEvents(Sender: TObject);
var
LNotifyEvent: TNotifyEvent;
begin
{ executa todos os eventos associados }
if (FOnClickEvents.Count > 0) then
begin
{ aciona todos os eventos }
for LNotifyEvent in FOnClickEvents do
begin
if Assigned(LNotifyEvent) then
begin
TThread.CreateAnonymousThread(procedure
begin
TThread.Synchronize(TThread.CurrentThread, procedure
begin
{ executa thread por evento }
LNotifyEvent(Self.Parent);
end)
end).Start;
end;
end;
end;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetPrefixStyle(const Value: TPrefixStyle);
begin
lblText.PrefixStyle := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.SetPrimaryColor(const Value: TAlphaColor);
begin
FPrimaryColor := Value;
end;
procedure TfraMRVRaisedFlatButtonMDL.StartRipple(X: Single; Y: Single);
begin
if not FRipple then
begin
Exit;
end;
{ inicia a thread }
TThread.CreateAnonymousThread(procedure
begin
{ sincroniza }
TThread.Synchronize(TThread.CurrentThread,
procedure
var
LTamanho: Single;
begin
{ centralizar o círculo com a posição do clique }
crcRipple.Position.X := X - (crcRipple.Size.Width / 2);
crcRipple.Position.Y := Y - (crcRipple.Size.Width / 2);
{ exibe o círculo }
crcRipple.Visible := True;
{ configura o tamanho final do círculo }
LTamanho := Self.MaxValue(retButton.Size.Width,
retButton.Size.Height) + 20;
FloatAnimationRippleSize.StopValue := LTamanho * 1.2;
{ sincroniza a duração das animações }
FloatAnimationRippleSize.Duration := FloatAnimationRippleOpacity.Duration;
{ anicia as animações }
FloatAnimationRippleOpacity.Start;
FloatAnimationRippleSize.Start;
end);
end).Start;
end;
function TfraMRVRaisedFlatButtonMDL.TextStored: Boolean;
begin
Result := True;
end;
{ coFactoryFlatButtonMDL }
class function coFactoryRaisedFlatButtonMDL.Create(AOwner: TComponent): IMRVButtonMDL;
begin
Result := TfraMRVRaisedFlatButtonMDL.Create(AOwner);
end;
{ TNotifyEventComparer }
function TNotifyEventComparer.Compare(const Left, Right: TNotifyEvent): Integer;
var
LResult: Integer;
begin
{ define resultado como diferentes }
LResult := -1;
{ verifica se são iguais }
if ((TMethod(Left).Data = TMethod(Right).Data) and
(TMethod(Left).Code = TMethod(Right).Code)) then
begin
{ define resultado como iguais }
LResult := 0;
end;
{ retorna o resultado }
Result := LResult;
end;
initialization
RegisterClass(TfraMRVRaisedFlatButtonMDL);
finalization
UnRegisterClass(TfraMRVRaisedFlatButtonMDL);
end.