Jump to content

Dialogtan Diğer Tüm Sayfalara Müdahale Etme


prototype
 Share

Recommended Posts

Arkadaşlar Dialog sayfasına birtane Combobox koydum ve on click evresine aşağıdaki kodu koydum. Şimdi arkadaşlar global functiona koyduğum kod ile amsde bulunan tüm sayfalardaki resimi değiştirmeyi çalışıyorum ama olmuyor.

[b]Combobox On Click Evresine[/b]
[code]if e_Selection == 1 then
temalar ()
end
if e_Selection == 2 then
temalar1 ()
end
if e_Selection == 3 then
temalar2 ()
end
if e_Selection == 4 then
temalar3 ()
end
[/code]

Global Functions'a
[code]function temalar1 ()
Image.Load("tema", "Data\\Image\\tema_sari.png");
end

function temalar2 ()
Image.Load("tema", "Data\\Image\\tema_yesil.png");
end

function temalar3 ()
Image.Load("tema", "Data\\Image\\tema_kirmizi.png");
end[/code]

Bu kodları koydum ama yinede tüm sayfalardaki resmi değiştiremiyorum :(.

Not: Bu arada eklemeyi unutmuşum kendi sayfasındaki resmi değiştiriyor ama diğer sayfalardakini değiştirmiyor.

Yardım edeceklere teşekkürler..

Edited by prototype
Link to comment
Share on other sites

Dediğini yaptım olmadı ancak kodlar sadece kendi sayfasında çalışıyor.

Kısaca şöyle özetleyim bir button oluşturdum ve ona basınca diğer tüm sayfalardaki resmi değiştirecek bunu nasıl yapabiliriz. Yukarıda verdiğim kodlarla bu olmadı. :(

Link to comment
Share on other sites

[quote name='Baba_' date='07 October 2011 - 16:46 ' timestamp='1317998818' post='1091208']
[b]Peki Sayfaların On Show Evresine Temayı Global'den Alıp Değiştirmesi İçin Kod Yazdın Mı ?[/b]
[/quote]

İşte bunu yapmadım zaten aklıma gelmedi. Bunu nasıl yapabiliriz acaba ?

Link to comment
Share on other sites

  • 1 ay sonra...

prototype Yeni Öğrendiğim Birşeyle OnTimer Kullanmadan da İstediğini Yapabiliyormuşuz. OnTimer'deki tüm kodları sil. Ve Dialogu Aç Butonuna

[codebox]
DialogEx.Show("Dialog1", true, nil, nil);
Page.Jump("Page1");
[/codebox]

Yazman Yetiyormuş.

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