yasesa Posted January 15, 2012 Share Posted January 15, 2012 proğram ilk çalışmaya başladığında işletim sistemine baksın ona göre disable yapsın istiyorum. aşağıdaki gibi bir kod yazdım. bu kodu CheckBox içerisine yazdığımda tıklamadan çalışmıyor. global, action veya page içerisine yazdığımdada çalışmıyor. [codebox]if osName == "Windows 7" then -- Eğer işletim sistemi Win 7 ise CheckBox.SetEnabled("CheckBox35", false); end [/codebox] bu kodu proğram ik çalıştığında nasıl aktif hale getire bilirim. Quote Link to comment Share on other sites More sharing options...
pcusta_99 Posted January 15, 2012 Share Posted January 15, 2012 Sayfanın On Show evresine yazarsanız programı açtığınızda çalışacaktır. Her sayfada çalışması için, her sayfaya bu kodu yerleştirmeniz gerekiyor ama belki Global'dan da yapılabilir. Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 15, 2012 Author Share Posted January 15, 2012 [quote name='pcusta_99' date='15 January 2012 - 14:56 ' timestamp='1326639368' post='1141077'] Sayfanın On Show evresine yazarsanız programı açtığınızda çalışacaktır. Her sayfada çalışması için, her sayfaya bu kodu yerleştirmeniz gerekiyor ama belki Global'dan da yapılabilir. [/quote] malesef onların hepsini denedim bu kodu yazmadığım yer kalmadı global, action veya page içerinde her yere yazdım. bir yerde bir terslik var ama olmuyor. bu kodu CheckBox içerisine yazdığımda ilk tıklama çalışmıyor. tıklamay kalkıştığımda disable oluyor. ben ise açılışta disable olmasını istiyorum. olmuyor. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 15, 2012 Share Posted January 15, 2012 osName tanımlamamışsn.çalışmaması doğal Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 15, 2012 Author Share Posted January 15, 2012 [quote name='ReaLyMaN' date='15 January 2012 - 15:02 ' timestamp='1326639775' post='1141081'] osName tanımlamamışsn.çalışmaması doğal [/quote] if [b]osName == "Windows 7" then[/b] CheckBox.SetEnabled("CheckBox35", false); end koyu yazdığım yerde osName tanımlama yaptığımı zannediyordum birtane örnek vere bilirmisiniz. Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 15, 2012 Author Share Posted January 15, 2012 (edited) [b]if System.GetOSName("Windows 7") then -- Eğer işletim sistemi Win 7 ise CheckBox.SetEnabled("CheckBox35", false); end[/b] bu şekilde yazınca çalıştı teşekkür edeirim yardımlarınız için. Edited January 15, 2012 by yasesa Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 15, 2012 Share Posted January 15, 2012 şuan dolmuştayım ama ae action sytem den getosname seçin kodu yazar zaten Quote Link to comment Share on other sites More sharing options...
MostWanted Posted January 15, 2012 Share Posted January 15, 2012 Yanlış yazmışsın.Öyle yazarsan her zaman doğru gözükür.Doğrusu böyle [code]if System.GetOSName() == "Windows 7" then -- Eğer işletim sistemi Win 7 ise CheckBox.SetEnabled("CheckBox35", false); end[/code] On preload'a on show'a on startupa istediğine koyabilirsin. Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 15, 2012 Author Share Posted January 15, 2012 [quote name='MostWanted' date='15 January 2012 - 15:50 ' timestamp='1326642623' post='1141117'] Yanlış yazmışsın.Öyle yazarsan her zaman doğru gözükür.Doğrusu böyle [code]if System.GetOSName() == "Windows 7" then -- Eğer işletim sistemi Win 7 ise CheckBox.SetEnabled("CheckBox35", false); end[/code] On preload'a on show'a on startupa istediğine koyabilirsin. [/quote] bende çalışmadığını yeni farkketim. tam düzelmeye çalışıyordum bir bakayım biri bişey demişmi diye. teşekkür ederim. hatamı düzeltiğin için. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 15, 2012 Share Posted January 15, 2012 Koşullamalarda eşitlik veya eşitsizlik kullanılmalı.Ams kısmında yazılı olarak sabit konu var KintaRonun fazla değil 10 dk ayırırsanız anlarsınız 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.
Note: Your post will require moderator approval before it will be visible.