Jump to content

GUI clicking problem


Piorun

Recommended Posts

Hi.

I've got problem with clicking on GUI elements. Here's code:

function createLoginWindow() 
  
ucp_login_window[1] = guiCreateWindow(329,138,393,494,"Project: San Andreas - Logowanie",false) 
guiWindowSetMovable(ucp_login_window[1],false) 
guiWindowSetSizable(ucp_login_window[1],false) 
ucp_login_edit[1] = guiCreateEdit(148,309,228,33,"",false,ucp_login_window[1]) 
ucp_login_edit[2] = guiCreateEdit(148,386,228,33,"",false,ucp_login_window[1]) 
guiEditSetMasked(ucp_login_edit[2],true) 
ucp_login_label[1] = guiCreateLabel(154,291,108,18,"Login:",false,ucp_login_window[1]) 
guiSetFont(ucp_login_label[1],"default-bold-small") 
ucp_login_label[2] = guiCreateLabel(154,368,108,18,"Hasło:",false,ucp_login_window[1]) 
guiSetFont(ucp_login_label[2],"default-bold-small") 
ucp_login_button[1] = guiCreateButton(271,444,113,41,"Zaloguj >>",false,ucp_login_window[1]) 
guiSetFont(ucp_login_button[1],"default-bold-small") 
ucp_login_button[2] = guiCreateButton(9,444,113,41,"Zarejestruj",false,ucp_login_window[1]) 
ucp_login_image[1] = guiCreateStaticImage(22,319,100,100,"images/shruk.png",false,ucp_login_window[1]) 
ucp_login_label[3] = guiCreateLabel(9,23,375,62,"Tutaj będzie krótka informacja dotycząca logowania.",false,ucp_login_window[1]) 
guiLabelSetHorizontalAlign(ucp_login_label[3],"left",true) 
ucp_login_label[4] = guiCreateLabel(93,86,152,17,"Informacja:",false,ucp_login_window[1]) 
guiSetFont(ucp_login_label[4],"default-bold-small") 
ucp_login_label[5] = guiCreateLabel(93,103,283,141,"Tutaj znajdą się informacje o aktualizacjach.",false,ucp_login_window[1]) 
guiLabelSetHorizontalAlign(ucp_login_label[5],"left",true) 
ucp_login_label[6] = guiCreateLabel(24,244,352,27,"",false,ucp_login_window[1]) 
guiLabelSetColor(ucp_login_label[6],255,0,0) 
guiLabelSetVerticalAlign(ucp_login_label[6],"center") 
guiSetFont(ucp_login_label[6],"default-bold-small") 
  
showCursor(true) 
showChat(false) 
  
addEventHandler("onClientGUIClick", ucp_login_button[1], clientLogin) 
end 

And when I click on a button - it's working, but when i click on a window, near a button - this funciton is working too. Why?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...