turkoglu98 Posted August 19, 2013 Share Posted August 19, 2013 arkadaşlar bir dialog'um var. esc tuşuna basınca kapanıyor bunu nasıl engelleyebilirim bunu denedim uyarıyı veriyor ve sonra dialog'u kapatıyor : if e_Key == 27 then result = Dialog.Message("Oyun Panelim", "Kapatmak istiyorsanız kapama tuşuna basın veya güncellemeyi iptal edin", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 19, 2013 Editor Share Posted August 19, 2013 function DialogKapatma() if ( System.IsKeyDown(27) == true ) then return false; end end Global Functions a ekle.Dialog unda On Key eventine DialogKapatma() Ekle kapanmayacaktır. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted August 19, 2013 Share Posted August 19, 2013 O değilde QueryAllowDialogClose diye bir fonksiyon vardı sanki, şimdi AMS yok da, öyle bir fonksiyon olması lazım, oraya false gönderirsen kapanmaz. Quote Link to comment Share on other sites More sharing options...
fba44 Posted August 19, 2013 Share Posted August 19, 2013 (edited) globale function DialogKapatma() if ( System.IsKeyDown(27) == true ) then return false; end end Global Functions a ekle.Dialog unda On Key eventine DialogKapatma() Ekle kapanmayacaktır. globale değil direkt on keye yazsak farkı ne olur hocam ? Edited August 19, 2013 by fba44 Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 19, 2013 Editor Share Posted August 19, 2013 Hiç bi farkı olmaz on keye direk bunu yazman lazım.. if ( System.IsKeyDown(27) == true ) then return false; end Quote Link to comment Share on other sites More sharing options...
turkoglu98 Posted August 20, 2013 Author Share Posted August 20, 2013 teşekkür ederim çok işime yaradı 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.