Sayfayı Yazdır | Pencereyi Kapat

kapatmak yerine üstüne yazıyor

Nereden Yazdırıldığı: Clomosy | Forum
Kategori: Genel Programlama
Forum Adı: Genel İşlemler
Forum Tanımlaması: TRObject dili ile programlama yaparken karşılaşılan genel işlemler
URL: https://forum.clomosy.com.tr/forum_posts.asp?TID=1569
Tarih: 30 Haziran 2026 Saat 12:58
Program Versiyonu: Web Wiz Forums 12.07 - https://www.webwizforums.com


Konu: kapatmak yerine üstüne yazıyor
Mesajı Yazan: ErenTotan
Konu: kapatmak yerine üstüne yazıyor
Mesaj Tarihi: 30 Haziran 2026 Saat 09:47
< defer="" ="https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" integrity="sha512-ZE9pZaUXND66v380QUtch/5sE9tPFh2zg45pR2PB0CVkCtOREv2AJKkSidISWkysEuQ0EH8faUU5du78bx87UQ==" -cf-beacon=""version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"_timing":"name":"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true,"location_startswith":null" crossorigin="anonymous">





go back to main fonksiyonu schedule üzerinde çalışsa da student ta bu şekilde saçmalıyor 

student parçası:
var
  StudentForm: TclForm;
  lblStudentTitle: TclLabel;
  // Bütün giriş kutularımız
  edtStudentName, edtStudentClass, edtStudentDept, edtStudentPhone: TclEdit;
  // Butonlarımız
  btnAddStudent, btnClearAll, btnBackToMain: TclProButton;
  myStudentListView: TclListView;
  StudentJSONContent: String; 

void GoBackToMain;
{
 StudentForm.Close;
}

void ClearAllStudents;
{
  
  StudentJSONContent = '';
  myStudentListView.clLoadListViewDataFromDataset(Clomosy.ClDataSetFromJSON('[]'));
  ShowMessage('Liste tamamen temizlendi!');
}

void AddNewStudent;
var
  subTextData: String;
{
  
  if (edtStudentName.Text == '')
  {
    ShowMessage('Lütfen en azından öğrenci adını yazın!');
  }
  else
  {
    
    subTextData = edtStudentClass.Text + ' Sınıfı | ' + edtStudentDept.Text + ' | Tel: ' + edtStudentPhone.Text;
    
    
    if (StudentJSONContent <> '')
    {
      StudentJSONContent = StudentJSONContent + ', ';
    }

    
    StudentJSONContent = StudentJSONContent + '{"MAIN_TEXT":"' + edtStudentName.Text + '", "SUB_TEXT":"' + subTextData + '"}';
    
    
    myStudentListView.clLoadListViewDataFromDataset(Clomosy.ClDataSetFromJSON('[' + StudentJSONContent + ']'));
    
    
    edtStudentName.Text = '';
    edtStudentClass.Text = '';
    edtStudentDept.Text = '';
    edtStudentPhone.Text = '';
  }
}

{
  StudentForm = TclForm.Create(Self);
  

  lblStudentTitle = StudentForm.AddNewLabel(StudentForm, 'lblStudentTitle', '👥 Öğrenci Portföyü');
  lblStudentTitle.Align = alTop;
  lblStudentTitle.Margins.Top = 20;
  lblStudentTitle.Height = 40;
  lblStudentTitle.TextSettings.Font.Size = 24;
  lblStudentTitle.TextSettings.Font.Style = [fsBold];
  
 
  edtStudentName = StudentForm.AddNewEdit(StudentForm, 'edtStudentName', 'Öğrenci Adı ve Soyadı...');
  edtStudentName.Align = alTop;
  edtStudentName.Margins.Top = 10;
  edtStudentName.Margins.Left = 20;
  edtStudentName.Margins.Right = 20;
  edtStudentName.Height = 40;

  edtStudentClass = StudentForm.AddNewEdit(StudentForm, 'edtStudentClass', 'Sınıfı (Örn: 12-A)...');
  edtStudentClass.Align = alTop;
  edtStudentClass.Margins.Top = 5;
  edtStudentClass.Margins.Left = 20;
  edtStudentClass.Margins.Right = 20;
  edtStudentClass.Height = 40;

  edtStudentDept = StudentForm.AddNewEdit(StudentForm, 'edtStudentDept', 'Bölümü (Örn: Sayısal)...');
  edtStudentDept.Align = alTop;
  edtStudentDept.Margins.Top = 5;
  edtStudentDept.Margins.Left = 20;
  edtStudentDept.Margins.Right = 20;
  edtStudentDept.Height = 40;

  edtStudentPhone = StudentForm.AddNewEdit(StudentForm, 'edtStudentPhone', 'İletişim Numarası...');
  edtStudentPhone.Align = alTop;
  edtStudentPhone.Margins.Top = 5;
  edtStudentPhone.Margins.Left = 20;
  edtStudentPhone.Margins.Right = 20;
  edtStudentPhone.Height = 40;

  
  btnAddStudent = StudentForm.AddNewProButton(StudentForm, 'btnAddStudent', '➕ Listeye Ekle');
  btnAddStudent.Align = alTop;
  btnAddStudent.Margins.Top = 10;
  btnAddStudent.Margins.Left = 20;
  btnAddStudent.Margins.Right = 20;
  btnAddStudent.Height = 45;
  btnAddStudent.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#10B981'); // Yeşil
  btnAddStudent.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');
  btnAddStudent.clProSettings.RoundHeight = 10;
  btnAddStudent.clProSettings.RoundWidth = 10;
  btnAddStudent.SetclProSettings(btnAddStudent.clProSettings);
  StudentForm.AddNewEvent(btnAddStudent, tbeOnClick, 'AddNewStudent');

  btnClearAll = StudentForm.AddNewProButton(StudentForm, 'btnClearAll', '🗑️ Listeyi Sıfırla');
  btnClearAll.Align = alTop;
  btnClearAll.Margins.Top = 5;
  btnClearAll.Margins.Left = 20;
  btnClearAll.Margins.Right = 20;
  btnClearAll.Height = 40;
  btnClearAll.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#F59E0B'); // Turuncu
  btnClearAll.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');
  btnClearAll.clProSettings.RoundHeight = 10;
  btnClearAll.clProSettings.RoundWidth = 10;
  btnClearAll.SetclProSettings(btnClearAll.clProSettings);
  StudentForm.AddNewEvent(btnClearAll, tbeOnClick, 'ClearAllStudents');

  
  StudentJSONContent = '{"MAIN_TEXT":"Örnek Öğrenci", "SUB_TEXT":"12-A Sınıfı | Sayısal | Tel: 0555..."}';

  myStudentListView = StudentForm.AddNewListView(StudentForm, 'myStudentListView');
  myStudentListView.Align = alClient; 
  myStudentListView.clLoadListViewDataFromDataset(Clomosy.ClDataSetFromJSON('[' + StudentJSONContent + ']'));

  
  btnBackToMain = StudentForm.AddNewProButton(StudentForm, 'btnBackToMain', '⬅ Ana Menüye Dön');
  btnBackToMain.Align = alBottom;
  btnBackToMain.Height = 60;
  btnBackToMain.Margins.Bottom = 30;
  btnBackToMain.Margins.Left = 30;
  btnBackToMain.Margins.Right = 30;
  btnBackToMain.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#EF4444');
  btnBackToMain.clProSettings.RoundHeight = 15;
  btnBackToMain.clProSettings.RoundWidth = 15;
  btnBackToMain.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');
  btnBackToMain.clProSettings.FontSize = 16;
  btnBackToMain.SetclProSettings(btnBackToMain.clProSettings);
  StudentForm.AddNewEvent(btnBackToMain, tbeOnClick, 'GoBackToMain');

  StudentForm.Run;
}


schedule kısmı:
var
ScheduleForm : TclForm;
lblScheduleTitle:TCLLabel;
btnBackToMain:TClProButton;

void GoBackToMain;
{
ScheduleForm.Close;
}

{

lblScheduleTitle=ScheduleForm.AddNewLabel(ScheduleForm,'lblScheduleTitle','📅 Etüt Programı');
lblScheduleTitle.Align=alTop;
lblScheduleTitle.Margins.Top=40;
lblScheduleTitle.Height=40;
lblScheduleTitle.TextSettings.Font.Size = 24;
lblScheduleTitle.TextSettings.Font.Style=[fsBold];

//////////////////
//Tasarım kısmı//
////////////////




btnBackToMain=ScheduleForm.AddNewProButton(ScheduleForm, 'btnBackToMain', '⬅ Ana Menüye Dön');
btnBackToMain.Align=alBottom;
btnBackToMain.Height=60;
btnBackToMain.Margins.Bottom=30;
btnBackToMain.Margins.Left=30;
btnBackToMain.Margins.Right=30;
btnBackToMain.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#EF4444');
btnBackToMain.clProSettings.RoundHeight = 15;
btnBackToMain.clProSettings.RoundWidth = 15;
btnBackToMain.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');
btnBackToMain.clProSettings.FontSize = 16;
btnBackToMain.SetclProSettings(btnBackToMain.clProSettings);
ScheduleForm.AddNewEvent(btnBackToMain,tbeOnClick,'GoBackToMain');

ScheduleForm.Run;
}











Cevaplar:
Mesajı Yazan: Emr.Erkmn
Mesaj Tarihi: 30 Haziran 2026 Saat 10:26
Merhaba 
Formlar arası geçişte  https://www.docs.clomosy.com/index.php?title=TclUnit" rel="nofollow - https://www.docs.clomosy.com/index.php?title=TclUnit kullanır mısın  https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" rel="nofollow - https://static.cloudflareinsights.com/beacon.min.js/v4513226cdae34746b4dedf0b4dfa099e1781791509496" integrity="sha512-ZE9pZaUXND66v380QUtch/5sE9tPFh2zg45pR2PB0CVkCtOREv2AJKkSidISWkysEuQ0EH8faUU5du78bx87UQ==" data-cf-beacon="{"version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}" crossorigin="anonymous">



Sayfayı Yazdır | Pencereyi Kapat

Forum Software by Web Wiz Forums® version 12.07 - https://www.webwizforums.com
Copyright ©2001-2024 Web Wiz Ltd. - https://www.webwiz.net