Jump to content

Checkbox Disable


yasesa
 Share

Recommended Posts

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.
Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

[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 by yasesa
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...