Talimat: Bir form oluştur ve bir grup toggle buton ekle. Her toggle butonun tıklama olayını ayarla.
Kod:
myForm = TclForm.Create(Self);
ToggleButton1 = myForm.AddNewProToggleButton(myForm, 'ToggleButton1', 'Açık');
ToggleButton1.Align = alTop;
ToggleButton2 = myForm.AddNewProToggleButton(myForm, 'ToggleButton2', 'Kapalı');
ToggleButton2.Align = alTop;
myForm.AddNewEvent(ToggleButton1, tbeOnClick, 'ToggleButtonClick');
myForm.AddNewEvent(ToggleButton2, tbeOnClick, 'ToggleButtonClick');