Jump to content

Dialogex'in Kapanmasını Engellemek


turkoglu98
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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