Delphi Dünyası Facebook'ta

Kodbank İndir

! CODEBANK 2012 !

İNDİRMEK&DETAYLI BİLGİ ALMAK İÇİN BURAYI TIKLAYINIZ.

Gönderen Konu: Dialog penceresine checkBox yerleştirmek  (Okunma sayısı 1944 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Fatih

  • Emekli Yönetici
  • *****
  • İleti: 2.217
  • Rep: +43/-10
  • Cinsiyet: Bay
    • Delphi Dünyası
Dialog penceresine checkBox yerleştirmek
« : 14 Mayıs 2007 08:37:25 »
Kod: [Seç]
procedure TForm1.Button1Click(Sender: TObject) ;
var
  AMsgDialog: TForm;
  ACheckBox: TCheckBox;
begin
//Dialog Penceresini oluştur
  AMsgDialog := CreateMessageDialog('This is a test message.', mtWarning, [mbYes, mbNo]) ;
//CheckBox yaada başka bir pencere oluştur
  ACheckBox := TCheckBox.Create(AMsgDialog) ;
  with AMsgDialog do
  try
   Caption := 'Diyalog başlığı' ;
   Height := 169;

   with ACheckBox do
   begin
    Parent := AMsgDialog;
    Caption := 'Bir daha sorma';
    Top := 121;
    Left := 8;
   end;

   if (ShowModal = ID_YES) then
   begin
    if ACheckBox.Checked then
      //CheckBox işaretliyse yapılacaklar
    else
      //CheckBox işaretli değilse yapılacaklar

   end;
  finally
   Free;
  end;
end;

Not: TControl türevi herhangi bir nesne eklenebilir
Malulen emekli programcı / yazar. Bildiklerini unutmakta olduğundan size cevap veremez.