Konuyu Oyla:
  • Derecelendirme: 5/5 - 1 oy
  • 1
  • 2
  • 3
  • 4
  • 5
7 Segment sayısal tasarım [ÖRNEK PROJE]
#1
Merhaba,
programlarında böyle bir şeye ihtiyacı olur mu birinin emin değilim ama hazır yaptım paylaşayım dedim  Smile

   

Segment tasarım
object GridPanelLayout1: TGridPanelLayout
 Padding.Left = 10.000000000000000000
 Padding.Right = 10.000000000000000000
 Position.X = 72.000000000000000000
 Position.Y = 184.000000000000000000
 Size.Width = 200.000000000000000000
 Size.Height = 300.000000000000000000
 Size.PlatformDefault = False
 TabOrder = 0
 ColumnCollection = <
   item
     Value = 100.000000000000000000
   end>
 ControlCollection = <
   item
     Column = 0
     Control = ustkatman_rec
     Row = 0
   end
   item
     Column = 0
     Control = altkatman_rec
     Row = 1
   end>
 RowCollection = <
   item
     Value = 55.003304301760790000
   end
   item
     Value = 44.996695698239210000
   end
   item
     SizeStyle = Auto
   end>
 object ustkatman_rec: TRectangle
   Align = Client
   Fill.Kind = None
   Size.Width = 180.000000000000000000
   Size.Height = 165.009918212890600000
   Size.PlatformDefault = False
   Stroke.Kind = None
   object rec1: TRectangle
     Align = Top
     CornerType = Bevel
     Fill.Color = xFF353C46
     Margins.Left = 20.000000000000000000
     Margins.Right = 20.000000000000000000
     Position.X = 20.000000000000000000
     Size.Width = 140.000000000000000000
     Size.Height = 40.000000000000000000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
   object rec3: TRectangle
     Align = Bottom
     CornerType = Bevel
     Fill.Color = xFF353C46
     Margins.Left = 20.000000000000000000
     Margins.Right = 20.000000000000000000
     Position.X = 20.000000000000000000
     Position.Y = 125.009918212890600000
     Size.Width = 140.000000000000000000
     Size.Height = 40.000000000000000000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
   object rec4: TRectangle
     Align = Left
     CornerType = Bevel
     Fill.Color = xFF353C46
     Margins.Top = -15.000000000000000000
     Margins.Bottom = -15.000000000000000000
     Position.Y = 25.000000000000000000
     Size.Width = 40.000000000000000000
     Size.Height = 115.009918212890600000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
   object rec2: TRectangle
     Align = Right
     CornerType = Bevel
     Fill.Color = claAliceblue
     Margins.Top = -15.000000000000000000
     Margins.Bottom = -15.000000000000000000
     Position.X = 140.000000000000000000
     Position.Y = 25.000000000000000000
     Size.Width = 40.000000000000000000
     Size.Height = 115.009918212890600000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
 end
 object altkatman_rec: TRectangle
   Align = Client
   Fill.Kind = None
   Size.Width = 180.000000000000000000
   Size.Height = 134.990081787109400000
   Size.PlatformDefault = False
   Stroke.Kind = None
   object rec6: TRectangle
     Align = Bottom
     CornerType = Bevel
     Fill.Color = xFF353C46
     Margins.Left = 20.000000000000000000
     Margins.Right = 20.000000000000000000
     Position.X = 20.000000000000000000
     Position.Y = 94.990081787109380000
     Size.Width = 140.000000000000000000
     Size.Height = 40.000000000000000000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
   object rec5: TRectangle
     Align = Left
     CornerType = Bevel
     Fill.Color = xFF353C46
     Margins.Top = -15.000000000000000000
     Margins.Bottom = -15.000000000000000000
     Position.Y = -15.000000000000000000
     Size.Width = 40.000000000000000000
     Size.Height = 124.990081787109400000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
   object rec7: TRectangle
     Align = Right
     CornerType = Bevel
     Fill.Color = claAliceblue
     Margins.Top = -15.000000000000000000
     Margins.Bottom = -15.000000000000000000
     Position.X = 140.000000000000000000
     Position.Y = -15.000000000000000000
     Size.Width = 40.000000000000000000
     Size.Height = 124.990081787109400000
     Size.PlatformDefault = False
     Stroke.Kind = None
     XRadius = 20.000000000000000000
     YRadius = 20.000000000000000000
   end
 end
end


Kod bloğu 

procedure TForm1.SetNumaraOlustur(const Numara: Integer);
var
I, j: Integer;
rct: TRectangle;
function GetRectangleNameToLastNumber(): Integer;
var
  k: Integer;
  No: String;
begin
  No := EmptyStr;
  for k := 1 to Length(rct.Name) do
    if IsDigit(rct.Name[k]) then
      No := No + rct.Name[k];
  Result := StrToInt(No);
end;

begin
for I := 0 to GridPanelLayout1.Controls.Count - 1 do
  for j := 0 to GridPanelLayout1.Controls[i].ChildrenCount - 1 do
    if GridPanelLayout1.Controls[i].Children[j] is TRectangle then
    begin
      rct := TRectangle(GridPanelLayout1.Controls[i].Children[j]);
      case Numara of
        0:
          if not(GetRectangleNameToLastNumber in [1, 3, 4, 5, 6]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        1:
          if not(GetRectangleNameToLastNumber in [1, 3, 4, 5, 6]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        2:
          if not(GetRectangleNameToLastNumber in [4, 7]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        3:
          if not(GetRectangleNameToLastNumber in [4, 5]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        4:
          if not(GetRectangleNameToLastNumber in [1, 5, 6]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        5:
          if not(GetRectangleNameToLastNumber in [2, 5]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        6:
          if not(GetRectangleNameToLastNumber in [2]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        7:
          if not(GetRectangleNameToLastNumber in [3, 4, 5, 6]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        8:
          if not(GetRectangleNameToLastNumber in []) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
        9:
          if not(GetRectangleNameToLastNumber in [5]) then
            rct.Fill.Color := TAlphaColorRec.Aliceblue;
      end;
    end;
end;

procedure TForm1.goster_recClick(Sender: TObject);
var
I, j: Integer;
begin
for I := 0 to GridPanelLayout1.Controls.Count - 1 do
  for j := 0 to GridPanelLayout1.Controls[i].ChildrenCount - 1 do
    if GridPanelLayout1.Controls[i].Children[j] is TRectangle then
      TRectangle(GridPanelLayout1.Controls[i].Children[j]).Fill.Color := renk_rec.Fill.Color;
SetNumaraOlustur(Edit1.Text.ToInteger);
end;


.zip   segment_V1.zip (Dosya Boyutu: 54,84 KB / İndirme Sayısı: 20)
Cevapla
#2
maşallah güzel olmuş, hocam udem derseleriz güzel olmuş.
Cevapla
#3
(06-01-2021, Saat: 19:59)nguzeller Adlı Kullanıcıdan Alıntı: maşallah güzel olmuş, hocam udemy dersleriniz güzel olmuş.

Çok sağolun hocam.
Bu da yeni ekleyeceğim ders videolarından birinin konusu idi. 4- 5 ders daha eklenecek nasipse.
Kurs hakkındaki değerli yorumunuz için çok teşekkür ederim.
Cevapla
#4
güzel bir tasram olmuş tebrik ederim eğitimlerin de baya öğretici Smile

(05-02-2021, Saat: 10:13)suleymangul0 Adlı Kullanıcıdan Alıntı: güzel bir tasram olmuş tebrik ederim eğitimlerin de baya öğretici bunu sistem saati ya da bir saat dilimi ile çalıştırabilir miyiz
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Android Proje Donma/ Takılma Problemleri kajmerantime 22 5.739 10-12-2024, Saat: 16:44
Son Yorum: yhackup
  Tüm Platformlar için Hızlı uygulama Geliştirme - Tüm Örnek Uygulamalar RAD Coder 12 8.766 05-08-2024, Saat: 11:51
Son Yorum: ertemsoft
  FMX Proje derlerken Path error3 hatası karex 4 2.260 18-10-2021, Saat: 21:40
Son Yorum: muhsinsam
Photo FMX Proje Hatası tmrksmt 5 2.693 10-08-2021, Saat: 23:42
Son Yorum: eskalibur_
  İbre tasarımı [ ÖRNEK PROJE ] Mr.X 0 1.145 17-03-2021, Saat: 13:04
Son Yorum: Mr.X



Konuyu Okuyanlar: 1 Ziyaretçi