Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
for ile oluşturulan butonun visible durumu
#6
Aşağıdaki gibi bir fonksiyon tanımlayın.
function TForm1.GetLiveButton(LiveButonTag: integer): TButton;
var
 I: Integer;
begin
 for I := 0 to ScrollBox1.ControlCount - 1 do
   if ScrollBox1.Controls[i] is TButton then
   begin
     if ScrollBox1.Controls[i].Tag = LiveButonTag then
     begin
       result := TButton(ScrollBox1.Controls[i]);
       Exit;
     end;
   end;
end;

Tag değerini bildiğiniz bir butonu gizlemek için aşağıdaki kodu kullanabilirsiniz.
GetLiveButton(584).Visible := False;

Tag değerini bildiğiniz bir butonu göstermek için ise aşağıdaki kodu kullanabilirsiniz.

GetLiveButton(584).Visible := True;
DelphiCan'dır!
Cevapla


Bu Konudaki Yorumlar
for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 04-07-2018, Saat: 11:00
Cvp: for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 04-07-2018, Saat: 11:12
for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 04-07-2018, Saat: 11:28
Cvp: for ile oluşturulan butonun visible durumu - Yazar: Fesih ARSLAN - 04-07-2018, Saat: 11:45
for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 04-07-2018, Saat: 11:53
Cvp: for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 06-07-2018, Saat: 10:37
Cvp: for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 12-07-2018, Saat: 10:08
Cvp: for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 12-07-2018, Saat: 10:19
for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 13-07-2018, Saat: 14:21
Cvp: for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 13-07-2018, Saat: 14:51
Cvp: for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 13-07-2018, Saat: 18:28
for ile oluşturulan butonun visible durumu - Yazar: arsl01 - 13-07-2018, Saat: 15:34

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Json Data Binding ile oluşturulan json içine Array ekleme aegean 4 1.839 17-05-2024, Saat: 12:36
Son Yorum: Tuğrul HELVACI
  Acayip bir karakter gösterim durumu delphicim 3 1.589 10-11-2023, Saat: 12:24
Son Yorum: delphicim
  Cannot make a visible window modal hatası. Bay_Y 2 2.849 26-11-2021, Saat: 10:56
Son Yorum: Bay_Y
  kod ile oluşturulan butona olay ekleme arsl01 23 22.488 20-04-2021, Saat: 11:51
Son Yorum: tmrksmt
  Image visible durumu Atomkarınca 2 1.468 18-03-2021, Saat: 09:38
Son Yorum: Atomkarınca



Konuyu Okuyanlar: 1 Ziyaretçi