alp.yilmaz Posted March 9, 2017 Share Posted March 9, 2017 Merhaba Formun Client Events Bölümünde Aşağıdaki Kodu Yazdığım Zaman Border Değişiyor... Ben Bazı Durumlarda Borderın Olmasını Bazı Durumlarda da BrNone Olmasını istiyorum.. Bunun için if (parseInt(sender.myLabel.text)==1) { config.baseCls='frmNoBorderRadius'; config.cls='frmNoBorderRadius';} Kırmızı ile Belirtiğim Yere Nasıl bir Kontrol Koymam Gereklidir. Yardımlarınız için Şimdiden Teşekkür Ederim. Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted March 9, 2017 Share Posted March 9, 2017 Yukarıdaki kodda sender yerine form adını kullanarak denermisiniz. if (UniForm1.UniLabel1.text == '1') { Ext.Msg.alert("border durum", "border yok"); } else { Ext.Msg.alert("border durum", "border var"); //border olacagina gorede bu kontrolu yapmanizada gerek yok zaten } Quote Link to comment Share on other sites More sharing options...
alp.yilmaz Posted March 9, 2017 Author Share Posted March 9, 2017 function window.beforeInit(sender, config){ if (UniForm1.myLabel.text == '1') { Ext.Msg.alert("border durum", "border yok"); config.baseCls='frmNoBorderRadius'; config.cls='frmNoBorderRadius'; } } Bu Şekilde Kullandığım Zaman Form Ekrana Show Olmuyor Ama IF i Kaldırdığım Zaman Form u Görebiliyorum ... Bu Form Başka Bir Form Üzerinden Cağrılıyor Geliş Şekli Şu Şekil de Button1.Click olayınca UniForm1.mylabel1.text:='1'; UniForm1.ShowModal(); Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted March 9, 2017 Share Posted March 9, 2017 Size gonderdigim koddaki ornekte sizin istediginiz gibi ana form uzerine bir buton ekledim. ona tiklayinca ikinci form aciliyordu. islemleride ikinci formda yapiyordu. Denedim calismisti. Yalniz ben formun onbeforerender kismina yazmistim. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.